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

Show warning on mac when custom pip package path is not writable #768

Open
cornerfarmer opened this issue Nov 30, 2022 · 10 comments
Open

Show warning on mac when custom pip package path is not writable #768

cornerfarmer opened this issue Nov 30, 2022 · 10 comments
Labels
enhancement New feature or request

Comments

@cornerfarmer
Copy link
Member

See #767 (comment)

On Mac OS, you have to add in the general settings that your terminal is allowed to perform updates. Else it can not execute the pip installs. That is interesting.

Maybe we should add a warning if:

PermissionError: [Errno 1] Operation not permitted: '/Users/max/blender/blender-3.3.0-macos-x64/Blender.app/Contents/Resources/custom-python-packages'

@cornerfarmer cornerfarmer added the enhancement New feature or request label Nov 30, 2022
@ShreyaKapoor18
Copy link

I am getting the same error, has someone found a solution to this?

@cornerfarmer
Copy link
Member Author

Did you try to add in the general settings that your terminal is allowed to perform updates.?

@ShreyaKapoor18
Copy link

@cornerfarmer I did add this, and was able to install.

I made a virtualenv and install h5py with brew
but now when I do
blenderproc quickstart

I get an error 'no module named h5py'

@cornerfarmer
Copy link
Member Author

Probably h5py is not found inside blenders python environment. Usually this should be installed automatically on the first run, but could you try installing it manually via:

blenderproc pip install h5py
@ShreyaKapoor18
Copy link

@cornerfarmer Hi and thank you for your reply. I ran this command, it did install h5py
After this I ran
blenderproc quickstart

but this resulted in the same error
h5py not found

@shockjiang
Copy link

Did you try to add in the general settings that your terminal is allowed to perform updates.?

@cornerfarmer I met the same error and I think I know what you mean. But how to "add in the general settings that your terminal is allowed to perform updates"? could you give a short description? I am a fresh of blender/blenderproc.

@cornerfarmer
Copy link
Member Author

I dont have a mac to test it, but it should be doable as described here: https://stackoverflow.com/a/59250494

@shockjiang
Copy link

@cornerfarmer works for me! thank you!

@alvaro-budria
Copy link

@cornerfarmer Hi and thank you for your reply. I ran this command, it did install h5py After this I ran blenderproc quickstart

but this resulted in the same error h5py not found

Hi, I am facing the same situation. Even after allowing updates from my terminal as @cornerfarmer, I am getting ModuleNotFoundError: No module named 'h5py' error.

Did you find a solution?

@cornerfarmer
Copy link
Member Author

Hey @alvaro-budria,

just running blenderproc pip install h5py should fix that.
Alternatively you can also switch to the main github branch version. There this error should not occur anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
4 participants