BlenderProc icon indicating copy to clipboard operation
BlenderProc copied to clipboard

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

Open cornerfarmer opened this issue 2 years ago • 11 comments

See https://github.com/DLR-RM/BlenderProc/pull/767#issuecomment-1332331345

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 avatar Nov 30 '22 15:11 cornerfarmer

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

ShreyaKapoor18 avatar Jul 12 '23 14:07 ShreyaKapoor18

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

cornerfarmer avatar Jul 14 '23 13:07 cornerfarmer

@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'

ShreyaKapoor18 avatar Jul 14 '23 14:07 ShreyaKapoor18

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

cornerfarmer avatar Jul 14 '23 14:07 cornerfarmer

@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

ShreyaKapoor18 avatar Jul 17 '23 07:07 ShreyaKapoor18

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.

shockjiang avatar Oct 27 '23 06:10 shockjiang

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

cornerfarmer avatar Oct 27 '23 08:10 cornerfarmer

@cornerfarmer works for me! thank you!

shockjiang avatar Oct 27 '23 08:10 shockjiang

@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?

alvaro-budria avatar Jun 19 '24 14:06 alvaro-budria

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.

cornerfarmer avatar Jun 25 '24 08:06 cornerfarmer