Problem mit py2exe,SIP
Verfasst: Montag 3. März 2014, 14:15
Hallo Python Gemeinde,
ich möchte mein script als ausführbare Datei umwandeln und habe dabei Probleme mit einer SIP Fehlermeldung und bräuchte Hilfe.
Zuerst Infos zu meinem System bzw.verwendete Module:
Intel I7,Windows 7, Python2.7, PyQt4
Module im Script:
import os
import sys
from visu270114 import Ui_MainWindow
import thread
import webbrowser
import time
import kinterbasdb
from kinterbasdb import services
import subprocess
import login
import csv
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from PyQt4 import QtGui,QtCore
Verwendete py2exe setup.py:
from distutils.core import setup
import py2exe, sys, os
sys.argv.append('py2exe')
setup(
options = {'py2exe': {'bundle_files': 1, 'compressed': True}},
windows = [{'script': "RMS.py"}],
zipfile = None,
)
Das setup läuft ohne Fehler durch, beim Starten der EXE kommt aber folgender Fehler:
Traceback (most recent call last):
File "RMS.py", line 5, in <module>
from visu270114 import Ui_MainWindow
File "zipextimporter.pyc", line 82, in load_module
File "visu270114.pyc", line 10, in <module>
File "zipextimporter.pyc", line 98, in load_module
ImportError: No module named sip
Für mich sieht es so aus als ob ein Problem mit SIP besteht, aber ist dies nicht schon mit dem Installer von PyQT4 installiert worden?
Im Script kann ich durch import sip das modul importieren, ohne Fehler.
Kann evtl. ein Prolem zwischen mingw und SIP bestehen, wass und wie muss installiert werden?
Komme an dem Punkt nicht weiter und bräuchte bitte einen Lösungsansatz!
Vielen Dank! :K
ich möchte mein script als ausführbare Datei umwandeln und habe dabei Probleme mit einer SIP Fehlermeldung und bräuchte Hilfe.
Zuerst Infos zu meinem System bzw.verwendete Module:
Intel I7,Windows 7, Python2.7, PyQt4
Module im Script:
import os
import sys
from visu270114 import Ui_MainWindow
import thread
import webbrowser
import time
import kinterbasdb
from kinterbasdb import services
import subprocess
import login
import csv
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from PyQt4 import QtGui,QtCore
Verwendete py2exe setup.py:
from distutils.core import setup
import py2exe, sys, os
sys.argv.append('py2exe')
setup(
options = {'py2exe': {'bundle_files': 1, 'compressed': True}},
windows = [{'script': "RMS.py"}],
zipfile = None,
)
Das setup läuft ohne Fehler durch, beim Starten der EXE kommt aber folgender Fehler:
Traceback (most recent call last):
File "RMS.py", line 5, in <module>
from visu270114 import Ui_MainWindow
File "zipextimporter.pyc", line 82, in load_module
File "visu270114.pyc", line 10, in <module>
File "zipextimporter.pyc", line 98, in load_module
ImportError: No module named sip
Für mich sieht es so aus als ob ein Problem mit SIP besteht, aber ist dies nicht schon mit dem Installer von PyQT4 installiert worden?
Im Script kann ich durch import sip das modul importieren, ohne Fehler.
Kann evtl. ein Prolem zwischen mingw und SIP bestehen, wass und wie muss installiert werden?
Komme an dem Punkt nicht weiter und bräuchte bitte einen Lösungsansatz!
Vielen Dank! :K