-
Notifications
You must be signed in to change notification settings - Fork 10
Description
Hi,
I'm using python 3.5.2, so I needed to make a few changes to the World.py file.
on line 2 I changed from Tkinter import * to from tkinter import *
Then on line 92 and 94 I put () around the print commands:
changing print "Success! score: ", score into print ("Success! score: ", score)
and print "Fail! score: ", score into print ("Fail! score: ", score)
Now when I run the QLearner.py, I'm getting the following error:
Exception in thread Thread-1: Traceback (most recent call last): File "/home/kalera/anaconda3/envs/universe/lib/python3.5/threading.py", line 914, in _bootstrap_inner self.run() File "/home/kalera/anaconda3/envs/universe/lib/python3.5/threading.py", line 862, in run self._target(*self._args, **self._kwargs) File "Learner.py", line 74, in run inc_Q(s, a, alpha, r + discount * max_val) File "Learner.py", line 58, in inc_Q World.set_cell_score(s, a, Q[s][a]) File "/home/kalera/PycharmProjects/q_learning_demo/World.py", line 74, in set_cell_score board.itemconfigure(triangle, fill=color) File "/home/kalera/anaconda3/envs/universe/lib/python3.5/tkinter/__init__.py", line 2427, in itemconfigure return self._configure(('itemconfigure', tagOrId), cnf, kw) File "/home/kalera/anaconda3/envs/universe/lib/python3.5/tkinter/__init__.py", line 1330, in _configure self.tk.call(_flatten((self._w, cmd)) + self._options(cnf)) _tkinter.TclError: out of stack space (infinite loop?)