Open l-oneil opened 3 years ago
If I do this, I get it to actually compile but when I try running it, I get the following error:
Python 3.8.12 (default, Oct 12 2021, 06:23:56)
[Clang 10.0.0 ] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import OpenEXR
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: dlopen(/Users/florian/miniconda3/envs/py38/lib/python3.8/site-packages/OpenEXR.cpython-38-darwin.so, 2): Symbol not found: __ZTIN7Imf_3_114TypedAttributeIN9Imath_2_53BoxINS1_4Vec2IiEEEEEE
Referenced from: /Users/florian/miniconda3/envs/py38/lib/python3.8/site-packages/OpenEXR.cpython-38-darwin.so
Expected in: flat namespace
in /Users/florian/miniconda3/envs/py38/lib/python3.8/site-packages/OpenEXR.cpython-38-darwin.so
Has anybody seen this before?
I edited setup.py and OpenEXR.cpp, to support macOS 12.3 and other OSs, without patching. How about this?
I had some issues with
pip install openexr
when trying to install this module on macOS latest version (at time of writing).I've not had the time to dig into the nuts and bolts of this problem, it seems to stem from developmental changes to the OpenEXR library, forking off from Imath and making minor changes to their API.
I've written a patch which has gotten this library installing and tested to be working within the scope of what I need it for (reading and processing images stored as
.exr
), it can likely be tidied and better tested (so no PR), hopefully this helps any others who run into difficulties:The general installation flow should look something like:
Hope this helps! Liam