ich möchte aus einem Pythonscript eine exe-Datei erstellen. Folgend der Befehl, welchen ich in der Eingabeaufforderung absetze:
Code: Alles auswählen
python cxfreeze D:\Daten\System\Python\PyFinder\PyFinder_11.pyw --target-dir dist
Traceback (most recent call last):
File "cxfreeze", line 5, in <module>
main()
File "C:\Users\uwe\AppData\Local\Programs\Python\Python35\lib\site-packages\cx_Freeze\main.py", line 177, in main
freezer.Freeze()
File "C:\Users\uwe\AppData\Local\Programs\Python\Python35\lib\site-packages\cx_Freeze\freezer.py", line 621, in Freeze
self.finder = self._GetModuleFinder()
File "C:\Users\uwe\AppData\Local\Programs\Python\Python35\lib\site-packages\cx_Freeze\freezer.py", line 333, in _GetModuleFinder
self.path, self.replacePaths)
File "C:\Users\uwe\AppData\Local\Programs\Python\Python35\lib\site-packages\cx_Freeze\finder.py", line 150, in __init__
self._AddBaseModules()
File "C:\Users\uwe\AppData\Local\Programs\Python\Python35\lib\site-packages\cx_Freeze\finder.py", line 161, in _AddBaseModules
self.IncludeModule("traceback")
File "C:\Users\uwe\AppData\Local\Programs\Python\Python35\lib\site-packages\cx_Freeze\finder.py", line 645, in IncludeModule
namespace = namespace)
File "C:\Users\uwe\AppData\Local\Programs\Python\Python35\lib\site-packages\cx_Freeze\finder.py", line 310, in _ImportModule
deferredImports, namespace = namespace)
File "C:\Users\uwe\AppData\Local\Programs\Python\Python35\lib\site-packages\cx_Freeze\finder.py", line 403, in _InternalImportModule
parentModule, namespace)
File "C:\Users\uwe\AppData\Local\Programs\Python\Python35\lib\site-packages\cx_Freeze\finder.py", line 474, in _LoadModule
self._ScanCode(module.code, module, deferredImports)
File "C:\Users\uwe\AppData\Local\Programs\Python\Python35\lib\site-packages\cx_Freeze\finder.py", line 544, in _ScanCode
method = dis._unpack_opargs if sys.version_info[:2] >= (3, 5) \
AttributeError: module 'dis' has no attribute '_unpack_opargs'
System: Python 3.5.1, cxfreeze 5.01
Kann mir jemand sagen, was ich falsch mache?
Vielen Dank und schöne Ostern.
snowflake