Arbeitet hier jemand mit pyinstaller? Vor 5 Jahren hatte ich noch unter Windows 7 mit pyinstaller Python2 Programme compiliert. Das hatte gut funktioniert, es ist ein stand-alone exe herausgekommen. Ich hab das nun mit Python3 und Windows 10 wieder probiert. Da funktioniert das nicht mehr. Ich bekomme: P:\W10>pyinstaller.exe --onefile fextasy.py 140 INFO: PyInstaller: 4.7 140 INFO: Python: 3.10.0 171 INFO: Platform: Windows-10-10.0.19041-SP0 171 INFO: wrote P:\W10\fextasy.spec 171 INFO: UPX is not available. 218 INFO: Extending PYTHONPATH with paths ['P:\\W10'] 656 INFO: checking Analysis (...) 23858 INFO: Copying icons from ['C:\\Users\\admin\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\PyInstaller\\bootloader\\images\\icon-console.ico'] 23999 INFO: Writing RT_GROUP_ICON 0 resource with 104 bytes 23999 INFO: Writing RT_ICON 1 resource with 3752 bytes 23999 INFO: Writing RT_ICON 2 resource with 2216 bytes 23999 INFO: Writing RT_ICON 3 resource with 1384 bytes 23999 INFO: Writing RT_ICON 4 resource with 37019 bytes 23999 INFO: Writing RT_ICON 5 resource with 9640 bytes 23999 INFO: Writing RT_ICON 6 resource with 4264 bytes 23999 INFO: Writing RT_ICON 7 resource with 1128 bytes Traceback (most recent call last): File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\site-packages\win32ctypes\pywin32\pywintypes.py", line 35, in pywin32error yield File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\site-packages\win32ctypes\pywin32\win32api.py", line 229, in EndUpdateResource _resource._EndUpdateResource(handle, discard) File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\site-packages\win32ctypes\core\ctypes\_util.py", line 64, in check_false raise make_error(function, function_name) OSError: [WinError 110] The system cannot open the device or file specified. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "C:\Users\admin\AppData\Local\Programs\Python\Python310\Scripts\pyinstaller.exe\__main__.py", line 7, in <module> File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\__main__.py", line 124, in run run_build(pyi_config, spec_file, **vars(args)) File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\__main__.py", line 58, in run_build PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs) File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\building\build_main.py", line 782, in main build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build')) File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\building\build_main.py", line 714, in build exec(code, spec_namespace) File "P:\W10\fextasy.spec", line 23, in <module> exe = EXE(pyz, File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\building\api.py", line 507, in __init__ self.__postinit__() File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\building\datastruct.py", line 155, in __postinit__ self.assemble() File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\building\api.py", line 603, in assemble icon.CopyIcons(self.name, self.icon) File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\utils\win32\icon.py", line 208, in CopyIcons return CopyIcons_FromIco(dstpath, [srcpath]) File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\utils\win32\icon.py", line 158, in CopyIcons_FromIco win32api.EndUpdateResource(hdst, 0) File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\site-packages\win32ctypes\pywin32\win32api.py", line 228, in EndUpdateResource with _pywin32error(): File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\contextlib.py", line 153, in __exit__ self.gen.throw(typ, value, traceback) File "C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\site-packages\win32ctypes\pywin32\pywintypes.py", line 37, in pywin32error raise error(exception.winerror, exception.function, exception.strerror) win32ctypes.pywin32.pywintypes.error: (110, 'EndUpdateResourceW', 'The system cannot open the device or file specified.') Da meine Windows-Kenntnisse gegen Null tendieren, kann ich mit den Fehlermeldungen nichts anfangen. Was geht da schief? -- Ullrich Horlacher Server und Virtualisierung Rechenzentrum TIK Universitaet Stuttgart E-Mail: horlacher@tik.uni-stuttgart.de Allmandring 30a Tel: ++49-711-68565868 70569 Stuttgart (Germany) WWW: http://www.tik.uni-stuttgart.de/