Probleme d'installation de PyQT

Probleme d'installation de PyQT - Python - Programmation

Marsh Posté le 21-04-2010 à 21:00:00    

Bonjour,
 
depuis quelques heures je tente d'installer PyQT mais en vain... toujours la meme erreur !! Pour vous expliquer mon probleme j'ai suivi ce tutoriel d'installation http://www.diotavelli.net/PyQtWiki/BuildPyQt4Windows, mais avec des versions differentes.
 
1) Tout d'abord je suis sous Windows XP, avec une version 2.6.2 de Python .
 
2) Installation de QT 4.6.2 : ok
 
3) Installation de MinGW : ok
 
4) Installation de SIP 4.10.2 : ok
 
Jusque la tout va bien, je n'ai aucun probleme, mais...
 
5) Installation de PyQT 4.7.3 : souci !!
 
L'erreur est la suivante. En ligne de commande je tape "python configure.py -w" et il me dit que le code C++ n'a pas pu etre cree:
 

Citation :


Checking to see if the QtDesigner module should be built...
g++ -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -I. -IC:\Qt\4.6.2\mkspecs\default -IC:\Qt\4.6.2\include\QtDesigner -IC:\Qt\4.6.2\include -O2 -w cfgtest_QtDesigner.cpp -
o cfgtest_QtDesigner.exe -LC:\Qt\4.6.2\lib -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-subsystem,console -Wl,-s -lQtDesigner4 -lQtGui4 -lQtC
ore4 -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool -lws2_32 -lole32 -luuid -luser32 -ladvapi32 -lkernel32 -lshell32
Checking to see if the QAxContainer module should be built...
g++ -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -I. -IC:\Qt\4.6.2\mkspecs\default -IC:\Qt\4.6.2\include\ActiveQt -IC:\Qt\4.6.2\include -O2 -w cfgtest_QAxContainer.cpp -
o cfgtest_QAxContainer.exe -LC:\Qt\4.6.2\lib -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-subsystem,console -Wl,-s -lQAxContainer -lQAxContai
ner -lQtGui4 -lQtCore4 -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool -lws2_32 -lole32 -luuid -luser32 -ladvapi32 -lkernel32 -lshell32
C:\Qt\4.6.2\lib/libQAxContainer.a(qaxobject.o):qaxobject.cpp.text+0x170): r├®f├®rence ind├®finie vers ┬½ _Unwind_Resume ┬╗
C:\Qt\4.6.2\lib/libQAxContainer.a(qaxobject.o):qaxobject.cpp.text+0x1d4): r├®f├®rence ind├®finie vers ┬½ _Unwind_Resume ┬╗
[......]
C:\Qt\4.6.2\lib/libQAxContainer.a(qaxtypes.o):qaxtypes.cpp.eh_frame+0x12): r├®f├®rence ind├®finie vers ┬½ __gxx_personality_v0 ┬╗
collect2: ld returned 1 exit status
Qt v4.6.2 free edition is being used.
SIP 4.10.2 is being used.
The Qt header files are in C:\Qt\4.6.2\include.
The shared Qt libraries are in C:\Qt\4.6.2\lib.
The Qt binaries are in C:\Qt\4.6.2\bin.
The Qt mkspecs directory is in C:\Qt\4.6.2.
These PyQt modules will be built: QtCore, QtGui, QtHelp, QtMultimedia,
QtNetwork, QtOpenGL, QtScript, QtScriptTools, QtSql, QtSvg, QtTest, QtWebKit,
QtXml, QtXmlPatterns, phonon, QtAssistant, QtDesigner.
The PyQt Python package will be installed in C:\Python26\Lib\site-packages.
PyQt is being built with generated docstrings.
The Designer plugin will be installed in C:\Qt\4.6.2\plugins\designer.
The PyQt .sip files will be installed in C:\Python26\sip\PyQt4.
pyuic4, pyrcc4 and pylupdate4 will be installed in C:\Python26.
Generating the C++ source for the QtCore module...
"C:\Python26\sip" -k -o -x VendorID -t WS_WIN -x PyQt_NoPrintRangeBug -t Qt_4_6_2 -x Py_v3 -g -a QtCore.api -c QtCore -b QtCore\QtCore.sbf -I C:\Documents and Settings\fstoltz\Bure
au\PyQt-win-gpl-4.7.3\PyQt-win-gpl-4.7.3\sip C:\Documents and Settings\fstoltz\Bureau\PyQt-win-gpl-4.7.3\PyQt-win-gpl-4.7.3/sip/QtCore/QtCoremod.sip
sip: Usage: sip [-h] [-V] [-a file] [-b file] [-c dir] [-d file] [-e] [-g] [-I dir] [-j #] [-k] [-m file] [-o] [-p module] [-r] [-s suffix] [-t tag] [-w] [-x feature] [-z file] [fi
le]
Error: Unable to create the C++ code.  


 
Si certains d'entre vous ont des idees, je vous remercie d'avance !!!!!!!!!
 
Merci  :)


Message édité par pAcolito31 le 21-04-2010 à 21:00:43
Reply

Marsh Posté le 21-04-2010 à 21:00:00   

Reply

Marsh Posté le 22-04-2010 à 11:47:28    

Finalement j'ai utilise une version pre-compilee de PyQT4.
 
Il suffit de telecharger SIP: http://www.riverbankcomputing.co.u [...] p/download,
 
de telecharger PyQT4: http://www.riverbankcomputing.co.u [...] t/download, avec l'installer Windows et apres avoir installe PyQT4, il faut installer SIP: un simple 'python configure.py' en ligne de commande va creer le Makefile et sipconfig.py.
 
Et ensuite un petit exemple de test:
 
import sys  
from PyQt4 import QtGui  
 
app = QtGui.QApplication(sys.argv)  
btn = QtGui.QPushButton("Hello world!" )  
btn.show()  
app.exec_()
 
Et ca marche !!

Reply

Marsh Posté le 22-04-2010 à 19:16:54    

pAcolito31 a écrit :

Finalement j'ai utilise une version pre-compilee de PyQT4.
 
Il suffit de telecharger SIP: http://www.riverbankcomputing.co.u [...] /download,


 
sip n'est pas nécessaire avec les versions précompilées de Qt.


Message édité par Sve@r le 22-04-2010 à 19:17:15

---------------
Vous ne pouvez pas apporter la prospérité au pauvre en la retirant au riche.
Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed