jamesbowman / openexrpython

OpenEXR bindings for Python
Other
94 stars 35 forks source link

undefined symbol: _ZTIN7Iex_2_27BaseExcE #28

Open zkailinzhang opened 5 years ago

zkailinzhang commented 5 years ago

pip3 install openexr Using cached https://files.pythonhosted.org/packages/7c/c4/76bf884f59d3137847edf8b93aaf40f6257d8315d0064e8b1a606ad80b1b/OpenEXR-1.3.2.tar.gz Building wheels for collected packages: openexr Building wheel for openexr (setup.py) ... done Stored in directory: /home/zn/.cache/pip/wheels/41/06/9f/c7dc838815b0e7dfc7d7dc19cc3d677edb47594d8489adc62a Successfully built openexr Installing collected packages: openexr Successfully installed openexr-1.3.2

python Python 3.6.8 |Anaconda, Inc.| (default, Dec 30 2018, 01:22:34) [GCC 7.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import openexr Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'openexr' >>> import OpenEXR Traceback (most recent call last): File "", line 1, in ImportError: /home/zn/anaconda3/envs/pvnet/lib/python3.6/site-packages/OpenEXR.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZTIN7Iex_2_27BaseExcE

my pc is ubuntu 16 64bit, python3.6

YuanxunLu commented 5 years ago

same problem. Have you solved it?

minygd commented 4 years ago

Me too. The solution is deadly needed!

minygd commented 4 years ago

I have fixed this. Just make sure uninstall every pkgs/pip downloads/conda downloads of OpenEXR. And then use pip --no-cache-dir install OpenEXR instead to avoid downloading the former pkgs.

humayun commented 4 years ago

I tried but it didn't fixed same error for me. Below is my screen shot: Screenshot from 2019-11-04 09-44-31

peper0 commented 4 years ago

@humayun did you uninstall it also from conda? (conda remove openexr)

humayun commented 4 years ago

Yes, I did uninstall it from Conda and PIP.

WHSnyder commented 4 years ago

On MacOS with the same python version I hit similar errors and everything worked when installing with this command: pip install git+https://github.com/jamesbowman/openexrpython.git

norru commented 4 years ago

@WHSnyder's workaroud works for me on Ubuntu 18.04 and Anaconda2019.10

electronicliujiang commented 4 years ago

I tried but it didn't fixed same error for me. Below is my screen shot: Screenshot from 2019-11-04 09-44-31

Have you solved this problem

humayun commented 4 years ago

It is working with Python 2.* on Ubuntu machine.

pip install OpenEXR

Shreeyak commented 4 years ago

I'm also getting this error. Not able to resolve it. Tried removing conda+pip packages and installing with:

pip install git+https://github.com/jamesbowman/openexrpython.git

Also tried:

pip --no-cache-dir install OpenEXR

I have openexr system package installed:

$ sudo apt-get install -y openexr
...
openexr is already the newest version (2.2.0-11.1ubuntu1.2).
ClementLeBihan commented 3 years ago

Same problem on ubuntu 20.04 ... with python3.8

bing-xu-graphics commented 3 years ago

same problem here. -_- Trapped here for two days.

zaverichintan5 commented 3 years ago

Stuck with Ubuntu 18.04 and python3.6. Any solutions or workaround ? Or anyone has some pointers?

tovacinni commented 3 years ago

Also having this issue :/

8bignic8 commented 3 years ago

I solved it with: pip uninstall openexr than conda uninstall openexr than sudo apt-get remove -y openexr than sudo apt-get install -y openexr than pip install git+https://github.com/jamesbowman/openexrpython.git

yep dont know what solved it...but it did

matthieugendrin commented 1 year ago

A bit late, but just in case some people have the very similar undefined symbol: _ZTIN7Iex_2_37BaseExcE: I'm on ubuntu 20.04 sudo apt-get install openexr installs version openexr_2.3.0-6ubuntu0.5_amd64.deb which is not the most recent one. Whereas conda installs openexr-2.5.5

Try:

$ pip uninstall openexr
$ conda install -c conda-forge openexr-python

(note that I did not apt uninstall, but conda finds the proper version I guess)

sinAshish commented 11 months ago

this works for me

https://github.com/jamesbowman/openexrpython/issues/28#issuecomment-557212292

saikrn112 commented 10 months ago

your solution worked @matthieugendrin !

meshula commented 9 months ago

BTW, the community continued to develop the bindings, and the source is now in the OpenEXR repo itself, https://github.com/AcademySoftwareFoundation/openexr and on PyPi as https://pypi.org/project/OpenEXR/

amoazeni75 commented 4 months ago

I tried this approach, and worked in my case:

1- downgrade the Python package to 3.7 2- [Ubuntu]: sudo apt install libopenexr-dev 3- pip install OpenEXR==1.3.8