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
Python binding installation issues on OSX. Symbol not found: __ZTIN13IlmThread_2_04TaskE #207
Comments
Update: I get similar errors (i.e., "symbol not found; expected in flat namespace"), regardless of whether or not I use 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. |
Same trouble here, tried multiple ways of getting them to work.. |
I also have similar problems with macOS(10.10.5) Old OpenEXR source is here. |
I have the exact same problem.. Is there still no fix for this? I also tried openexr 1.2.0 but this does not build under python 3. The version from pip install is 1.3.0. |
I think that the cause is Mr jamesbowman(pip openexr author) doesn't fix to python 3. Therefore, you may use choice(s)
I use openimageio with python bindings. |
Thanks for the info. I will check these out. One question still though, does the problem seem to be connected only with Python environment on Mac OS or purely with Python 3 no matter on which machine it is setup? Can you please give some more info about the two alternatives you mentioned? I am a beginner in this department.. Are these alternatives which nevertheless use the original openEXR c++ library so that code that uses the original openexr functions will work flawlessly or do I have to rewrite functions for this? |
Sorry, I didn't use original c++ openexr library header and function. If you want to use original OpenEXR function. you had better contact to Mr jamesbowman, or get (Py)OpenEXR source and patch yourself. cheers! |
I have the same problem with Python 2.7 on OSX 10.13.4.... I used brew install openexr and pip install openexr...Let me know if you find any solutions. |
I am also having this problem with Python 2.7 on OSX 10.13.6 with brew + pip |
If I'm not mistaken, the version of openexr in pip is 1.3.2. (https://pypi.org/project/OpenEXR/#history) OpenEXR 1.3.2 is from 2006. I would recommend avoiding using pip to install openexr, as that version has not been supported for many years. There have been dozens and dozens of issues resolved since then. Brew has OpenEXR 2.2 (https://formulae.brew.sh/formula/). So the OpenEXR in pip and brew are completely incompatible and will have symbol conflicts. 2.2 is from 2014, and also is not the supported version. One solution is to build OpenEXR yourself. If you follow the "building with cmake" directions at https://github.com/openexr/openexr you should be able to get going with the latest known good code. If you do this you will probably want to brew uninstall openexr first, so you don't get conflicting copies of openexr in your path. |
@meshula are you recommending using these built dylibs to then build https://github.com/jamesbowman/openexrpython ? Right now I've set up an environment using miniconda. And install openexr with the following: if I use otool -L to look at OpenEXR.so that pyexr installs i get if i look in the miniconda/lib directory i see: However running Am I missing something here? It looks like the so has the correct dependencies. |
Actually I misunderstood completely. I thought that the openexr python package in pip would be the python bindings that are a distribution of the python bindings for IlmBase which are part of this repo. I understand now that the openexr in pip is an independent project. I will have to re-examine the issue to understand what's going on! Also, it would make a lot of sense to open an issue, cc'ing this one, at the https://github.com/jamesbowman/openexrpython site, since he'll be best equipped to help diagnose what's going on. |
It‘s really a question, I try many meas to address this undefined symbol issue, but it does't work. Is there anyone found any solutions. Thanks |
On Ubuntu 16.04 with miniconda I was able to do the following: |
HI @jbartolozzi,thanks for your reply. it sounds good solutions. I followed your step, and it still does't work. Steps are as follows. It indeed installed with miniconda inside openexr 2.3.0 since I found the error are different. I wonder if there are any other mistakes. Thanks 1、modify the set.py manually 2、python setup.py install running install 3、check the installation 4、 check the final result, there is still the undefined symbol problem. But I notice that the printing information is different with the installation from pip directly
if if use the command 'pip install OpenEXR;, the error info is: |
FWIW, using the gcc demangler, we can find out that the missing symbol in question is:
|
Running into some similar issue today.
|
@chenrui333 The homebrew org is here - https://github.com/Homebrew ~ I'm not sure how to report an issue to the homebrew team, but it seems like an issue with their formula for OpenEXR? |
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 toimport OpenEXR
, I get the following error message:Is what I'm doing a supported scenario? What is the recommended way of getting the OpenEXR Python bindings working on OSX?
The text was updated successfully, but these errors were encountered: