Pyinstaller erstellt Aal, findet aber die Quellen nichtHTML

HTML-Programmierer
Anonymous
 Pyinstaller erstellt Aal, findet aber die Quellen nicht

Post by Anonymous »

Wenn ich es in VSCODE ausführe, ohne es mit PyInstaller
Aal zu kompilierenError: 404 Not Found
Sorry, the requested URL 'http://localhost:8000/index.html' caused an error:

File does not exist.
< /code>
PyInstaller -Protokoll: < /p>
PS C:\Users\[DIRECTORY]> pyinstaller --onefile web.py
328 INFO: PyInstaller: 6.12.0, contrib hooks: 2025.2
328 INFO: Python: 3.12.10
361 INFO: Platform: Windows-11-10.0.26100-SP0
362 INFO: Python environment: C:\Users\[DIRECTORY]\.venv
363 INFO: wrote C:\Users\[DIRECTORY]\web.spec
373 INFO: Module search paths (PYTHONPATH):
['C:\\Users[DIRECTORY].venv\\Scripts\\pyinstaller.exe',
'C:\\Program '
'Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.12_3.12.2800.0_x64__qbz5n2kfra8p0\\python312.zip',
'C:\\Program '
'Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.12_3.12.2800.0_x64__qbz5n2kfra8p0\\DLLs',
'C:\\Program '
'Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.12_3.12.2800.0_x64__qbz5n2kfra8p0\\Lib',
'C:\\Program '
'Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.12_3.12.2800.0_x64__qbz5n2kfra8p0',
'C:\\Users[DIRECTORY].venv',
'C:\\Users[DIRECTORY].venv\\Lib\\site-packages',
'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\win32',
'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\win32\\lib',
'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\Pythonwin',
'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\setuptools\\_vendor',
'C:\\Users[DIRECTORY]']
343 WARNING: discover_hook_directories: Failed to process hook entry point 'EntryPoint(name='hook-dirs', value='rapidfuzz.__pyinstaller:get_hook_dirs', group='pyinstaller40')': AttributeError: module 'rapidfuzz.__pyinstaller' has no attribute 'get_hook_dirs'
1127 INFO: checking Analysis
1127 INFO: Building Analysis because Analysis-00.toc is non existent
1127 INFO: Running Analysis Analysis-00.toc
1128 INFO: Target bytecode optimization level: 0
1128 INFO: Initializing module dependency graph...
1130 INFO: Initializing module graph hook caches...
1167 INFO: Analyzing modules for base_library.zip ...
3149 INFO: Processing standard module hook 'hook-heapq.py' from 'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\PyInstaller\\hooks'
3485 INFO: Processing standard module hook 'hook-encodings.py' from 'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\PyInstaller\\hooks'
5893 INFO: Processing standard module hook 'hook-pickle.py' from 'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\PyInstaller\\hooks'
7531 INFO: Caching module dependency graph...
7588 INFO: Looking for Python shared library...
7588 INFO: Using Python shared library: C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.2800.0_x64__qbz5n2kfra8p0\python312.dll
7588 INFO: Analyzing C:\Users\[DIRECTORY]\web.py
7710 INFO: Processing standard module hook 'hook-multiprocessing.util.py' from 'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\PyInstaller\\hooks'
7917 INFO: Processing standard module hook 'hook-xml.py' from 'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\PyInstaller\\hooks'
9010 INFO: Processing standard module hook 'hook-charset_normalizer.py' from 'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\_pyinstaller_hooks_contrib\\stdhooks'
9147 INFO: Processing pre-safe-import-module hook 'hook-typing_extensions.py' from 'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module'
9149 INFO: SetuptoolsInfo: initializing cached setuptools info...
15322 INFO: Processing standard module hook 'hook-playwright.sync_api.py' from 'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\playwright\\_impl\\__pyinstaller'
16254 INFO: Processing standard module hook 'hook-platform.py' from 'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\PyInstaller\\hooks'
17675 INFO: Processing standard module hook 'hook-certifi.py' from 'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\_pyinstaller_hooks_contrib\\stdhooks'
17827 INFO: Processing pre-safe-import-module hook 'hook-win32com.py' from 'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\_pyinstaller_hooks_contrib\\pre_safe_import_module'
17981 INFO: Processing standard module hook 'hook-win32com.py' from 'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\_pyinstaller_hooks_contrib\\stdhooks'
17984 INFO: Processing standard module hook 'hook-pythoncom.py' from 'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\_pyinstaller_hooks_contrib\\stdhooks'
18169 INFO: Processing standard module hook 'hook-pywintypes.py' from 'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\_pyinstaller_hooks_contrib\\stdhooks'
C:\Users\[DIRECTORY]\.venv\Lib\site-packages\winshell.py:882: SyntaxWarning: invalid escape sequence '\p'
Target=r"c:\python\python.exe",
19579 INFO: Processing pre-safe-import-module hook 'hook-importlib_resources.py' from 'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module'
19626 INFO: Processing standard module hook 'hook-eel.py' from 'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\_pyinstaller_hooks_contrib\\stdhooks'
19843 INFO: Processing standard module hook 'hook-gevent.py' from 'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\PyInstaller\\hooks'
::
2500 WARNING: Failed to collect submodules for 'gevent.testing' because importing 'gevent.testing' raised: TypeError: cannot unpack non-iterable NoneType object
23623 INFO: Processing standard module hook 'hook-zope.interface.py' from 'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\PyInstaller\\hooks'
23718 INFO: Processing standard module hook 'hook-difflib.py' from 'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\PyInstaller\\hooks'
24546 INFO: Processing standard module hook 'hook-jinja2.py' from 'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\_pyinstaller_hooks_contrib\\stdhooks'
25736 INFO: Processing standard module hook 'hook-pkg_resources.py' from 'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\PyInstaller\\hooks'
26399 INFO: Processing pre-safe-import-module hook 'hook-packaging.py' from 'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module'
26413 INFO: Processing standard module hook 'hook-packaging.py' from 'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\PyInstaller\\hooks'
26525 INFO: Processing standard module hook 'hook-sysconfig.py' from 'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\PyInstaller\\hooks'
26579 INFO: Processing pre-safe-import-module hook 'hook-jaraco.text.py' from 'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module'
26580 INFO: Setuptools: 'jaraco.text' appears to be a setuptools-vendored copy - creating alias to 'setuptools._vendor.jaraco.text'!
26589 INFO: Processing standard module hook 'hook-setuptools.py' from 'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\PyInstaller\\hooks'
26607 INFO: Processing pre-safe-import-module hook 'hook-distutils.py' from 'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module'
26683 INFO: Processing pre-safe-import-module hook 'hook-jaraco.functools.py' from 'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module'
26684 INFO: Setuptools: 'jaraco.functools' appears to be a setuptools-vendored copy - creating alias to 'setuptools._vendor.jaraco.functools'!
26699 INFO: Processing pre-safe-import-module hook 'hook-more_itertools.py' from 'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module'
26700 INFO: Setuptools: 'more_itertools' appears to be a setuptools-vendored copy - creating alias to 'setuptools._vendor.more_itertools'!
27121 INFO: Processing pre-safe-import-module hook 'hook-importlib_metadata.py' from 'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module'
27122 INFO: Setuptools: 'importlib_metadata' appears to be a setuptools-vendored copy - creating alias to 'setuptools._vendor.importlib_metadata'!
27157 INFO: Processing standard module hook 'hook-setuptools._vendor.importlib_metadata.py' from 'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\PyInstaller\\hooks'
27161 INFO: Processing pre-safe-import-module hook 'hook-zipp.py' from 'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module'
27162 INFO: Setuptools: 'zipp' appears to be a setuptools-vendored copy - creating alias to 'setuptools._vendor.zipp'!
27472 INFO: Processing pre-safe-import-module hook 'hook-tomli.py' from 'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module'
27473 INFO: Setuptools: 'tomli' appears to be a setuptools-vendored copy - creating alias to 'setuptools._vendor.tomli'!
28135 INFO: Processing pre-safe-import-module hook 'hook-wheel.py' from 'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module'
28136 INFO: Setuptools: 'wheel' appears to be a setuptools-vendored copy - creating alias to 'setuptools._vendor.wheel'!
28378 INFO: Processing standard module hook 'hook-setuptools._vendor.jaraco.text.py' from 'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\PyInstaller\\hooks'
28381 INFO: Processing pre-safe-import-module hook 'hook-jaraco.context.py' from 'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module'
28381 INFO: Setuptools: 'jaraco.context' appears to be a setuptools-vendored copy - creating alias to 'setuptools._vendor.jaraco.context'!
28394 INFO: Processing pre-safe-import-module hook 'hook-backports.tarfile.py' from 'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module'
28395 INFO: Setuptools: 'backports.tarfile' appears to be a setuptools-vendored copy - creating alias to 'setuptools._vendor.backports.tarfile'!
28520 INFO: Processing standard module hook 'hook-backports.py' from 'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\_pyinstaller_hooks_contrib\\stdhooks'
28524 INFO: Processing pre-safe-import-module hook 'hook-platformdirs.py' from 'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module'
28524 INFO: Setuptools: 'platformdirs' appears to be a setuptools-vendored copy - creating alias to 'setuptools._vendor.platformdirs'!
28590 INFO: Processing module hooks (post-graph stage)...
28906 INFO: Processing standard module hook 'hook-pycparser.py' from 'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\_pyinstaller_hooks_contrib\\stdhooks'
31645 INFO: Performing binary vs. data reclassification (407 entries)
31723 INFO: Looking for ctypes DLLs
31786 INFO: Analyzing run-time hooks ...
31793 INFO: Including run-time hook 'pyi_rth_inspect.py' from 'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\PyInstaller\\hooks\\rthooks'
31796 INFO: Including run-time hook 'pyi_rth_pkgres.py' from 'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\PyInstaller\\hooks\\rthooks'
31804 INFO: Including run-time hook 'pyi_rth_setuptools.py' from 'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\PyInstaller\\hooks\\rthooks'
31806 INFO: Including run-time hook 'pyi_rth_pkgutil.py' from 'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\PyInstaller\\hooks\\rthooks'
31809 INFO: Including run-time hook 'pyi_rth_multiprocessing.py' from 'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\PyInstaller\\hooks\\rthooks'
31811 INFO: Including run-time hook 'pyi_rth_pythoncom.py' from 'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\_pyinstaller_hooks_contrib\\rthooks'
31813 INFO: Including run-time hook 'pyi_rth_pywintypes.py' from 'C:\\Users[DIRECTORY].venv\\Lib\\site-packages\\_pyinstaller_hooks_contrib\\rthooks'
31852 INFO: Creating base_library.zip...
31975 INFO: Looking for dynamic libraries
No conda env active, defaulting to base
33714 INFO: Extra DLL search directories (AddDllDirectory): []
33714 INFO: Extra DLL search directories (PATH): []
35013 INFO: Warnings written to C:\Users\[DIRECTORY]\build\web\warn-web.txt
35154 INFO: Graph cross-reference written to C:\Users\[DIRECTORY]\build\web\xref-web.html
35224 INFO: checking PYZ
35225 INFO: Building PYZ because PYZ-00.toc is non existent
35225 INFO: Building PYZ (ZlibArchive) C:\Users\[DIRECTORY]\build\web\PYZ-00.pyz
37168 INFO: Building PYZ (ZlibArchive) C:\Users\[DIRECTORY]\build\web\PYZ-00.pyz completed successfully.
37214 INFO: checking PKG
37215 INFO: Building PKG because PKG-00.toc is non existent
37215 INFO: Building PKG (CArchive) web.pkg
55598 INFO: Building PKG (CArchive) web.pkg completed successfully.
55616 INFO: Bootloader C:\Users\[DIRECTORY]\.venv\Lib\site-packages\PyInstaller\bootloader\Windows-64bit-intel\run.exe
55617 INFO: checking EXE
55617 INFO: Building EXE because EXE-00.toc is non existent
55617 INFO: Building EXE from EXE-00.toc
55618 INFO: Copying bootloader EXE to C:\Users\[DIRECTORY]\dist\web.exe
55628 INFO: Copying icon to EXE
55634 INFO: Copying 0 resources to EXE
55634 INFO: Embedding manifest in EXE
55640 INFO: Appending PKG archive to EXE
55698 INFO: Fixing EXE headers
56057 INFO: Building EXE from EXE-00.toc completed successfully.
56078 INFO: Build complete! The results are available in: C:\Users\[DIRECTORY]\dist
PS C:\Users\[DIRECTORY]>
< /code>
eel.init("web")
eel.start("index.html", size=(800, 600))
< /code>
What am i missing?

This is a story for Stack Overflow to not warn me about my question being mostly code.

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post