[Solved][PyQt] Install OCI driver
-
I think the problem is, indeed, coming from the way PyQt4 is built with the binary, i rebuilt everything and got a new error message :
@The plugin 'C:/Python_x86/Lib/site-packages/PyQt4/plugins/sqldrivers/qsqloci4.dll' :
Plugin uses incompatible Qt library
expected build key "Windows msvc release full-config", got "Windows mingw release full-config"
not a plugin@Now i'm trying to build PyQt' from the .zip archive using mingw but got the error
@Error: release\qtdetail.exe failed to create qtdetail.out. Make sure your Qt installation is correct.@And a messagebox appears :
@The procedure's entry point _ZN11QTextStreamC1EP9QIODevice cannot be found in the dynamic link library QtCore4.dll@ (approximate translation from French, i don't know the exact error message in english)EDIT : Solved the last error copying the QtCore4.dll in the Pyqt folder, i let you know what happens when i'm done building pyqt (it seems to take a while)
EDIT2 : I followed the tutorial on this site : http://www.oak-tree.us/blog/index.php/2009/05/12/pyqt-windows but now I got import errors, it seems python can't find the PyQt4 folder (which is in the Qt folder, as suggested in the tutorial) :
@from PyQt4 import QtCore, QtGui, QtSql
importError: No module named PyQt4@Besides, the PyQt built doesn't look like the previous one I installed through the binary file, there's no plugins folder and it seems to lack dll (such as QtGui4.dll which can't be found in the PyQt4 directory)
-
I finally managed to install the driver ! The problem came from the compiler as you suggested, the PyQt4 installer uses the Visual Studio compiler whereas Qt 4.8.5 uses mingw32 4.4...
I rebuilt everything using mingw32 4.4 and it finally worked.
To build the pyqt4 from the zip archive I used "this tutorial":http://www.oak-tree.us/blog/index.php/2009/05/12/pyqt-windows but i built it in C:\Python27\Lib\site-packages\PyQt4 instead of the Qt folder.
I also had to remove 2 lines from the Makefile located at C:\Python27\Lib\site-packages\PyQt4
@copy /y C:\Python27\Lib\site-packages\PyQt4_init_.py C:\Python27\Lib\site-packages\PyQt4_init_.py
copy /y pyqtconfig.py C:\Python27\Lib\site-packages\PyQt4\pyqtconfig.py@Because I had this error :
@File cannot be copied onto itself@Anyway, thanks a lot for your help SGaist
-
You're welcome !
Happy Coding ! :)