Open Source RDBMS - Seamless, Scalable, Stable and Free

한국어 | 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
Page info
viewed 13870 times
translations en
posted 4 years ago by
updated 4 years ago by
View revisions
Share this article