Créer un exécutable Windows avec py2exe pour PYQt
Bonjour
Je cherche à créer un exécutable Windows avec py2exe pour une application PyQt.
J'ai télechargé py2exe et je l'ai installé
Quand je crée exécutableet que je l'exécute il m'affiche un Dialog qui me dit de voir le fichier "lol.exe.log" pour plus de détails:
En l'ouvrant il m'affiche
Citation:
Traceback (most recent call last):
File "lol.pyw", line 6, in <module>
File "PyQt4\QtGui.pyc", line 12, in <module>
File "PyQt4\QtGui.pyc", line 10, in __load
ImportError: No module named sip
J'ai seulement voulu tester un simple exemple que voila:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| #####################################
#!/usr/bin/python
# icon.py
import sys
from PyQt4 import QtGui
class Icon(QtGui.QWidget):
def __init__(self, parent=None):
QtGui.QWidget.__init__(self, parent)
self.setGeometry(300, 300, 250, 150)
self.setWindowTitle('Icon')
self.setWindowIcon(QtGui.QIcon('icons/web.png'))
app = QtGui.QApplication(sys.argv)
icon = Icon()
icon.show()
sys.exit(app.exec_())
########################## |
Et merci de votre aide