zju3dv / pvnet-rendering

render images for pvnet training
Apache License 2.0
183 stars 46 forks source link

Blender Python fails to import modules from conda or system python #36

Closed saadehmd closed 4 years ago

saadehmd commented 4 years ago

For some reason, the modules from system python are not being imported in 'render_backend.py'. Seems like blender is using it's own build of python. I have already tried exporting the PYTHONPATH. I though it could be a problem with conda env so i tried setting up everything in my usr/local/python. Still the same problem. All modules are there and are imported outside the 'render_backend.py' script. But this script has problem importing them

~/pvnet-rendering$ python run.py --type rendering found bundled python: /home/ahmad3/blender-2.79a-linux-glibc219-x86_64/2.79/python Read blend: /home/ahmad3/pvnet-rendering/data/blank.blend /home/ahmad3/blender-2.79a-linux-glibc219-x86_64 Traceback (most recent call last): File "/home/ahmad3/pvnet-rendering/blender/render_backend.py", line 9, in from transforms3d.euler import euler2mat ImportError: No module named 'transforms3d'

pengsida commented 4 years ago

https://github.com/zju3dv/pvnet-rendering/issues/3