Seite 1 von 1

pyinstaller funktioniert nicht

Verfasst: Donnerstag 25. Februar 2021, 18:17
von rennmaus
Hallo,
Immer wenn ich pyinstaller ausführe (alle Pfade sind korrekt und es kann darauf zugegriffen werden) bekomme ich diese Fehlermeldung:

Code: Alles auswählen

1213723 INFO: Building PKG (CArchive) PKG-01.pkg
An error occurred while packaging
Traceback (most recent call last):
  File "c:\users\chris\appdata\local\programs\python\python38\lib\site-packages\auto_py_to_exe\packaging.py", line 131, in package
    run_pyinstaller()
  File "c:\users\chris\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\__main__.py", line 114, in run
    run_build(pyi_config, spec_file, **vars(args))
  File "c:\users\chris\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\__main__.py", line 65, in run_build
    PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
  File "c:\users\chris\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\building\build_main.py", line 725, in main
    build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
  File "c:\users\chris\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\building\build_main.py", line 672, in build
    exec(code, spec_namespace)
  File "C:\Users\chris\AppData\Local\Temp\tmpikzgudm1\File_editor V2_classes.spec", line 20, in <module>
    exe = EXE(pyz,
  File "c:\users\chris\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\building\api.py", line 438, in __init__
    self.pkg = PKG(self.toc, cdict=kwargs.get('cdict', None),
  File "c:\users\chris\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\building\api.py", line 200, in __init__
    self.__postinit__()
  File "c:\users\chris\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\building\datastruct.py", line 160, in __postinit__
    self.assemble()
  File "c:\users\chris\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\building\api.py", line 286, in assemble
    archive = CArchiveWriter(self.name, srctoc + mytoc,
  File "c:\users\chris\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\archive\writers.py", line 333, in __init__
    super(CArchiveWriter, self).__init__(archive_path, logical_toc)
  File "c:\users\chris\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\archive\writers.py", line 64, in __init__
    self._add_from_table_of_contents(logical_toc)
  File "c:\users\chris\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\archive\writers.py", line 89, in _add_from_table_of_contents
    self.add(toc_entry)  # The guts of the archive.
  File "c:\users\chris\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\archive\writers.py", line 411, in add
    fh = open(pathnm, 'rb')
PermissionError: [Errno 13] Permission denied: 'AppData\\Local\\Comms\\UnistoreDB\\USS.jtx'
Ich hatte schonmal ein ähnliches Problem aufgrund der ico Datei, daran liegt es aber nicht. Kann mir da jemand helfen, diesen Fehler zu beheben?

Mfg
Christian

Re: pyinstaller funktioniert nicht

Verfasst: Freitag 26. Februar 2021, 14:22
von rennmaus
Neue Fehlermeldung, jetzt ohne icon:

Code: Alles auswählen

36799 INFO: Loading module hook 'hook-matplotlib.backends.py' from 'c:\\users\\chris\\appdata\\local\\programs\\python\\python38\\lib\\site-packages\\PyInstaller\\hooks'...
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "c:\users\chris\appdata\local\programs\python\python38\lib\site-packages\matplotlib\__init__.py", line 913, in <module>
    rcParamsDefault = _rc_params_in_file(
  File "c:\users\chris\appdata\local\programs\python\python38\lib\site-packages\matplotlib\__init__.py", line 812, in _rc_params_in_file
    with _open_file_or_url(fname) as fd:
  File "c:\users\chris\appdata\local\programs\python\python38\lib\contextlib.py", line 113, in __enter__
    return next(self.gen)
  File "c:\users\chris\appdata\local\programs\python\python38\lib\site-packages\matplotlib\__init__.py", line 786, in _open_file_or_url
    fname = os.path.expanduser(fname)
  File "c:\users\chris\appdata\local\programs\python\python38\lib\ntpath.py", line 293, in expanduser
    path = os.fspath(path)
TypeError: expected str, bytes or os.PathLike object, not WindowsPath
37168 INFO: Loading module hook 'hook-matplotlib.py' from 'c:\\users\\chris\\appdata\\local\\programs\\python\\python38\\lib\\site-packages\\PyInstaller\\hooks'...
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "c:\users\chris\appdata\local\programs\python\python38\lib\site-packages\matplotlib\__init__.py", line 913, in <module>
    rcParamsDefault = _rc_params_in_file(
  File "c:\users\chris\appdata\local\programs\python\python38\lib\site-packages\matplotlib\__init__.py", line 812, in _rc_params_in_file
    with _open_file_or_url(fname) as fd:
  File "c:\users\chris\appdata\local\programs\python\python38\lib\contextlib.py", line 113, in __enter__
    return next(self.gen)
  File "c:\users\chris\appdata\local\programs\python\python38\lib\site-packages\matplotlib\__init__.py", line 786, in _open_file_or_url
    fname = os.path.expanduser(fname)
  File "c:\users\chris\appdata\local\programs\python\python38\lib\ntpath.py", line 293, in expanduser
    path = os.fspath(path)
TypeError: expected str, bytes or os.PathLike object, not WindowsPath
Es läuft dann zwar weiter, aber hängt sich bei build pkg (glaube ich) auf