Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip3 install PermissionError: [Errno 13] Permission denied: '/usr/local/bin/jupyter' #25

Closed
erwincoumans opened this issue Sep 21, 2017 · 16 comments

Comments

@erwincoumans
Copy link

The docs mention: pip install . but it gives an error here (Mac OSX).
pip install PermissionError: [Errno 13] Permission denied: '/usr/local/bin/jupyter'

pip install . --user solves it (better than sudo pip install .), perhaps update the doc or add a note?

@erwincoumans
Copy link
Author

This was using the brew version of python3. This version of Python doesn't install jupyter on Mac properly
When using Anaconda python3 there are no such issues. I guess you are using Anaconda on Mac?

@eagleEggs
Copy link

This bring up a good point. Python and python installs add a learning curve in just setting these types of environments up. Although there are a lot of platform variations and wouldnt expect to cover them all, a somewhat thorough walkthrough for common ones may make this project more accessible to many that arent familiar.

Banging your head trying to set it up builds character, but whatever :D

Have you thought of writing it up and pushing it here?

@erwincoumans
Copy link
Author

Not yet, wrapping up the 3D Ball tutorial.
"Type of Brain to Internal." -> there is just "External, Player and Heuristic' choices...

@eagleEggs
Copy link

Read the bottom of the Unity Setup readme. You have to enable_tensorflow in settings and import a package I believe.

@awjuliani
Copy link
Contributor

Hi @erwincoumans,

In particular, this section of the wiki: https://github.com/Unity-Technologies/ml-agents/wiki/Getting-Started-with-Balance-Ball#setting-up-tensorflowsharp-support-experimental should walk you through what is needed to add internal TF support. Please let me know if you run into any other issues.

@erwincoumans
Copy link
Author

erwincoumans commented Sep 21, 2017

??? I have no problem with TF support, did I mention that anywhere?

This thread brings up 2 issues:

  1. pip install has permission issues, unless using Anaconda.
  2. There is no 'Internal' for brain,.

Or does TF installation add the 'Internal' option to Brain? If that is the case, it would be nice if the tutorial mentions that without TF install, the 'Internal' option is invisible/not available.
Attached is an image.
external

@awjuliani
Copy link
Contributor

The internal brain mode is only available once the Tensorflow sharp plugin is added to the project, the ENABLE_TENSORFLOW flag is added to the scripting symbols, and the editor is reset.

@erwincoumans
Copy link
Author

ah, ok. I missed that piece of information, must have skipped that sentence in the docs.

@awjuliani
Copy link
Contributor

No worries. I'll edit the document to make it more explicit that the Internal mode will only appear once those prior steps are completed.

@erwincoumans
Copy link
Author

To be more precise: I skipped the experimental TF paragraph and went right into "Embedding the trained model itself". It would be good to say you cannot skip that TF paragraph.

@erwincoumans
Copy link
Author

One more little tidbit, relating to saving to the 'bytes' file:

You HAVE to terminate the PPO training, not just CAN. "you can stop the training process".
I left it running, and then ran the last step, and it doesn't save the bytes file. Only when you hit the STOP button you can run the last step. Pretty obvious to jupyter users probably, but I barely use that tool.

@awjuliani
Copy link
Contributor

I appreciate the suggestions, and have rewritten parts of the final wiki section to hopefully make it more clear: https://github.com/Unity-Technologies/ml-agents/wiki/Getting-Started-with-Balance-Ball#embedding-trained-brain-into-unity-environment-experimental

@erwincoumans
Copy link
Author

I got it to work finally. Step 6 was a bit tricky, since I hadn't use Unity before.

"Drag the <env_name>.bytes file from the Project window of the Editor to the Graph Model placeholder in the 3DBallBrain inspector window."

You need to drag it exactly into one of the boxes in that inspector window.

I think some video of the 3D Ball would be easier to follow for newcomers, but that would take time/resources to create.

Anyway, it works! (https://www.youtube.com/watch?v=NX1DmSWmqYE)

@awjuliani
Copy link
Contributor

Glad you were able to get it working!

I'll close the issue for now, but will make a point of making python instructions more clear. I also agree that a video walkthrough would be ideal, and we have it on our to-do list.

@saporter
Copy link

saporter commented Dec 31, 2017

This thread really helped me. Yes, @erwincoumans, some simple updates to the doc would really save a lot of time setting up. Specifically:

  1. brew version of python3 doesn't properly install Jupyter on a mac (I switched to Anaconda it works great now), and
  2. pip install --user . was needed to properly install dependencies

Thanks for your help guys!

@lock
Copy link

lock bot commented Jan 4, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants