Install issue - ImportError: DLL load failed: The specified path is invalid.

486 views
Skip to first unread message

Casey Anderson

unread,
Feb 16, 2017, 10:59:28 PM2/16/17
to ibm_db
Hi,

I'm running into an odd issue (since this seems to work with a nearly identical setup) getting ibm_db to on Anaconda 4.1.1 Python 3.5.2, I easy_installed ibm_db 2.0.7, which appears to install successfully.

However, when try to import ibm_db I'm getting:

>>> import ibm_db
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Anaconda\lib\site-packages\ibm_db-2.0.7-py3.5.egg\ibm_db.py", line 10, in <module>
    __bootstrap__()
  File "C:\Anaconda\lib\site-packages\ibm_db-2.0.7-py3.5.egg\ibm_db.py", line 9, in __bootstrap__
    imp.load_dynamic(__name__,__file__)
  File "C:\Anaconda\lib\imp.py", line 342, in load_dynamic
    return _load(spec)
ImportError: DLL load failed: The specified path is invalid.

Has anyone run into this before?

Thanks,
Casey

Piotr Hajkowski

unread,
Mar 19, 2017, 11:41:20 PM3/19/17
to ibm_db



Hi Casey,

IBM's home \bin directory is not present in your Windows PATH.
For example, this path "C:\Program Files\IBM\SQLLIB\BIN"
should be present here:
echo %PATH%
in the environment, where you execute python code.

I hope it helps.

Best regards,
Piotr
Reply all
Reply to author
Forward
0 new messages