Wenn du dir nicht sicher bist, in welchem der anderen Foren du die Frage stellen sollst, dann bist du hier im Forum für allgemeine Fragen sicher richtig.
eingetragen in der .py datei
dan nimmt er automatisch einen server und da nimmt der den in frankfurt nur der disconnected jede 10-20min und laggt in amsterdam nicht
W: no module named posix (conditional import by os)
W: no module named email.Utils (delayed import by urllib)
W: no module named twisted (top-level import by __main__)
W: no module named SOCKS (top-level import by ftplib)
W: no module named pwd (delayed, conditional import by posixpath)
W: no module named win32api (delayed import by iu)
W: no module named ic (delayed import by urllib)
W: no module named email.Iterators (delayed import by email.message)
W: no module named posix (delayed, conditional import by iu)
W: no module named EasyDialogs (conditional import by getpass)
W: no module named rourl2path (conditional import by urllib)
W: no module named termios (top-level import by getpass)
W: no module named pwd (delayed import by getpass)
W: no module named email.Generator (delayed import by email.message)
W: no module named Carbon (conditional import by tempfile)
W: no module named org (top-level import by copy)
W: no module named _emx_link (conditional import by os)
W: no module named fcntl (top-level import by tempfile)
W: no module named AES (delayed, conditional import by archive)
W: __all__ is built strangely at line 0 - __future__ (C:\Python25\lib\__future__.pyc)
W: delayed conditional eval hack detected at line 0 - gopherlib (C:\Python25\lib\gopherlib.pyc)
W: delayed __import__ hack detected at line 0 - email (C:\Python25\lib\email\__init__.pyc)
W: delayed __import__ hack detected at line 0 - encodings (C:\Python25\lib\encodings\__init__.pyc)
W: delayed __import__ hack detected at line 0 - optparse (C:\Python25\lib\optparse.pyc)
W: delayed exec statement detected at line 0 - socket (C:\Python25\lib\socket.pyc)
W: delayed eval hack detected at line 0 - os (C:\Python25\lib\os.pyc)
W: top-level exec statement detected at line 0 - hashlib (C:\Python25\lib\hashlib.pyc)
W: top-level conditional exec statement detected at line 0 - hashlib (C:\Python25\lib\hashlib.pyc)
W: __all__ is built strangely at line 0 - tokenize (C:\Python25\lib\tokenize.pyc)
W: delayed conditional exec statement detected at line 0 - iu (C:\Users\Administrator\Desktop\pyinstaller-1.5.1\iu.pyc)
W: delayed conditional exec statement detected at line 0 - iu (C:\Users\Administrator\Desktop\pyinstaller-1.5.1\iu.pyc)
W: delayed eval hack detected at line 0 - gettext (C:\Python25\lib\gettext.pyc)
W: delayed conditional eval hack detected at line 0 - warnings (C:\Python25\lib\warnings.pyc)
W: delayed conditional __import__ hack detected at line 0 - warnings (C:\Python25\lib\warnings.pyc)
@HDK: Die Frage war/ist was passiert, wenn Du das Programm ganz normal als Python-Programm startest, *ohne* es als EXE zu verpacken. Solange *das* nicht funktioniert, macht es keinen Sinn ein nicht-funktionierendes Programm in eine EXE zu verwandeln.
Bei der EXE und offenbar auch beim Umwandeln wird das `twisted`-Modul vermisst. Ist das denn installiert?
BlackJack hat geschrieben:@HDK: Die Frage war/ist was passiert, wenn Du das Programm ganz normal als Python-Programm startest, *ohne* es als EXE zu verpacken. Solange *das* nicht funktioniert, macht es keinen Sinn ein nicht-funktionierendes Programm in eine EXE zu verwandeln.
also du meinst wen ich die .py dateinen normal in python öffne?
kann sein das wirklich am twisted modul lag hab das installiert jetz sagt er es fehlt zope.interface
HDK hat geschrieben:also du meinst wen ich die .py dateinen normal in python öffne?
"in python öffne" ist eine unglückliche Beschreibung. Die einen verstehen darunter das Ausführen des Skripts, die anderen halten IDLE für Python und meinen damit das Laden des Sourcecodes und wieder andere - wie ich zum Beispiel - halten den Ausdruck einfach für falsch.
Python ist eine Programmiersprache und kein Programm. Es gibt Umgebungen, die Python-Skripte ausführen können. Ich setze beispielsweise das "klassische" CPython und PyPy ein. Ich würde aber nicht auf die Idee kommen, diese beiden Produkte selber als "Python" zu bezeichnen.
HDK hat geschrieben:weis aber nich wie ich das installieren soll
ich habe jetz auf python 2.7 gewechselt mit py2exe
wen ich jetz teste mit "python jtvlc.py" in der cmd klappt es aber wenn ich es zu ner exe erstelle mit "python setup.py py2exe" kommt wieder wenn ich die exe ausführe
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Alle Rechte vorbehalten.
C:\Users\Administrator>cd C:\Python27\dist
C:\Python27\dist>jtvlc.exe
Traceback (most recent call last):
File "jtvlc.py", line 12, in <module>
File "twisted\internet\protocol.pyc", line 15, in <module>
ImportError: No module named zope.interface
C:\Python27\dist>
ich denke mal ich muss "pip install zope.interface" in der setup.py hinzufügen richtig?
was muss ich den genau einfügen da in setup.py?
die jetzige setup.py sieht so aus