ImportError: DLL load failed: The specified module could not be found [Anaconda 4.3.0, Python 2.7.13 64-bit]

1,004 views
Skip to first unread message

Deepster P

unread,
Mar 6, 2018, 8:29:43 AM3/6/18
to ibm_db
This has been asked a few times but those things have not helped so posting it separately.

Setup
Anaconda 4.3.0, Python 2.7.13 64-bit
IBM_DB_HOME = C:\Program Files (x86)\IBM\SQLLIB
PATH includes %IBM_DB_HOME%\bin
LIB includes %IBM_DB_HOME%

Followed the README.
python setup.py build
python setup.py install

It creates the ibm_db_2.0.7-py2.7-egg\ folder under the Anaconda Lib\site-packages folder
However when i start python and do import ibm_db, I get "ImportError: DLL load failed: The specified module could not be found". The stack trace is:

File "<stdin>", line 1, in <module>
File "ibm_db.py", line 7, in <module>
    __bootstrap__()
File "ibm_db.py", line 6, in __bootstrap__
    imp.load_dynamic(__name__, __file__)
ImportError: DLL load failed: The specified module could not be found.

Q: Is this not finding the ibm_db DLL or some Windows DLL? As per the system image of the laptop, I have
- Microsoft Visual C++ 2013 Redistributable installed
- Microsoft .NET Framework 4.6.1

Q: the LIB should point to %IBM_DB_HOME% or %IBM_DB_HOME%\lib?

Stuck at this point. Any help will be gladly appreciated!


jason.a....@gmail.com

unread,
May 8, 2018, 5:12:22 AM5/8/18
to ibm_db
Having the same error... I have seen some posts elsewhere that suggested trying \bin instead of \lib when setting the path (some DB2 installations differ) - but i've tried both and have been stuck for a few months trying different things. 
Reply all
Reply to author
Forward
0 new messages