You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting lots of errors when I try to run the code for tutorial 1. Kindly advise.
Screen dump:
(base) administrator@ubuntu:/basic_reinforcement_learning/tutorial1$ python3 egoMouseLook.py
File "egoMouseLook.py", line 162
print len(mouse.ai.q) # print the amount of state/action, reward
^
SyntaxError: invalid syntax
(base) administrator@ubuntu:/basic_reinforcement_learning/tutorial1$ nano egoMouseLook.py
(base) administrator@ubuntu:/basic_reinforcement_learning/tutorial1$ python3 egoMouseLook.py
Traceback (most recent call last):
File "egoMouseLook.py", line 7, in
import cellular
File "/home/administrator/basic_reinforcement_learning/tutorial1/cellular.py", line 521
print 'Error: invalid colour:', c
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('Error: invalid colour:', c)?
(base) administrator@ubuntu:/basic_reinforcement_learning/tutorial1$ python egoMouseLook.py
Traceback (most recent call last):
File "egoMouseLook.py", line 7, in
import cellular
File "/home/administrator/basic_reinforcement_learning/tutorial1/cellular.py", line 521
print 'Error: invalid colour:', c
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('Error: invalid colour:', c)?
(base) administrator@ubuntu:/basic_reinforcement_learning/tutorial1$ nano cellular.py
(base) administrator@ubuntu:/basic_reinforcement_learning/tutorial1$ python egoMouseLook.py
Traceback (most recent call last):
File "egoMouseLook.py", line 8, in
reload(cellular)
NameError: name 'reload' is not defined
(base) administrator@ubuntu:/basic_reinforcement_learning/tutorial1$ python3 egoMouseLook.py
Traceback (most recent call last):
File "egoMouseLook.py", line 8, in
reload(cellular)
NameError: name 'reload' is not defined
(base) administrator@ubuntu:/basic_reinforcement_learning/tutorial1$ cd ..
(base) administrator@ubuntu:/basic_reinforcement_learning$ python tutorial1/egoMouseLook.py
Traceback (most recent call last):
File "tutorial1/egoMouseLook.py", line 8, in
reload(cellular)
NameError: name 'reload' is not defined
(base) administrator@ubuntu:/basic_reinforcement_learning$ cd tutorial1
(base) administrator@ubuntu:/basic_reinforcement_learning/tutorial1$ nano egoMouseLook.py
(base) administrator@ubuntu:/basic_reinforcement_learning/tutorial1$ python3 egoMouseLook.py
Traceback (most recent call last):
File "egoMouseLook.py", line 133, in
world = cellular.World(Cell, directions=directions, filename='../worlds/waco.txt')
File "/home/administrator/basic_reinforcement_learning/tutorial1/cellular.py", line 102, in init
data = file(filename).readlines()
NameError: name 'file' is not defined
(base) administrator@ubuntu:/basic_reinforcement_learning/tutorial1$ nano egoMouseLook.py
(base) administrator@ubuntu:/basic_reinforcement_learning/tutorial1$ python3 egoMouseLook.py
egoMouseLook.py:9: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
Traceback (most recent call last):
File "egoMouseLook.py", line 134, in
world = cellular.World(Cell, directions=directions, filename='../worlds/waco.txt')
File "/home/administrator/basic_reinforcement_learning/tutorial1/cellular.py", line 102, in init
data = file(filename).readlines()
NameError: name 'file' is not defined
The text was updated successfully, but these errors were encountered:
wmeitzen
changed the title
Tutorial 1: print and other code issues
Tutorial 1: code issues
Feb 26, 2020
I'm getting lots of errors when I try to run the code for tutorial 1. Kindly advise.
Screen dump:
(base) administrator@ubuntu:
/basic_reinforcement_learning/tutorial1$ python3 egoMouseLook.py/basic_reinforcement_learning/tutorial1$ nano egoMouseLook.pyFile "egoMouseLook.py", line 162
print len(mouse.ai.q) # print the amount of state/action, reward
^
SyntaxError: invalid syntax
(base) administrator@ubuntu:
(base) administrator@ubuntu:
/basic_reinforcement_learning/tutorial1$ python3 egoMouseLook.py/basic_reinforcement_learning/tutorial1$ python egoMouseLook.pyTraceback (most recent call last):
File "egoMouseLook.py", line 7, in
import cellular
File "/home/administrator/basic_reinforcement_learning/tutorial1/cellular.py", line 521
print 'Error: invalid colour:', c
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('Error: invalid colour:', c)?
(base) administrator@ubuntu:
Traceback (most recent call last):
File "egoMouseLook.py", line 7, in
import cellular
File "/home/administrator/basic_reinforcement_learning/tutorial1/cellular.py", line 521
print 'Error: invalid colour:', c
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('Error: invalid colour:', c)?
(base) administrator@ubuntu:
/basic_reinforcement_learning/tutorial1$ nano cellular.py/basic_reinforcement_learning/tutorial1$ python egoMouseLook.py(base) administrator@ubuntu:
Traceback (most recent call last):
File "egoMouseLook.py", line 8, in
reload(cellular)
NameError: name 'reload' is not defined
(base) administrator@ubuntu:
/basic_reinforcement_learning/tutorial1$ python3 egoMouseLook.py/basic_reinforcement_learning/tutorial1$ cd ..Traceback (most recent call last):
File "egoMouseLook.py", line 8, in
reload(cellular)
NameError: name 'reload' is not defined
(base) administrator@ubuntu:
(base) administrator@ubuntu:
/basic_reinforcement_learning$ python tutorial1/egoMouseLook.py/basic_reinforcement_learning$ cd tutorial1Traceback (most recent call last):
File "tutorial1/egoMouseLook.py", line 8, in
reload(cellular)
NameError: name 'reload' is not defined
(base) administrator@ubuntu:
(base) administrator@ubuntu:
/basic_reinforcement_learning/tutorial1$ nano egoMouseLook.py/basic_reinforcement_learning/tutorial1$ python3 egoMouseLook.py(base) administrator@ubuntu:
Traceback (most recent call last):
File "egoMouseLook.py", line 133, in
world = cellular.World(Cell, directions=directions, filename='../worlds/waco.txt')
File "/home/administrator/basic_reinforcement_learning/tutorial1/cellular.py", line 102, in init
data = file(filename).readlines()
NameError: name 'file' is not defined
(base) administrator@ubuntu:
/basic_reinforcement_learning/tutorial1$ nano egoMouseLook.py/basic_reinforcement_learning/tutorial1$ python3 egoMouseLook.py(base) administrator@ubuntu:
egoMouseLook.py:9: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
Traceback (most recent call last):
File "egoMouseLook.py", line 134, in
world = cellular.World(Cell, directions=directions, filename='../worlds/waco.txt')
File "/home/administrator/basic_reinforcement_learning/tutorial1/cellular.py", line 102, in init
data = file(filename).readlines()
NameError: name 'file' is not defined
The text was updated successfully, but these errors were encountered: