running code on MacOS / Jupyter Notebook files / Gym OpenGL on MacOS #18
Replies: 11 comments 2 replies
-
Hi @bayareacoder, Thanks for reporting your issue and following it up with a resolution. I am glad that updated |
Beta Was this translation helpful? Give feedback.
-
Also, I have created issue # 14 to track your useful suggestion on adding Jupyter notebooks for the script. I will get them added by this weekend. |
Beta Was this translation helpful? Give feedback.
-
The issue I reported is only one. Still not able to install all packages as described in your setup guide from 'tfrl-cookbook.yml' and as a result, probably due to incompatible versions that come with the Anaconda install, many scripts from your book don't seem to work. I would strongly suggest you test your setup instructions, and scripts, on MacOS to avoid frustration with readers on MacOS. It seems a good and practical book but if the code doesn't run obviously it's an issue.
Here is an example of run-time error in Ch5 (no static error on import, so all packages seem present):
|
Beta Was this translation helpful? Give feedback.
-
Looking forward to an update - thanks. |
Beta Was this translation helpful? Give feedback.
-
Hi @bayareacoder , |
Beta Was this translation helpful? Give feedback.
-
Hi @bayareacoder , |
Beta Was this translation helpful? Give feedback.
-
Nope. Still waiting on the author to fix so it works on MacOS. |
Beta Was this translation helpful? Give feedback.
-
Cool. We'll contact the author and try to provide the solution at the earliest. Thanks. |
Beta Was this translation helpful? Give feedback.
-
@bayareacoder , I have updated the repo with Jupyter/IPython notebooks files for each of the recipes in Chapter 1 Chapter 2 and Chapter 3. The remaining will be added when they are ready. |
Beta Was this translation helpful? Give feedback.
-
@bayareacoder : You have mentioned a few issues on Mac OSX in your previous messages. I'm going to convert this issue thread into a discussion. Please create separate issues with description for each specific item to track/fix. |
Beta Was this translation helpful? Give feedback.
-
As reported here: #14 (comment), I'm able to run the .ipynb files for Ch1-3. I plan to focus on the .ipynb instead of .py files going forward. For the Getting Started to work on MacOS, besides the issue mentioned at the top of this thread, you may want to mention that the system tools for MacOS can be installed via HomeBrew: |
Beta Was this translation helpful? Give feedback.
-
It seems your 'Getting Started' is only for Linux. Do you have instructions for MacOS? In particular how to install/use OpenGL. I have this when running code of your 1st example in Ch1 in Jupyter Notebook:
It would be really nice to have your source files in Jupyter Notebook format (.pynb).
Much easier to follow along as the examples execute.
A good example of an easy-to-use repo is this:
https://github.com/stefan-jansen/machine-learning-for-trading
UPDATE: I figured this out. You need to update "pyglet" package in the "gym" install to the latest version for rendering to work on MacOS, per:openai/gym#2101
Update it in Anaconda via CLI:
conda install -c conda-forge pyglet
Rendering works for me now after pyglet was updated to v1.5.16.
Beta Was this translation helpful? Give feedback.
All reactions