zju3dv / pvnet-rendering

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

Trouble installing openexr in blenders python #71

Closed MiriamJo closed 2 years ago

MiriamJo commented 2 years ago

I can't really get openexr goint in blenders python3.5m . The module OpenEXR is used in blender_utils.py. However, it seems like there is no python3 support for python-openexr extension. Can someone help me figure it out? I already installes the required libs (libopenexr-dev, openexr, zlib1g ...) but when i run blenders pip i get something like

/usr/bin/ld: -lOpenEXR can't be found \ collect2: error: ld returned 1 exit status \ error: command 'x86_64-linzux-gnu-g++ failed with exit status 1

I hope my understanding is correct to install all libraries within blenders python and run the run.py command with blenders python?

kind regards

MiriamJo commented 2 years ago

I figured it out eventually. Since I've been using python3 and OpenEXR Python bindings only supports python2, i had to install this inofficial repository instead, in order for openexr to work properly with python3. I wish they would still maintain the package (or warn users about this issue).