Open Source RDBMS - Seamless, Scalable, Stable and Free

English | Login |Register

DLL Load Failed

A common problem encountered when configuring drivers is the "Dll Load Failed" error. This error can occur when cascci.dll file is not found or when the file found is not the correct 32 bit or 64 bit version that we are expecting. For example, "ImportError: DLL load failed: %1 is not a valid Win32 application." error encountered in python (see example error message below), is caused when you install 32 bit version of python and 64 bit version of CUBRID on a 64 bit machine. The problem is CUBRID 64 bit comes with 64 bit version of cascci.dll which cannot be loaded by python.

C:\Program Files (x86)\Python266>python.exe
Python 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) MSC v.1500 32 bit (Intel) on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import CUBRIDdb
Traceback:  File "<stdin>", line 1, in <module>
  File "C:\Program Files (x86)\Python266\lib\CUBRIDdb\", line 9, in <module>
    import _cubrid
ImportError: DLL load failed: %1 is not a valid Win32 application.

The solution for this error is to download the cascci.dll driver for your CUBRID server version from here:

And you must copy this file either in the same folder as your python installation (where the python.exe file is located) or into a location that is in the path. The idea we want here is to use our version of cci driver and not the one that comes with the CUBRID installation ($CUBRID\bin\cascci.dll). The same procedure is done for php driver also.

Note: From the archives in the link above, only cascci.dll is required for driver usage. If you wish to replace C:\CUBRID\bin\cascci.dll file, then you should replace  C:\CUBRID\lib\cascci.lib also with the cascci.lib file from the archive.

If anything is unclear, don't hesitate to ask a question in our Q&A Site.

comments powered by Disqus
문서 정보
viewed 1613 times
번역 en
posted 11달 전
마지막 수정시간 11달 전
변경 내역 보기
Share this article