früher ging das problemlos, doch jetzt bekomme ich nur noch Fehler wenn ich folgenden Code mittels auto-py-to-exe kompiliere. Habe es nun schon auf drei verschiedenen Systemen ausprobiert, immer das gleiche Ergebnis

import shutil
import os
from pathlib import Path
print("\n\n")
print("Erstellung eines neuen Projektordners\n")
print("Info: Das Programm erstellt auf Basis der Eingabe sowie der im Projektordner \nhinterlegten Ordnerstruktur für das Jahr 2022 einen neuen Projektordner.\n")
userinput_projektnummer=input("Bitte genaue Projektnummer eingeben (z.B. 22DU09999): ")
if "DU000" in userinput_projektnummer:
add="22DU00000"
elif "DU001" in userinput_projektnummer:
add="22DU00100"
elif "DU002" in userinput_projektnummer:
add="22DU00200"
elif "DU003" in userinput_projektnummer:
add="22DU00300"
elif "DU004" in userinput_projektnummer:
add="22DU00400"
elif "DU005" in userinput_projektnummer:
add="22DU00500"
elif "DU006" in userinput_projektnummer:
add="22DU00600"
elif "DU007" in userinput_projektnummer:
add="22DU00700"
elif "DU008" in userinput_projektnummer:
add="22DU00800"
elif "DU009" in userinput_projektnummer:
add="22DU00900"
elif "DU010" in userinput_projektnummer:
add="22DU01000"
print("\n")
userinput_bezeichnung=input("Bitte (sofern gewünscht) eine Projektbezeichnung eingeben : \n")
neuerordner=str(userinput_projektnummer)+" "+str(userinput_bezeichnung)
newpath_00 = Path("G:/Projekte/22/"+str(add)+"/"+str(neuerordner)+"/00_Projektmanagement")
newpath_01 = Path("G:/Projekte/22/"+str(add)+"/"+str(neuerordner)+"/01_Vertragswesen")
newpath_011 = Path("G:/Projekte/22/"+str(add)+"/"+str(neuerordner)+"/01_Vertragswesen/01 Anfragen Angebote")
newpath_012 = Path("G:/Projekte/22/"+str(add)+"/"+str(neuerordner)+"/01_Vertragswesen/02 Auftrag Rechnungen")
newpath_013 = Path("G:/Projekte/22/"+str(add)+"/"+str(neuerordner)+"/01_Vertragswesen/03 Anfragen Angebute NU")
newpath_014 = Path("G:/Projekte/22/"+str(add)+"/"+str(neuerordner)+"/01_Vertragswesen/04 Auftrag Rechnungen NU")
newpath_02 = Path("G:/Projekte/22/"+str(add)+"/"+str(neuerordner)+"/02_Schriftverkehr")
newpath_021 = Path("G:/Projekte/22/"+str(add)+"/"+str(neuerordner)+"/02_Schriftverkehr/01_Briefe")
newpath_022 = Path("G:/Projekte/22/"+str(add)+"/"+str(neuerordner)+"/02_Schriftverkehr/02_E-Mails")
newpath_023 = Path("G:/Projekte/22/"+str(add)+"/"+str(neuerordner)+"/02_Schriftverkehr/03_Notizen")
newpath_024 = Path("G:/Projekte/22/"+str(add)+"/"+str(neuerordner)+"/02_Schriftverkehr/04_Protokolle")
newpath_03 = Path("G:/Projekte/22/"+str(add)+"/"+str(neuerordner)+"/03_Pläne und Unterlagen")
newpath_031 = Path("G:/Projekte/22/"+str(add)+"/"+str(neuerordner)+"/03_Pläne und Unterlagen/01_Terminplanung")
newpath_032 = Path("G:/Projekte/22/"+str(add)+"/"+str(neuerordner)+"/03_Pläne und Unterlagen/02_Unterlagen Planeingang extern")
newpath_033 = Path("G:/Projekte/22/"+str(add)+"/"+str(neuerordner)+"/03_Pläne und Unterlagen/03_Planentwürfe")
newpath_034 = Path("G:/Projekte/22/"+str(add)+"/"+str(neuerordner)+"/03_Pläne und Unterlagen/04_Unterlagen Planausgang")
newpath_035 = Path("G:/Projekte/22/"+str(add)+"/"+str(neuerordner)+"/03_Pläne und Unterlagen/05_Qualitätsmanagement")
newpath_036 = Path("G:/Projekte/22/"+str(add)+"/"+str(neuerordner)+"/03_Pläne und Unterlagen/06_Plangrundlagen CAD")
newpath_04 = Path("G:/Projekte/22/"+str(add)+"/"+str(neuerordner)+"/04_Feldarbeiten und Labor")
newpath_041 = Path("G:/Projekte/22/"+str(add)+"/"+str(neuerordner)+"/04_Feldarbeiten und Labor/01 Feldprotokolle")
newpath_042 = Path("G:/Projekte/22/"+str(add)+"/"+str(neuerordner)+"/04_Feldarbeiten und Labor/02 Laborversuche")
newpath_043 = Path("G:/Projekte/22/"+str(add)+"/"+str(neuerordner)+"/04_Feldarbeiten und Labor/03 Analytik")
newpath_05 = Path("G:/Projekte/22/"+str(add)+"/"+str(neuerordner)+"/05_Bilder")
newpath_06 = Path("G:/Projekte/22/"+str(add)+"/"+str(neuerordner)+"/06_Arbeitsunterlagen")
newpath_061 = Path("G:/Projekte/22/"+str(add)+"/"+str(neuerordner)+"/06_Arbeitsunterlagen/01_Unterlagen AG")
newpath_062 = Path("G:/Projekte/22/"+str(add)+"/"+str(neuerordner)+"/06_Arbeitsunterlagen/02_Literatur")
newpath_063 = Path("G:/Projekte/22/"+str(add)+"/"+str(neuerordner)+"/06_Arbeitsunterlagen/03_Auswertungen_Berechnungen")
newpath_07 = Path("G:/Projekte/22/"+str(add)+"/"+str(neuerordner)+"/07_Berichte")
newpath_071 = Path("G:/Projekte/22/"+str(add)+"/"+str(neuerordner)+"/07_Berichte/01 Entwürfe")
newpath_072 = Path("G:/Projekte/22/"+str(add)+"/"+str(neuerordner)+"/07_Berichte/02 Final")
newpath_08 = Path("G:/Projekte/22/"+str(add)+"/"+str(neuerordner)+"/08_LV")
newpath_09 = Path("G:/Projekte/22/"+str(add)+"/"+str(neuerordner)+"/09_Bauüberwachung")
newpath_00.mkdir(parents=True, exist_ok=False)
newpath_01.mkdir(parents=True, exist_ok=False)
newpath_011.mkdir(parents=True, exist_ok=False)
newpath_012.mkdir(parents=True, exist_ok=False)
newpath_013.mkdir(parents=True, exist_ok=False)
newpath_014.mkdir(parents=True, exist_ok=False)
newpath_02.mkdir(parents=True, exist_ok=False)
newpath_021.mkdir(parents=True, exist_ok=False)
newpath_022.mkdir(parents=True, exist_ok=False)
newpath_023.mkdir(parents=True, exist_ok=False)
newpath_024.mkdir(parents=True, exist_ok=False)
newpath_03.mkdir(parents=True, exist_ok=False)
newpath_031.mkdir(parents=True, exist_ok=False)
newpath_032.mkdir(parents=True, exist_ok=False)
newpath_033.mkdir(parents=True, exist_ok=False)
newpath_034.mkdir(parents=True, exist_ok=False)
newpath_035.mkdir(parents=True, exist_ok=False)
newpath_036.mkdir(parents=True, exist_ok=False)
newpath_04.mkdir(parents=True, exist_ok=False)
newpath_041.mkdir(parents=True, exist_ok=False)
newpath_042.mkdir(parents=True, exist_ok=False)
newpath_043.mkdir(parents=True, exist_ok=False)
newpath_05.mkdir(parents=True, exist_ok=False)
newpath_06.mkdir(parents=True, exist_ok=False)
newpath_07.mkdir(parents=True, exist_ok=False)
newpath_071.mkdir(parents=True, exist_ok=False)
newpath_072.mkdir(parents=True, exist_ok=False)
newpath_08.mkdir(parents=True, exist_ok=False)
newpath_09.mkdir(parents=True, exist_ok=False)
root_path_file1 = r"G:/Projekte/xxDUxxxxx_x_Vorlage neuer Projektordner/00_Projektmanagement/FBAA15B_Checkliste_.pdf"
root_path_file2 = r"G:/Projekte/xxDUxxxxx_x_Vorlage neuer Projektordner/00_Projektmanagement/F1C_Projektverfolgung.pdf"
root_path_file3 = r"G:/Projekte/xxDUxxxxx_x_Vorlage neuer Projektordner/00_Projektmanagement/FD_ProjektverfolgungII.pdf"
root_path_file4 = r"G:/Projekte/xxDUxxxxx_x_Vorlage neuer Projektordner/00_Projektmanagement/VA_Projektverfolgung.pdf"
shutil.copy2(root_path_file1,newpath_00)
shutil.copy2(root_path_file2,newpath_00)
shutil.copy2(root_path_file3,newpath_00)
shutil.copy2(root_path_file4,newpath_00)
''#######################################
#######################################
Ausgabe von auto-py-to-exe:
Running auto-py-to-exe v2.15.0
Building directory: C:\Users\Oz\AppData\Local\Temp\tmp0w3w84lx
Provided command: pyinstaller --noconfirm --onefile --console "C:/Users/Oz/Downloads/copy.py"
Recursion Limit is set to 5000
Executing: pyinstaller --noconfirm --onefile --console C:/Users/Oz/Downloads/copy.py --distpath C:\Users\Oz\AppData\Local\Temp\tmp0w3w84lx\application --workpath C:\Users\Oz\AppData\Local\Temp\tmp0w3w84lx\build --specpath C:\Users\Oz\AppData\Local\Temp\tmp0w3w84lx
31472 INFO: PyInstaller: 4.8
31480 INFO: Python: 3.10.2
31507 INFO: Platform: Windows-10-10.0.19043-SP0
31525 INFO: wrote C:\Users\Oz\AppData\Local\Temp\tmp0w3w84lx\copy.spec
31528 INFO: UPX is not available.
31531 INFO: Extending PYTHONPATH with paths
['C:\\Users\\Oz\\Downloads']
An error occurred while packaging
Traceback (most recent call last):
File "C:\Python310\lib\site-packages\auto_py_to_exe\packaging.py", line 131, in package
run_pyinstaller()
File "C:\Python310\lib\site-packages\PyInstaller\__main__.py", line 124, in run
run_build(pyi_config, spec_file, **vars(args))
File "C:\Python310\lib\site-packages\PyInstaller\__main__.py", line 58, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "C:\Python310\lib\site-packages\PyInstaller\building\build_main.py", line 793, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "C:\Python310\lib\site-packages\PyInstaller\building\build_main.py", line 725, in build
exec(code, spec_namespace)
File "C:\Users\Oz\AppData\Local\Temp\tmp0w3w84lx\copy.spec", line 7, in <module>
a = Analysis(['C:/Users/Oz/Downloads/copy.py'],
File "C:\Python310\lib\site-packages\PyInstaller\building\build_main.py", line 245, in __init__
self.hookspath += discover_hook_directories()
File "C:\Python310\lib\site-packages\PyInstaller\building\build_main.py", line 102, in discover_hook_directories
output = exec_statement(
File "C:\Python310\lib\site-packages\PyInstaller\utils\hooks\__init__.py", line 91, in exec_statement
return __exec_statement(statement, capture_stdout=True)
File "C:\Python310\lib\site-packages\PyInstaller\utils\hooks\__init__.py", line 75, in __exec_statement
return __exec_python_cmd(cmd, capture_stdout=capture_stdout)
File "C:\Python310\lib\site-packages\PyInstaller\utils\hooks\__init__.py", line 66, in __exec_python_cmd
txt = compat.exec_python(*cmd, env=pp_env)
File "C:\Python310\lib\site-packages\PyInstaller\compat.py", line 546, in exec_python
return exec_command(*cmdargs, **kwargs)
File "C:\Python310\lib\site-packages\PyInstaller\compat.py", line 332, in exec_command
out = proc.communicate(timeout=60)[0]
File "C:\Python310\lib\subprocess.py", line 1149, in communicate
stdout, stderr = self._communicate(input, endtime, timeout)
File "C:\Python310\lib\subprocess.py", line 1525, in _communicate
raise TimeoutExpired(self.args, orig_timeout)
subprocess.TimeoutExpired: Command '('C:\\Python310\\python.exe', '-c', '\nimport sys\nimport pkg_resources\n\nentry_points = pkg_resources.iter_entry_points(\'pyinstaller40\', \'hook-dirs\')\nfor entry_point in entry_points:\n try:\n hook_dirs = entry_point.load()()\n for hook_dir in hook_dirs:\n print(\'\\n$_pyi:\' + hook_dir + \'*\')\n except Exception as e:\n print("discover_hook_directories: Failed to process hook entry point \'%s\': %s" %\n (entry_point, e), file=sys.stderr)\n')' timed out after 60 seconds
Project output will not be moved to output folder
Complete.
Weiß jemand einen Rat ? Bin leider Anfänger
