python-ibmdb: Version 11.5.7 and Python - Symbol not found: (___cxa_throw_bad_array_new_length)
#540 Wondered where the above issue got to with the latest releases as I am having what looks like the same issue
My environment Brand new Mac: Monterey 12.5.1 Installed : IBM Data Server Driver Package (DS Driver) V11.5.4 and then used fix central to get version 11.5.7 installed over it. I noticed 11.5.7 was released in Dec 2021, i.e. before @bimalkjha last comment on Jan 3rd in the above issue Installed to default location : /Applications/dsdriver Then I executed the following
$ export IBM_DB_HOME=/Applications/dsdriver
$ export LD_LIBRARY_PATH=$IBM_DB_HOME/lib
$ pip install --upgrade --force-reinstall ibm_db
Collecting ibm_db
Using cached ibm_db-3.1.3-cp39-cp39-macosx_12_0_x86_64.whl
Installing collected packages: ibm_db
Attempting uninstall: ibm_db
Found existing installation: ibm-db 3.1.3
Uninstalling ibm-db-3.1.3:
Successfully uninstalled ibm-db-3.1.3
Successfully installed ibm_db-3.1.3
$ python
Python 3.9.13 (main, Aug 9 2022, 06:41:34)
[Clang 13.1.6 (clang-1316.0.21.2.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import ibm_db
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: dlopen(/Users/matt/.pyenv/versions/venv_Storefront/lib/python3.9/site-packages/ibm_db.cpython-39-darwin.so, 0x0002): Symbol not found: (___cxa_throw_bad_array_new_length)
Referenced from: '/Applications/dsdriver/lib/libdb2.dylib'
Expected in: '/usr/lib/libstdc++.6.dylib'
>>>
Any thoughts? Do I need to wait for 11.5.8? and if so is that due out soon?
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 18 (10 by maintainers)
Thanks @bimalkjha that seemed to fix the problem. Just for anyone else popping by this issue i did the following