Seite 1 von 1

Noob braucht Hilfe: auto-py-to-exe

Verfasst: Dienstag 1. Februar 2022, 19:30
von zapatas
Hallo ich habe ein Programm mit folgendem code:

Code: Alles auswählen

print("Hallo Welt")
Ich hab sogar jetzt meinen PC neu aufgesetzt nachdem mehrere Pythonversionen die ich durchprobiert habe nicht geklappt haben. Das Problem scheint also ein anderes zu sein. Nur welches .. das ist die große Frage.

auto-py-to-exe liefert mir (ich habe eine ähnliche Frage übrigens schonmal gestellt. Aber um jetzt mal auszuschließen das es am Code liegt und ich dringend die .exe erstellen muss explizit auf auto-py-to-exe angesprochen)

Running auto-py-to-exe v2.15.0
Building directory: C:\Users\Oz\AppData\Local\Temp\tmpoe3htnog
Provided command: pyinstaller --noconfirm --onefile --console "C:\Users\Oz\Desktop\text.py"
Recursion Limit is set to 5000
Executing: pyinstaller --noconfirm --onefile --console C:\Users\Oz\Desktop\text.py --distpath C:\Users\Oz\AppData\Local\Temp\tmpoe3htnog\application --workpath C:\Users\Oz\AppData\Local\Temp\tmpoe3htnog\build --specpath C:\Users\Oz\AppData\Local\Temp\tmpoe3htnog

192637 INFO: PyInstaller: 4.8
192638 INFO: Python: 3.9.10
192640 INFO: Platform: Windows-10-10.0.19043-SP0
192641 INFO: wrote C:\Users\Oz\AppData\Local\Temp\tmpoe3htnog\text.spec
192650 INFO: UPX is not available.
192669 INFO: Extending PYTHONPATH with paths
['C:\\Users\\Oz\\Desktop']
An error occurred while packaging
Traceback (most recent call last):
File "C:\Users\Oz\AppData\Local\Programs\Python\Python39\lib\site-packages\auto_py_to_exe\packaging.py", line 131, in package
run_pyinstaller()
File "C:\Users\Oz\AppData\Local\Programs\Python\Python39\lib\site-packages\PyInstaller\__main__.py", line 124, in run
run_build(pyi_config, spec_file, **vars(args))
File "C:\Users\Oz\AppData\Local\Programs\Python\Python39\lib\site-packages\PyInstaller\__main__.py", line 58, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "C:\Users\Oz\AppData\Local\Programs\Python\Python39\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:\Users\Oz\AppData\Local\Programs\Python\Python39\lib\site-packages\PyInstaller\building\build_main.py", line 725, in build
exec(code, spec_namespace)
File "C:\Users\Oz\AppData\Local\Temp\tmpoe3htnog\text.spec", line 7, in <module>
a = Analysis(['C:\\Users\\Oz\\Desktop\\text.py'],
File "C:\Users\Oz\AppData\Local\Programs\Python\Python39\lib\site-packages\PyInstaller\building\build_main.py", line 245, in __init__
self.hookspath += discover_hook_directories()
File "C:\Users\Oz\AppData\Local\Programs\Python\Python39\lib\site-packages\PyInstaller\building\build_main.py", line 102, in discover_hook_directories
output = exec_statement(
File "C:\Users\Oz\AppData\Local\Programs\Python\Python39\lib\site-packages\PyInstaller\utils\hooks\__init__.py", line 91, in exec_statement
return __exec_statement(statement, capture_stdout=True)
File "C:\Users\Oz\AppData\Local\Programs\Python\Python39\lib\site-packages\PyInstaller\utils\hooks\__init__.py", line 75, in __exec_statement
return __exec_python_cmd(cmd, capture_stdout=capture_stdout)
File "C:\Users\Oz\AppData\Local\Programs\Python\Python39\lib\site-packages\PyInstaller\utils\hooks\__init__.py", line 66, in __exec_python_cmd
txt = compat.exec_python(*cmd, env=pp_env)
File "C:\Users\Oz\AppData\Local\Programs\Python\Python39\lib\site-packages\PyInstaller\compat.py", line 546, in exec_python
return exec_command(*cmdargs, **kwargs)
File "C:\Users\Oz\AppData\Local\Programs\Python\Python39\lib\site-packages\PyInstaller\compat.py", line 332, in exec_command
out = proc.communicate(timeout=60)[0]
File "C:\Users\Oz\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 1134, in communicate
stdout, stderr = self._communicate(input, endtime, timeout)
File "C:\Users\Oz\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 1510, in _communicate
raise TimeoutExpired(self.args, orig_timeout)
subprocess.TimeoutExpired: Command '('C:\\Users\\Oz\\AppData\\Local\\Programs\\Python\\Python39\\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

Re: Noob braucht Hilfe: auto-py-to-exe

Verfasst: Dienstag 1. Februar 2022, 20:46
von sparrow

Re: Noob braucht Hilfe: auto-py-to-exe

Verfasst: Dienstag 1. Februar 2022, 21:01
von __deets__
Wieso hast du einen neuen Account angelegt, fuer das gleiche Problem?

Re: Noob braucht Hilfe: auto-py-to-exe

Verfasst: Dienstag 1. Februar 2022, 22:17
von zapatas
habe keinen zugriff