Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > de.comp.lang.python > #5769

pyinstaller funktioniert nicht mehr

From Ulli Horlacher <framstag@rus.uni-stuttgart.de>
Newsgroups de.comp.lang.python
Subject pyinstaller funktioniert nicht mehr
Date 2021-11-18 09:56 +0000
Organization University of Stuttgart, FRG
Message-ID <sn5819$25j$1@news2.informatik.uni-stuttgart.de> (permalink)

Show all headers | View raw


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/

Back to de.comp.lang.python | Previous | NextNext in thread | Find similar


Thread

pyinstaller funktioniert nicht mehr Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2021-11-18 09:56 +0000
  Re: pyinstaller funktioniert nicht mehr "Peter Heitzer" <peter.heitzer@rz.uni-regensburg.de> - 2021-11-18 11:21 +0000
    Re: pyinstaller funktioniert nicht mehr Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2021-11-18 12:00 +0000
      Re: pyinstaller funktioniert nicht mehr "Peter Heitzer" <peter.heitzer@rz.uni-regensburg.de> - 2021-11-18 12:32 +0000
        Re: pyinstaller funktioniert nicht mehr Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2021-11-18 12:53 +0000
          Re: pyinstaller funktioniert nicht mehr "Peter Heitzer" <peter.heitzer@rz.uni-regensburg.de> - 2021-11-18 13:41 +0000
            Re: pyinstaller funktioniert nicht mehr "Peter Heitzer" <peter.heitzer@rz.uni-regensburg.de> - 2021-11-18 14:04 +0000
    Re: pyinstaller funktioniert nicht mehr Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2021-11-18 16:08 +0000
      Re: pyinstaller funktioniert nicht mehr "Peter Heitzer" <peter.heitzer@rz.uni-regensburg.de> - 2021-11-18 16:45 +0000
        Re: pyinstaller funktioniert nicht mehr Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2021-11-18 18:12 +0000
          Re: pyinstaller funktioniert nicht mehr "Peter Heitzer" <peter.heitzer@rz.uni-regensburg.de> - 2021-11-19 07:41 +0000
          [Python-de] Re: pyinstaller funktioniert nicht mehr Hartmut Goebel <h.goebel@goebel-consult.de> - 2022-02-12 15:17 +0100

csiph-web