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

Error in installing OpenEXR #281

Closed
siddas27 opened this issue Apr 3, 2018 · 3 comments
Closed

Error in installing OpenEXR #281

siddas27 opened this issue Apr 3, 2018 · 3 comments
Labels
Build A problem with building or installing the library. Needs Discussion To be discussed in the technical steering committee

Comments

@siddas27
Copy link

siddas27 commented Apr 3, 2018

I tried installing OpenEXR on Mac inside conda env by

pip install OpenEXR

Here is the output

Collecting OpenEXR
  Using cached OpenEXR-1.3.0.tar.gz
Building wheels for collected packages: OpenEXR
  Running setup.py bdist_wheel for OpenEXR: started
  Running setup.py bdist_wheel for OpenEXR: finished with status 'error'
  Complete output from command /Users/siddharthdas/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/80/v1nwf70x2rz5srmzfnpc3pq40000gn/T/pip-build-gd8076fk/OpenEXR/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /var/folders/80/v1nwf70x2rz5srmzfnpc3pq40000gn/T/tmpmh3ncqjjpip-wheel- --python-tag cp36:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.macosx-10.7-x86_64-3.6
  copying Imath.py -> build/lib.macosx-10.7-x86_64-3.6
  running build_ext
  building 'OpenEXR' extension
  creating build/temp.macosx-10.7-x86_64-3.6
  gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/siddharthdas/anaconda3/include -arch x86_64 -I/Users/siddharthdas/anaconda3/include -arch x86_64 -I/usr/include/OpenEXR -I/usr/local/include/OpenEXR -I/opt/local/include/OpenEXR -I/Users/siddharthdas/anaconda3/include/python3.6m -c OpenEXR.cpp -o build/temp.macosx-10.7-x86_64-3.6/OpenEXR.o -g -DVERSION="1.3.0"
  OpenEXR.cpp:36:10: fatal error: 'ImathBox.h' file not found
  #include <ImathBox.h>
           ^~~~~~~~~~~~
  1 error generated.
  error: command 'gcc' failed with exit status 1
  
  ----------------------------------------
  Running setup.py clean for OpenEXR
Failed to build OpenEXR
Installing collected packages: OpenEXR
  Running setup.py install for OpenEXR: started
    Running setup.py install for OpenEXR: finished with status 'error'
    Complete output from command /Users/siddharthdas/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/80/v1nwf70x2rz5srmzfnpc3pq40000gn/T/pip-build-gd8076fk/OpenEXR/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/80/v1nwf70x2rz5srmzfnpc3pq40000gn/T/pip-4vp6zrn7-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.7-x86_64-3.6
    copying Imath.py -> build/lib.macosx-10.7-x86_64-3.6
    running build_ext
    building 'OpenEXR' extension
    creating build/temp.macosx-10.7-x86_64-3.6
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/siddharthdas/anaconda3/include -arch x86_64 -I/Users/siddharthdas/anaconda3/include -arch x86_64 -I/usr/include/OpenEXR -I/usr/local/include/OpenEXR -I/opt/local/include/OpenEXR -I/Users/siddharthdas/anaconda3/include/python3.6m -c OpenEXR.cpp -o build/temp.macosx-10.7-x86_64-3.6/OpenEXR.o -g -DVERSION="1.3.0"
    OpenEXR.cpp:36:10: fatal error: 'ImathBox.h' file not found
    #include <ImathBox.h>
             ^~~~~~~~~~~~
    1 error generated.
    error: command 'gcc' failed with exit status 1
    
    ----------------------------------------

@cary-ilm cary-ilm added the Build A problem with building or installing the library. label Jun 13, 2019
@cary-ilm cary-ilm added the Needs Discussion To be discussed in the technical steering committee label Jun 26, 2019
@meshula
Copy link
Contributor

meshula commented Jun 27, 2019

Pypi has a link to the py openexr project, here: https://pypi.org/project/OpenEXR/ It would be best to open an issue with the project owner, as it is an independent effort, not part of the OpenEXR project itself.

@meshula meshula closed this as completed Jun 27, 2019
@UCASRMT
Copy link

UCASRMT commented Sep 4, 2020

I encountered the same problem, wondering how you managed to solve it.

@meshula
Copy link
Contributor

meshula commented Sep 8, 2020

On @jamesbowman's repo, where development of openexrpython occurs, it appears this issue, of not finding <ImathBox.h> has been resolved:

jamesbowman/openexrpython#32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build A problem with building or installing the library. Needs Discussion To be discussed in the technical steering committee
Projects
None yet
Development

No branches or pull requests

4 participants