openexrpython icon indicating copy to clipboard operation
openexrpython copied to clipboard

undefined symbol: _ZTIN7Iex_2_27BaseExcE

Open zkailinzhang opened this issue 5 years ago • 21 comments

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

zkailinzhang avatar Apr 18 '19 06:04 zkailinzhang

same problem. Have you solved it?

YuanxunLu avatar Jul 04 '19 06:07 YuanxunLu

Me too. The solution is deadly needed!

minygd avatar Aug 17 '19 04:08 minygd

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.

minygd avatar Aug 18 '19 12:08 minygd

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

humayun avatar Nov 04 '19 17:11 humayun

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

peper0 avatar Nov 08 '19 16:11 peper0

Yes, I did uninstall it from Conda and PIP.

humayun avatar Nov 18 '19 16:11 humayun

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

WHSnyder avatar Nov 21 '19 18:11 WHSnyder

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

norru avatar Jan 27 '20 18:01 norru

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

electronicliujiang avatar Apr 03 '20 14:04 electronicliujiang

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

pip install OpenEXR

humayun avatar Apr 03 '20 16:04 humayun

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).

Shreeyak avatar Jul 05 '20 19:07 Shreeyak

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

ClementLeBihan avatar Oct 13 '20 13:10 ClementLeBihan

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

bing-xu-graphics avatar Nov 17 '20 15:11 bing-xu-graphics

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

zaverichintan5 avatar Nov 20 '20 16:11 zaverichintan5

Also having this issue :/

tovacinni avatar Feb 11 '21 06:02 tovacinni

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

8bignic8 avatar Feb 22 '21 22:02 8bignic8

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)

matthieugendrin avatar Oct 14 '22 13:10 matthieugendrin

this works for me

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

sinAshish avatar Jul 20 '23 05:07 sinAshish

your solution worked @matthieugendrin !

saikrn112 avatar Sep 08 '23 00:09 saikrn112

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/

meshula avatar Sep 17 '23 06:09 meshula

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

amoazeni75 avatar Feb 10 '24 01:02 amoazeni75