siemanko / tensorflow-deepq

A deep Q learning demonstration using Google Tensorflow
MIT License
1.17k stars 295 forks source link

Having trouble running example on MacOS #1

Closed seandoyle closed 8 years ago

seandoyle commented 8 years ago

Hi -

I've installed TensorFlow and I can run their examples. I suspect I'm missing a path or an initialization step.

This is my version of Python: Python 2.7.10 :: Anaconda 2.4.0 (x86_64)

When I invoke your sample command it throws an error on the first line. I get similar import problems when I use Jupyter to open the Karpathy notebook:

python tf_rl/controller/human_controller.py Traceback (most recent call last): File "tf_rl/controller/human_controller.py", line 1, in from tf_rl.utils.getch import getch File "/Users/mesozoic/Documents/MachineLearning/google/tensorflow-deepq/tf_rl/init.py", line 1, in from .simulate import simulate File "/Users/mesozoic/Documents/MachineLearning/google/tensorflow-deepq/tf_rl/simulate.py", line 7, in from tf_rl.utils.event_queue import EventQueue File "/Users/mesozoic/Documents/MachineLearning/google/tensorflow-deepq/tf_rl/utils/event_queue.py", line 3, in from queue import PriorityQueue ImportError: No module named queue

Thanks!

siemanko commented 8 years ago

You need to install python module "future"

seandoyle commented 8 years ago

I also had to install pyecuclid and make one code change in the karpathy_game.ipynb:

After this the notebook loaded just fine in jupyter. I'm sorry I can't give real feedback yet - I'm still climbing the python learning curve. Thanks!

siemanko commented 8 years ago

Thanks a lot for pointing that out! It is fixed now.