openexr: Python binding installation issues on OSX. Symbol not found: __ZTIN13IlmThread_2_04TaskE
Hello there,
I’m trying to get the OpenEXR Python bindings to work in my Python environment on OSX. So far, I’ve tried to install OpenEXR using Macports (i.e., sudo port install openexr
which installs the C++ headers and libraries), and then use pip to install the Python bindings (i.e., pip install openexr
). This installation procedure seems to work. However, when I try to import OpenEXR
, I get the following error message:
ImportError: dlopen(/Users/mike/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/OpenEXR.so, 2): Symbol not found: __ZTIN13IlmThread_2_04TaskE
Referenced from: /Users/mike/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/OpenEXR.so
Expected in: flat namespace
in /Users/mike/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/OpenEXR.so
Is what I’m doing a supported scenario? What is the recommended way of getting the OpenEXR Python bindings working on OSX?
About this issue
- Original URL
- State: open
- Created 8 years ago
- Comments: 18 (4 by maintainers)
Update: I get similar errors (i.e., “symbol not found; expected in flat namespace”), regardless of whether or not I use
sudo port install openexr
to install the OpenEXR C++ libraries, or if I build the C++ libraries myself. I’ve tried to build the C++ libraries with clang and gcc. I’ve also tried to build and install the Python bindings myself, by runningsetup.py build
, and making sure to specify theCC
andCXX
environment variables to match the compiler used to build the C++ libraries.In case anyone is reading this and running into similar issues, I can confirm that based on my experiments, it seems as though these Python bindings don’t work on OSX. Or at the very least, it is not clear to me how to get them working.
I also have similar problems with macOS(10.10.5) I think that this problem did not occur with openexr 1.7.0. I’m trying backdating but I am in conflict with ImageMagick. I can not change the environment for a while, but I will report it when I have made any progress. People with similar problems may try backdating.
Old OpenEXR source is here. http://www.openexr.com/downloads.html
Same trouble here, tried multiple ways of getting them to work…