|
楼主 |
发表于 2024-5-15 21:57:01
|
显示全部楼层
报错如下:
Microsoft Windows [版本 10.0.19044.3086]
(c) Microsoft Corporation。保留所有权利。
(pythonProject1) E:\pythonProject>pyinstaller --onefile FCB.py
1435 INFO: PyInstaller: 4.8
1435 INFO: Python: 3.8.13 (conda)
1475 INFO: Platform: Windows-10-10.0.19044-SP0
1477 INFO: wrote E:\pythonProject\FCB.spec
1484 INFO: UPX is not available.
1490 INFO: Extending PYTHONPATH with paths
['E:\\pythonProject']
2191 INFO: checking Analysis
2192 INFO: Building Analysis because Analysis-00.toc is non existent
2192 INFO: Initializing module dependency graph...
2200 INFO: Caching module graph hooks...
2223 INFO: Analyzing base_library.zip ...
5008 INFO: Processing pre-find module path hook distutils from 'D:\\Anaconda3\\envs\\pythonProject1\\lib\\site-packages\\PyInstaller\\hooks\\pre_find_modul
e_path\\hook-distutils.py'.
5010 INFO: distutils: retargeting to non-venv dir 'D:\\Anaconda3\\envs\\pythonProject1\\lib'
8469 INFO: Caching module dependency graph...
8853 INFO: running Analysis Analysis-00.toc
8858 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
required by D:\Anaconda3\envs\pythonProject1\python.exe
9573 INFO: Analyzing E:\pythonProject\FCB.py
11658 INFO: Processing pre-find module path hook site from 'D:\\Anaconda3\\envs\\pythonProject1\\lib\\site-packages\\PyInstaller\\hooks\\pre_find_module_pa
th\\hook-site.py'.
11660 INFO: site: retargeting to fake-dir 'D:\\Anaconda3\\envs\\pythonProject1\\lib\\site-packages\\PyInstaller\\fake-modules'
18235 INFO: Processing pre-safe import module hook six.moves from 'D:\\Anaconda3\\envs\\pythonProject1\\lib\\site-packages\\PyInstaller\\hooks\\pre_safe_im
port_module\\hook-six.moves.py'.
22104 INFO: Processing module hooks...
22104 INFO: Loading module hook 'hook-difflib.py' from 'D:\\Anaconda3\\envs\\pythonProject1\\lib\\site-packages\\PyInstaller\\hooks'...
22108 INFO: Loading module hook 'hook-distutils.py' from 'D:\\Anaconda3\\envs\\pythonProject1\\lib\\site-packages\\PyInstaller\\hooks'...
22110 INFO: Loading module hook 'hook-distutils.util.py' from 'D:\\Anaconda3\\envs\\pythonProject1\\lib\\site-packages\\PyInstaller\\hooks'...
22114 INFO: Loading module hook 'hook-encodings.py' from 'D:\\Anaconda3\\envs\\pythonProject1\\lib\\site-packages\\PyInstaller\\hooks'...
22272 INFO: Loading module hook 'hook-heapq.py' from 'D:\\Anaconda3\\envs\\pythonProject1\\lib\\site-packages\\PyInstaller\\hooks'...
22276 INFO: Loading module hook 'hook-lib2to3.py' from 'D:\\Anaconda3\\envs\\pythonProject1\\lib\\site-packages\\PyInstaller\\hooks'...
22618 INFO: Loading module hook 'hook-multiprocessing.util.py' from 'D:\\Anaconda3\\envs\\pythonProject1\\lib\\site-packages\\PyInstaller\\hooks'...
22622 INFO: Loading module hook 'hook-numpy.py' from 'D:\\Anaconda3\\envs\\pythonProject1\\lib\\site-packages\\PyInstaller\\hooks'...
22873 INFO: Import to be excluded not found: 'f2py'
22885 INFO: Loading module hook 'hook-numpy._pytesttester.py' from 'D:\\Anaconda3\\envs\\pythonProject1\\lib\\site-packages\\PyInstaller\\hooks'...
22889 INFO: Loading module hook 'hook-packaging.py' from 'D:\\Anaconda3\\envs\\pythonProject1\\lib\\site-packages\\PyInstaller\\hooks'...
22891 INFO: Loading module hook 'hook-pandas.io.formats.style.py' from 'D:\\Anaconda3\\envs\\pythonProject1\\lib\\site-packages\\PyInstaller\\hooks'...
23824 INFO: Note: NumExpr detected 16 cores but "NUMEXPR_MAX_THREADS" not set, so enforcing safe limit of 8.
23824 INFO: NumExpr defaulting to 8 threads.
24722 WARNING: Hidden import "jinja2" not found!
24723 INFO: Loading module hook 'hook-pandas.plotting.py' from 'D:\\Anaconda3\\envs\\pythonProject1\\lib\\site-packages\\PyInstaller\\hooks'...
24840 INFO: Loading module hook 'hook-pandas.py' from 'D:\\Anaconda3\\envs\\pythonProject1\\lib\\site-packages\\PyInstaller\\hooks'...
26706 INFO: Loading module hook 'hook-pickle.py' from 'D:\\Anaconda3\\envs\\pythonProject1\\lib\\site-packages\\PyInstaller\\hooks'...
26710 INFO: Loading module hook 'hook-pkg_resources.py' from 'D:\\Anaconda3\\envs\\pythonProject1\\lib\\site-packages\\PyInstaller\\hooks'...
28402 WARNING: Hidden import "pkg_resources.py2_warn" not found!
28402 WARNING: Hidden import "pkg_resources.py2_warn" not found!
28793 WARNING: Hidden import "pkg_resources.markers" not found!
28796 INFO: Loading module hook 'hook-PyQt5.py' from 'D:\\Anaconda3\\envs\\pythonProject1\\lib\\site-packages\\PyInstaller\\hooks'...
29688 WARNING: Hidden import "PyQt5.sip" not found!
29689 INFO: Loading module hook 'hook-PyQt5.QtWidgets.py' from 'D:\\Anaconda3\\envs\\pythonProject1\\lib\\site-packages\\PyInstaller\\hooks'...
30241 INFO: Loading module hook 'hook-pytz.py' from 'D:\\Anaconda3\\envs\\pythonProject1\\lib\\site-packages\\PyInstaller\\hooks'...
32183 INFO: Loading module hook 'hook-setuptools.py' from 'D:\\Anaconda3\\envs\\pythonProject1\\lib\\site-packages\\PyInstaller\\hooks'...
34849 INFO: Loading module hook 'hook-sqlite3.py' from 'D:\\Anaconda3\\envs\\pythonProject1\\lib\\site-packages\\PyInstaller\\hooks'...
35036 INFO: Loading module hook 'hook-sysconfig.py' from 'D:\\Anaconda3\\envs\\pythonProject1\\lib\\site-packages\\PyInstaller\\hooks'...
35038 INFO: Loading module hook 'hook-xml.dom.domreg.py' from 'D:\\Anaconda3\\envs\\pythonProject1\\lib\\site-packages\\PyInstaller\\hooks'...
35040 INFO: Loading module hook 'hook-xml.etree.cElementTree.py' from 'D:\\Anaconda3\\envs\\pythonProject1\\lib\\site-packages\\PyInstaller\\hooks'...
35042 INFO: Loading module hook 'hook-xml.py' from 'D:\\Anaconda3\\envs\\pythonProject1\\lib\\site-packages\\PyInstaller\\hooks'...
35044 INFO: Loading module hook 'hook-_tkinter.py' from 'D:\\Anaconda3\\envs\\pythonProject1\\lib\\site-packages\\PyInstaller\\hooks'...
35275 INFO: checking Tree
35276 INFO: Building Tree because Tree-00.toc is non existent
35276 INFO: Building Tree Tree-00.toc
35754 INFO: checking Tree
35755 INFO: Building Tree because Tree-01.toc is non existent
35755 INFO: Building Tree Tree-01.toc
35932 INFO: checking Tree
35933 INFO: Building Tree because Tree-02.toc is non existent
35933 INFO: Building Tree Tree-02.toc
35942 INFO: Loading module hook 'hook-PyQt5.QtCore.py' from 'D:\\Anaconda3\\envs\\pythonProject1\\lib\\site-packages\\PyInstaller\\hooks'...
36101 INFO: Loading module hook 'hook-PyQt5.QtGui.py' from 'D:\\Anaconda3\\envs\\pythonProject1\\lib\\site-packages\\PyInstaller\\hooks'...
36512 INFO: Loading module hook 'hook-setuptools.msvc.py' from 'D:\\Anaconda3\\envs\\pythonProject1\\lib\\site-packages\\PyInstaller\\hooks'...
36554 INFO: Looking for ctypes DLLs
36660 INFO: Analyzing run-time hooks ...
36666 INFO: Including run-time hook 'D:\\Anaconda3\\envs\\pythonProject1\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_subprocess.py'
36670 INFO: Including run-time hook 'D:\\Anaconda3\\envs\\pythonProject1\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_pkgutil.py'
36678 INFO: Including run-time hook 'D:\\Anaconda3\\envs\\pythonProject1\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_multiprocessing.py'
36683 INFO: Including run-time hook 'D:\\Anaconda3\\envs\\pythonProject1\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_inspect.py'
36687 INFO: Including run-time hook 'D:\\Anaconda3\\envs\\pythonProject1\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_win32api.py'
36690 INFO: Including run-time hook 'D:\\Anaconda3\\envs\\pythonProject1\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_pkgres.py'
36696 INFO: Including run-time hook 'D:\\Anaconda3\\envs\\pythonProject1\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_pyqt5.py'
36700 INFO: Including run-time hook 'D:\\Anaconda3\\envs\\pythonProject1\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth__tkinter.py'
36714 INFO: Looking for dynamic libraries
40474 INFO: Looking for eggs
40474 INFO: Using Python library D:\Anaconda3\envs\pythonProject1\python38.dll
40474 INFO: Found binding redirects:
[]
40486 INFO: Warnings written to E:\pythonProject\build\FCB\warn-FCB.txt
40671 INFO: Graph cross-reference written to E:\pythonProject\build\FCB\xref-FCB.html
40811 INFO: checking PYZ
40812 INFO: Building PYZ because PYZ-00.toc is non existent
40812 INFO: Building PYZ (ZlibArchive) E:\pythonProject\build\FCB\PYZ-00.pyz
42241 INFO: Building PYZ (ZlibArchive) E:\pythonProject\build\FCB\PYZ-00.pyz completed successfully.
42264 INFO: checking PKG
42265 INFO: Building PKG because PKG-00.toc is non existent
42266 INFO: Building PKG (CArchive) FCB.pkg
91868 INFO: Building PKG (CArchive) FCB.pkg completed successfully.
91903 INFO: Bootloader D:\Anaconda3\envs\pythonProject1\lib\site-packages\PyInstaller\bootloader\Windows-32bit\run.exe
91903 INFO: checking EXE
91904 INFO: Building EXE because EXE-00.toc is non existent
91904 INFO: Building EXE from EXE-00.toc
91905 INFO: Copying bootloader EXE to E:\pythonProject\dist\FCB.exe
Traceback (most recent call last):
File "D:\Anaconda3\envs\pythonProject1\lib\site-packages\win32ctypes\pywin32\pywintypes.py", line 35, in pywin32error
yield
File "D:\Anaconda3\envs\pythonProject1\lib\site-packages\win32ctypes\pywin32\win32api.py", line 229, in EndUpdateResource
_resource._EndUpdateResource(handle, discard)
File "D:\Anaconda3\envs\pythonProject1\lib\site-packages\win32ctypes\core\ctypes\_util.py", line 64, in check_false
raise make_error(function, function_name)
OSError: [WinError 110] 系统无法打开指定的设备或文件。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Anaconda3\envs\pythonProject1\Scripts\pyinstaller-script.py", line 10, in <module>
sys.exit(run())
File "D:\Anaconda3\envs\pythonProject1\lib\site-packages\PyInstaller\__main__.py", line 124, in run
run_build(pyi_config, spec_file, **vars(args))
File "D:\Anaconda3\envs\pythonProject1\lib\site-packages\PyInstaller\__main__.py", line 58, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "D:\Anaconda3\envs\pythonProject1\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 "D:\Anaconda3\envs\pythonProject1\lib\site-packages\PyInstaller\building\build_main.py", line 725, in build
exec(code, spec_namespace)
File "E:\pythonProject\FCB.spec", line 23, in <module>
exe = EXE(pyz,
File "D:\Anaconda3\envs\pythonProject1\lib\site-packages\PyInstaller\building\api.py", line 508, in __init__
self.__postinit__()
File "D:\Anaconda3\envs\pythonProject1\lib\site-packages\PyInstaller\building\datastruct.py", line 155, in __postinit__
self.assemble()
File "D:\Anaconda3\envs\pythonProject1\lib\site-packages\PyInstaller\building\api.py", line 603, in assemble
winresource.RemoveAllResources(self.name)
File "D:\Anaconda3\envs\pythonProject1\lib\site-packages\PyInstaller\utils\win32\winresource.py", line 245, in RemoveAllResources
win32api.EndUpdateResource(hsrc, False)
File "D:\Anaconda3\envs\pythonProject1\lib\site-packages\win32ctypes\pywin32\win32api.py", line 229, in EndUpdateResource
_resource._EndUpdateResource(handle, discard)
File "D:\Anaconda3\envs\pythonProject1\lib\contextlib.py", line 131, in __exit__
self.gen.throw(type, value, traceback)
File "D:\Anaconda3\envs\pythonProject1\lib\site-packages\win32ctypes\pywin32\pywintypes.py", line 37, in pywin32error
raise error(exception.winerror, exception.function, exception.strerror)
win32ctypes.pywin32.pywintypes.error: (110, 'EndUpdateResourceW', '系统无法打开指定的设备或文件。')
|
|