Use -- hidden import still lacks modules #9329
-
|
I use commands: (base) PS C:\Users\You\PycharmProjects\XHS-Downloader\dist\main> .\main.exe
Traceback (most recent call last):
File "main.py", line 6, in <module>
File "pyimod02_importers.py", line 457, in exec_module
File "source\__init__.py", line 1, in <module>
File "pyimod02_importers.py", line 457, in exec_module
File "source\CLI\__init__.py", line 1, in <module>
File "pyimod02_importers.py", line 457, in exec_module
File "source\CLI\main.py", line 19, in <module>
File "pyimod02_importers.py", line 457, in exec_module
File "source\application\__init__.py", line 1, in <module>
File "pyimod02_importers.py", line 457, in exec_module
File "source\application\app.py", line 18, in <module>
File "pyimod02_importers.py", line 457, in exec_module
File "fastmcp\__init__.py", line 15, in <module>
File "pyimod02_importers.py", line 457, in exec_module
File "fastmcp\server\__init__.py", line 1, in <module>
File "pyimod02_importers.py", line 457, in exec_module
File "fastmcp\server\server.py", line 34, in <module>
File "pyimod02_importers.py", line 457, in exec_module
File "docket\__init__.py", line 11, in <module>
File "pyimod02_importers.py", line 457, in exec_module
File "docket\agenda.py", line 14, in <module>
File "pyimod02_importers.py", line 457, in exec_module
File "docket\docket.py", line 29, in <module>
ModuleNotFoundError: No module named 'redis'
[PYI-12372:ERROR] Failed to execute script 'main' due to unhandled exception!Why did importing redis fail? Is it due to UV? It's normal for me to run it directly using the source code |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
This is the complete log (base) (XHS-Downloader) PS C:\Users\You\PycharmProjects\XHS-Downloader> uv run pyinstaller --clean --icon=./static/XHS-Downloader.ico --add-data "static:static" --add-data "locale:locale" --collect-all emoji --collect-all fastmcp --hidden-import redis main.py
129 WARNING: Assuming this is not an Anaconda environment or an additional venv/pipenv/... environment manager is being used on top, because the conda-meta folder C:\Users\You\PycharmProjects\XHS-Downloader\.venv\conda-meta does not exist.
151 INFO: PyInstaller: 6.17.0, contrib hooks: 2025.10
152 INFO: Python: 3.12.9 (conda)
187 INFO: Platform: Windows-11-10.0.26100-SP0
187 INFO: Python environment: C:\Users\You\PycharmProjects\XHS-Downloader\.venv
188 INFO: wrote C:\Users\You\PycharmProjects\XHS-Downloader\main.spec
192 INFO: Removing temporary files and cleaning cache in C:\Users\You\AppData\Local\pyinstaller
104 WARNING: Assuming this is not an Anaconda environment or an additional venv/pipenv/... environment manager is being used on top, because the conda-meta folder C:\Users\You\PycharmProjects\XHS-Downloader\.venv\conda-meta does not exist.
155 WARNING: Assuming this is not an Anaconda environment or an additional venv/pipenv/... environment manager is being used on top, because the conda-meta folder C:\Users\You\PycharmProjects\XHS-Downloader\.venv\conda-meta does not exist.
4915 INFO: Module search paths (PYTHONPATH):
['C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Scripts\\pyinstaller.exe',
'C:\\ProgramData\\miniconda3\\python312.zip',
'C:\\ProgramData\\miniconda3\\DLLs',
'C:\\ProgramData\\miniconda3\\Lib',
'C:\\ProgramData\\miniconda3',
'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv',
'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages',
'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\win32',
'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\win32\\lib',
'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\Pythonwin',
'C:\\Users\\You\\PycharmProjects\\XHS-Downloader']
111 WARNING: Assuming this is not an Anaconda environment or an additional venv/pipenv/... environment manager is being used on top, because the conda-meta folder C:\Users\You\PycharmProjects\XHS-Downloader\.venv\conda-meta does not exist.
5267 INFO: Appending 'datas' from .spec
5297 INFO: checking Analysis
5298 INFO: Building Analysis because Analysis-00.toc is non existent
5298 INFO: Looking for Python shared library...
5298 INFO: Using Python shared library: C:\ProgramData\miniconda3\python312.dll
5299 INFO: Running Analysis Analysis-00.toc
5299 INFO: Target bytecode optimization level: 0
5299 INFO: Initializing module dependency graph...
5301 INFO: Initializing module graph hook caches...
5317 INFO: Analyzing modules for base_library.zip ...
102 WARNING: Assuming this is not an Anaconda environment or an additional venv/pipenv/... environment manager is being used on top, because the conda-meta folder C:\Users\You\PycharmProjects\XHS-Downloader\.venv\conda-meta does not exist.
108 WARNING: Assuming this is not an Anaconda environment or an additional venv/pipenv/... environment manager is being used on top, because the conda-meta folder C:\Users\You\PycharmProjects\XHS-Downloader\.venv\conda-meta does not exist.
100 WARNING: Assuming this is not an Anaconda environment or an additional venv/pipenv/... environment manager is being used on top, because the conda-meta folder C:\Users\You\PycharmProjects\XHS-Downloader\.venv\conda-meta does not exist.
6702 INFO: Processing standard module hook 'hook-encodings.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\PyInstaller\\hooks'
101 WARNING: Assuming this is not an Anaconda environment or an additional venv/pipenv/... environment manager is being used on top, because the conda-meta folder C:\Users\You\PycharmProjects\XHS-Downloader\.venv\conda-meta does not exist.
8316 INFO: Processing standard module hook 'hook-pickle.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\PyInstaller\\hooks'
9367 INFO: Processing standard module hook 'hook-heapq.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\PyInstaller\\hooks'
9744 INFO: Caching module dependency graph...
9789 INFO: Analyzing C:\Users\You\PycharmProjects\XHS-Downloader\main.py
9951 INFO: Processing standard module hook 'hook-multiprocessing.util.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\PyInstaller\\hooks'
10116 INFO: Processing standard module hook 'hook-xml.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\PyInstaller\\hooks'
10366 INFO: Processing standard module hook 'hook-_ctypes.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\PyInstaller\\hooks'
10899 INFO: Processing pre-safe-import-module hook 'hook-typing_extensions.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module'
10900 INFO: SetuptoolsInfo: initializing cached setuptools info...
233 WARNING: Assuming this is not an Anaconda environment or an additional venv/pipenv/... environment manager is being used on top, because the conda-meta folder C:\Users\You\PycharmProjects\XHS-Downloader\.venv\conda-meta does not exist.
15115 INFO: Processing standard module hook 'hook-platform.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\PyInstaller\\hooks'
15184 INFO: Processing standard module hook 'hook-difflib.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\PyInstaller\\hooks'
15683 INFO: Processing standard module hook 'hook-pygments.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\PyInstaller\\hooks'
107 WARNING: Assuming this is not an Anaconda environment or an additional venv/pipenv/... environment manager is being used on top, because the conda-meta folder C:\Users\You\PycharmProjects\XHS-Downloader\.venv\conda-meta does not exist.
98 WARNING: Assuming this is not an Anaconda environment or an additional venv/pipenv/... environment manager is being used on top, because the conda-meta folder C:\Users\You\PycharmProjects\XHS-Downloader\.venv\conda-meta does not exist.
101 WARNING: Assuming this is not an Anaconda environment or an additional venv/pipenv/... environment manager is being used on top, because the conda-meta folder C:\Users\You\PycharmProjects\XHS-Downloader\.venv\conda-meta does not exist.
17654 INFO: Processing standard module hook 'hook-sysconfig.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\PyInstaller\\hooks'
18196 INFO: Processing standard module hook 'hook-pydantic.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\_pyinstaller_hooks_contrib\\stdhooks'
122 WARNING: Assuming this is not an Anaconda environment or an additional venv/pipenv/... environment manager is being used on top, because the conda-meta folder C:\Users\You\PycharmProjects\XHS-Downloader\.venv\conda-meta does not exist.
19349 INFO: Processing standard module hook 'hook-zoneinfo.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\_pyinstaller_hooks_contrib\\stdhooks'
20212 INFO: Processing standard module hook 'hook-certifi.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\_pyinstaller_hooks_contrib\\stdhooks'
20235 INFO: Processing standard module hook 'hook-anyio.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\_pyinstaller_hooks_contrib\\stdhooks'
103 WARNING: Assuming this is not an Anaconda environment or an additional venv/pipenv/... environment manager is being used on top, because the conda-meta folder C:\Users\You\PycharmProjects\XHS-Downloader\.venv\conda-meta does not exist.
21941 INFO: Processing standard module hook 'hook-dns.rdata.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\_pyinstaller_hooks_contrib\\stdhooks'
101 WARNING: Assuming this is not an Anaconda environment or an additional venv/pipenv/... environment manager is being used on top, because the conda-meta folder C:\Users\You\PycharmProjects\XHS-Downloader\.venv\conda-meta does not exist.
22677 INFO: Processing standard module hook 'hook-pythoncom.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\_pyinstaller_hooks_contrib\\stdhooks'
22769 INFO: Processing standard module hook 'hook-pywintypes.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\_pyinstaller_hooks_contrib\\stdhooks'
23867 INFO: Processing pre-safe-import-module hook 'hook-platformdirs.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module'
23879 INFO: Processing standard module hook 'hook-platformdirs.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\_pyinstaller_hooks_contrib\\stdhooks'
24105 INFO: Processing pre-safe-import-module hook 'hook-tomli.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module'
24105 INFO: Setuptools: 'tomli' appears to be a setuptools-vendored copy - creating alias to 'setuptools._vendor.tomli'!
24112 INFO: Processing standard module hook 'hook-setuptools.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\PyInstaller\\hooks'
24127 INFO: Processing pre-safe-import-module hook 'hook-distutils.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module'
24160 INFO: Processing pre-safe-import-module hook 'hook-jaraco.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module'
24160 INFO: Setuptools: 'jaraco' appears to be a partial setuptools-vendored copy - extending search paths to ['C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\jaraco', 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\setuptools\\_vendor\\jaraco']!
24162 INFO: Processing pre-safe-import-module hook 'hook-jaraco.functools.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module'
24172 INFO: Processing pre-safe-import-module hook 'hook-more_itertools.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module'
24386 INFO: Processing pre-safe-import-module hook 'hook-packaging.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module'
24536 INFO: Processing pre-safe-import-module hook 'hook-jaraco.text.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module'
24537 INFO: Setuptools: 'jaraco.text' appears to be a setuptools-vendored copy - creating alias to 'setuptools._vendor.jaraco.text'!
24547 INFO: Processing standard module hook 'hook-setuptools._vendor.jaraco.text.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\PyInstaller\\hooks'
24548 INFO: Processing pre-safe-import-module hook 'hook-importlib_resources.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module'
24550 INFO: Processing pre-safe-import-module hook 'hook-jaraco.context.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module'
24559 INFO: Processing pre-safe-import-module hook 'hook-backports.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module'
24560 INFO: Setuptools: 'backports' appears to be a full setuptools-vendored copy - creating alias to 'setuptools._vendor.backports'!
24725 INFO: Processing pre-safe-import-module hook 'hook-importlib_metadata.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module'
24755 INFO: Processing standard module hook 'hook-importlib_metadata.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\PyInstaller\\hooks'
24783 INFO: Processing pre-safe-import-module hook 'hook-zipp.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module'
25592 INFO: Processing pre-safe-import-module hook 'hook-wheel.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module'
25592 INFO: Setuptools: 'wheel' appears to be a setuptools-vendored copy - creating alias to 'setuptools._vendor.wheel'!
26117 INFO: Processing standard module hook 'hook-jsonschema.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\_pyinstaller_hooks_contrib\\stdhooks'
26264 INFO: Processing standard module hook 'hook-jsonschema_specifications.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\_pyinstaller_hooks_contrib\\stdhooks'
26347 INFO: Processing standard module hook 'hook-urllib3.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\_pyinstaller_hooks_contrib\\stdhooks'
26623 INFO: Processing standard module hook 'hook-charset_normalizer.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\_pyinstaller_hooks_contrib\\stdhooks'
26740 INFO: Processing standard module hook 'hook-cryptography.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\_pyinstaller_hooks_contrib\\stdhooks'
101 WARNING: Assuming this is not an Anaconda environment or an additional venv/pipenv/... environment manager is being used on top, because the conda-meta folder C:\Users\You\PycharmProjects\XHS-Downloader\.venv\conda-meta does not exist.
103 WARNING: Assuming this is not an Anaconda environment or an additional venv/pipenv/... environment manager is being used on top, because the conda-meta folder C:\Users\You\PycharmProjects\XHS-Downloader\.venv\conda-meta does not exist.
28222 INFO: hook-cryptography: cryptography does not seem to be using dynamically linked OpenSSL.
29139 INFO: Processing standard module hook 'hook-uvicorn.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\_pyinstaller_hooks_contrib\\stdhooks'
105 WARNING: Assuming this is not an Anaconda environment or an additional venv/pipenv/... environment manager is being used on top, because the conda-meta folder C:\Users\You\PycharmProjects\XHS-Downloader\.venv\conda-meta does not exist.
30154 INFO: Processing standard module hook 'hook-websockets.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\_pyinstaller_hooks_contrib\\stdhooks'
104 WARNING: Assuming this is not an Anaconda environment or an additional venv/pipenv/... environment manager is being used on top, because the conda-meta folder C:\Users\You\PycharmProjects\XHS-Downloader\.venv\conda-meta does not exist.
33288 INFO: Processing standard module hook 'hook-opentelemetry.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\_pyinstaller_hooks_contrib\\stdhooks'
33613 INFO: Processing standard module hook 'hook-cloudpickle.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\_pyinstaller_hooks_contrib\\stdhooks'
35762 INFO: Processing standard module hook 'hook-sqlite3.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\PyInstaller\\hooks'
101 WARNING: Assuming this is not an Anaconda environment or an additional venv/pipenv/... environment manager is being used on top, because the conda-meta folder C:\Users\You\PycharmProjects\XHS-Downloader\.venv\conda-meta does not exist.
37013 INFO: Processing standard module hook 'hook-emoji.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\_pyinstaller_hooks_contrib\\stdhooks'
37063 INFO: Processing standard module hook 'hook-lxml.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\_pyinstaller_hooks_contrib\\stdhooks'
112 WARNING: Assuming this is not an Anaconda environment or an additional venv/pipenv/... environment manager is being used on top, because the conda-meta folder C:\Users\You\PycharmProjects\XHS-Downloader\.venv\conda-meta does not exist.
37419 INFO: Processing standard module hook 'hook-lxml.etree.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\_pyinstaller_hooks_contrib\\stdhooks'
40788 INFO: Analyzing hidden import 'fastmcp.cli'
41347 INFO: Processing standard module hook 'hook-docutils.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\_pyinstaller_hooks_contrib\\stdhooks'
101 WARNING: Assuming this is not an Anaconda environment or an additional venv/pipenv/... environment manager is being used on top, because the conda-meta folder C:\Users\You\PycharmProjects\XHS-Downloader\.venv\conda-meta does not exist.
105 WARNING: Assuming this is not an Anaconda environment or an additional venv/pipenv/... environment manager is being used on top, because the conda-meta folder C:\Users\You\PycharmProjects\XHS-Downloader\.venv\conda-meta does not exist.
103 WARNING: Assuming this is not an Anaconda environment or an additional venv/pipenv/... environment manager is being used on top, because the conda-meta folder C:\Users\You\PycharmProjects\XHS-Downloader\.venv\conda-meta does not exist.
103 WARNING: Assuming this is not an Anaconda environment or an additional venv/pipenv/... environment manager is being used on top, because the conda-meta folder C:\Users\You\PycharmProjects\XHS-Downloader\.venv\conda-meta does not exist.
43624 INFO: Processing standard module hook 'hook-xml.dom.domreg.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\PyInstaller\\hooks'
44301 INFO: Analyzing hidden import 'fastmcp.cli.__main__'
44302 INFO: Analyzing hidden import 'fastmcp.dependencies'
44303 INFO: Analyzing hidden import 'fastmcp.server.auth.providers.auth0'
44308 INFO: Analyzing hidden import 'fastmcp.server.auth.providers.aws'
44315 INFO: Analyzing hidden import 'fastmcp.server.auth.providers.azure'
44326 INFO: Analyzing hidden import 'fastmcp.server.auth.providers.descope'
44334 INFO: Analyzing hidden import 'fastmcp.server.auth.providers.discord'
44343 INFO: Analyzing hidden import 'fastmcp.server.auth.providers.github'
44353 INFO: Analyzing hidden import 'fastmcp.server.auth.providers.google'
44362 INFO: Analyzing hidden import 'fastmcp.server.auth.providers.in_memory'
44372 INFO: Analyzing hidden import 'fastmcp.server.auth.providers.introspection'
44381 INFO: Analyzing hidden import 'fastmcp.server.auth.providers.oci'
44387 INFO: Analyzing hidden import 'fastmcp.server.auth.providers.scalekit'
44394 INFO: Analyzing hidden import 'fastmcp.server.auth.providers.supabase'
44400 INFO: Analyzing hidden import 'fastmcp.server.auth.providers.workos'
44410 INFO: Analyzing hidden import 'fastmcp.server.middleware.caching'
44445 INFO: Analyzing hidden import 'fastmcp.server.middleware.error_handling'
44452 INFO: Analyzing hidden import 'fastmcp.server.middleware.logging'
44460 INFO: Analyzing hidden import 'fastmcp.server.middleware.rate_limiting'
44468 INFO: Analyzing hidden import 'fastmcp.server.middleware.timing'
44474 INFO: Analyzing hidden import 'fastmcp.server.middleware.tool_injection'
44480 INFO: Analyzing hidden import 'fastmcp.utilities.tests'
44490 INFO: Processing module hooks (post-graph stage)...
44971 INFO: Processing standard module hook 'hook-xml.etree.cElementTree.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\PyInstaller\\hooks'
45919 INFO: Processing standard module hook 'hook-lxml.isoschematron.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\_pyinstaller_hooks_contrib\\stdhooks'
46369 WARNING: Hidden import "tzdata" not found!
48643 INFO: Processing standard module hook 'hook-lxml.objectify.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\_pyinstaller_hooks_contrib\\stdhooks'
48674 INFO: Performing binary vs. data reclassification (381 entries)
48739 INFO: Looking for ctypes DLLs
48809 INFO: Analyzing run-time hooks ...
48824 INFO: Including run-time hook 'pyi_rth_inspect.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\PyInstaller\\hooks\\rthooks'
48828 INFO: Including run-time hook 'pyi_rth_pkgutil.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\PyInstaller\\hooks\\rthooks'
48831 INFO: Including run-time hook 'pyi_rth_multiprocessing.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\PyInstaller\\hooks\\rthooks'
48834 INFO: Including run-time hook 'pyi_rth_pythoncom.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\_pyinstaller_hooks_contrib\\rthooks'
48835 INFO: Including run-time hook 'pyi_rth_pywintypes.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\_pyinstaller_hooks_contrib\\rthooks'
48836 INFO: Including run-time hook 'pyi_rth_setuptools.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\PyInstaller\\hooks\\rthooks'
48838 INFO: Including run-time hook 'pyi_rth_cryptography_openssl.py' from 'C:\\Users\\You\\PycharmProjects\\XHS-Downloader\\.venv\\Lib\\site-packages\\_pyinstaller_hooks_contrib\\rthooks'
48893 INFO: Creating base_library.zip...
48919 INFO: Looking for dynamic libraries
54517 INFO: Extra DLL search directories (AddDllDirectory): []
54517 INFO: Extra DLL search directories (PATH): []
55454 INFO: Warnings written to C:\Users\You\PycharmProjects\XHS-Downloader\build\main\warn-main.txt
55750 INFO: Graph cross-reference written to C:\Users\You\PycharmProjects\XHS-Downloader\build\main\xref-main.html
55885 INFO: checking PYZ
55885 INFO: Building PYZ because PYZ-00.toc is non existent
55885 INFO: Building PYZ (ZlibArchive) C:\Users\You\PycharmProjects\XHS-Downloader\build\main\PYZ-00.pyz
57453 INFO: Building PYZ (ZlibArchive) C:\Users\You\PycharmProjects\XHS-Downloader\build\main\PYZ-00.pyz completed successfully.
57526 INFO: checking PKG
57526 INFO: Building PKG because PKG-00.toc is non existent
57526 INFO: Building PKG (CArchive) main.pkg
57557 INFO: Building PKG (CArchive) main.pkg completed successfully.
57558 INFO: Bootloader C:\Users\You\PycharmProjects\XHS-Downloader\.venv\Lib\site-packages\PyInstaller\bootloader\Windows-64bit-intel\run.exe
57558 INFO: checking EXE
57558 INFO: Building EXE because EXE-00.toc is non existent
57559 INFO: Building EXE from EXE-00.toc
57559 INFO: Copying bootloader EXE to C:\Users\You\PycharmProjects\XHS-Downloader\build\main\main.exe
57570 INFO: Copying icon to EXE
57578 INFO: Copying 0 resources to EXE
57578 INFO: Embedding manifest in EXE
57587 INFO: Appending PKG archive to EXE
57607 INFO: Fixing EXE headers
57769 INFO: Building EXE from EXE-00.toc completed successfully.
57778 INFO: checking COLLECT
57778 INFO: Building COLLECT because COLLECT-00.toc is non existent
WARNING: The output directory "C:\Users\You\PycharmProjects\XHS-Downloader\dist\main" and ALL ITS CONTENTS will be REMOVED! Continue? (y/N)y
On your own risk, you can use the option `--noconfirm` to get rid of this question.
79626 INFO: Removing dir C:\Users\You\PycharmProjects\XHS-Downloader\dist\main
79820 INFO: Building COLLECT COLLECT-00.toc
80527 INFO: Building COLLECT COLLECT-00.toc completed successfully.
80539 INFO: Build complete! The results are available in: C:\Users\You\PycharmProjects\XHS-Downloader\dist |
Beta Was this translation helpful? Give feedback.
-
|
Since I see import sys
if getattr(sys, 'frozen', False):
import os
os.environ['PYTHONOPTIMIZE'] = '1'at the very top of your program script? |
Beta Was this translation helpful? Give feedback.
-
|
use https://github.com/zbowling/beartype-pyinstaller-repro The method was successful |
Beta Was this translation helpful? Give feedback.
use https://github.com/zbowling/beartype-pyinstaller-repro The method was successful