5,955
社区成员
297 INFO: PyInstaller: 5.13.2
297 INFO: Python: 3.7.4
298 INFO: Platform: Windows-10-10.0.19041-SP0
script 'C:\Windows\system32\ME03Train.sepc' not found
PS C:\Windows\system32> cd E:\project\weishi\poj1
PS E:\project\weishi\poj1> pyinstaller ME03Train.spec
286 INFO: PyInstaller: 5.13.2
287 INFO: Python: 3.7.4
287 INFO: Platform: Windows-10-10.0.19041-SP0
1201 INFO: Extending PYTHONPATH with paths
['E:\\project\\weishi\\poj1', 'E:\\project\\weishi\\poj1']
1428 INFO: Appending 'binaries' from .spec
1428 INFO: Appending 'datas' from .spec
1429 INFO: checking Analysis
1473 INFO: Building because pathex changed
1473 INFO: Initializing module dependency graph...
1475 INFO: Caching module graph hooks...
1485 INFO: Analyzing base_library.zip ...
2424 INFO: Loading module hook 'hook-heapq.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks'...
2550 INFO: Loading module hook 'hook-encodings.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks'...
3080 INFO: Loading module hook 'hook-pickle.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks'...
3982 INFO: Caching module dependency graph...
4100 INFO: running Analysis Analysis-00.toc
4103 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
required by C:\Users\hydrogen\AppData\Local\Programs\Python\Python37\python.exe
4212 INFO: Analyzing E:\project\weishi\poj1\ME03Train.py
4326 INFO: Loading module hook 'hook-matplotlib.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks'...
4639 INFO: Loading module hook 'hook-numpy.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks'...
4902 INFO: Loading module hook 'hook-platform.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks'...
4986 INFO: Loading module hook 'hook-difflib.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks'...
5939 INFO: Loading module hook 'hook-packaging.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks'...
5998 INFO: Processing pre-safe import module hook gi from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module\\hook-gi.py'.
6071 INFO: Loading module hook 'hook-PIL.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks'...
6122 INFO: Loading module hook 'hook-PIL.Image.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks'...
6622 INFO: Loading module hook 'hook-PIL.ImageFilter.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks'...
7561 INFO: Loading module hook 'hook-matplotlib.backends.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks'...
7838 INFO: Processing pre-safe import module hook six.moves from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module\\hook-six.moves.py'.
8679 INFO: Loading module hook 'hook-multiprocessing.util.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks'...
8755 INFO: Loading module hook 'hook-xml.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks'...
9173 INFO: Loading module hook 'hook-certifi.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
9197 INFO: Loading module hook 'hook-pandas.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks'...
10192 INFO: Loading module hook 'hook-pytz.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks'...
10387 INFO: Loading module hook 'hook-pkg_resources.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks'...
11200 INFO: Loading module hook 'hook-sysconfig.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks'...
11413 INFO: Loading module hook 'hook-scipy.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks'...
11563 INFO: Loading module hook 'hook-scipy.linalg.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks'...
11763 INFO: Loading module hook 'hook-scipy.sparse.csgraph.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks'...
15221 INFO: Loading module hook 'hook-pandas.plotting.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks'...
15325 INFO: Loading module hook 'hook-pandas.io.formats.style.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks'...
16278 INFO: Loading module hook 'hook-openpyxl.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
16582 INFO: Loading module hook 'hook-xml.etree.cElementTree.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks'...
17265 INFO: Loading module hook 'hook-xml.dom.domreg.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks'...
17639 INFO: Loading module hook 'hook-sqlite3.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks'...
18179 INFO: Loading module hook 'hook-sklearn.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
18511 INFO: Loading module hook 'hook-sklearn.utils.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
18974 INFO: Loading module hook 'hook-sklearn.cluster.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
18992 INFO: Loading module hook 'hook-sklearn.metrics.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
19037 INFO: Loading module hook 'hook-sklearn.metrics.cluster.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
19061 INFO: Loading module hook 'hook-sklearn.metrics.pairwise.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
19199 INFO: Loading module hook 'hook-sklearn.neighbors.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
19318 INFO: Loading module hook 'hook-sklearn.linear_model.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
20183 INFO: Loading module hook 'hook-numba.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
20224 INFO: Loading module hook 'hook-llvmlite.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
21278 INFO: Processing pre-safe import module hook distutils from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module\\hook-distutils.py'.
21278 INFO: Processing pre-find module path hook distutils from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks\\pre_find_module_path\\hook-distutils.py'.
21461 INFO: Loading module hook 'hook-distutils.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks'...
21523 INFO: Loading module hook 'hook-distutils.util.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks'...
21795 INFO: Loading module hook 'hook-importlib_metadata.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks'...
23029 INFO: Processing pre-safe import module hook win32com from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\pre_safe_import_module\\hook-win32com.py'.
24161 INFO: Loading module hook 'hook-cloudpickle.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
24230 INFO: Processing pre-safe import module hook tensorflow from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\pre_safe_import_module\\hook-tensorflow.py'.
2024-09-29 20:43:44.719692: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found
2024-09-29 20:43:44.719788: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
2024-09-29 20:43:45.059354: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found
2024-09-29 20:43:45.059486: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
24937 INFO: Loading module hook 'hook-tensorflow.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
24943 INFO: hook-tensorflow: tensorflow dist name: tensorflow-gpu
24944 INFO: hook-tensorflow: tensorflow version: 2.4.0
2024-09-29 20:43:45.515505: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found
2024-09-29 20:43:45.515654: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
353 WARNING: Failed to collect submodules for 'tensorflow' because importing 'tensorflow' raised: TypeError: Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
1. Downgrade the protobuf package to 3.20.x or lower.
2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).
More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
29964 WARNING: collect_dynamic_libs - skipping library collection for module 'tensorflow-plugins' as it is not a package.
35753 INFO: Loading module hook 'hook-charset_normalizer.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
38985 INFO: Loading module hook 'hook-h5py.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
40517 INFO: Loading module hook 'hook-grpc.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
49772 INFO: Loading module hook 'hook-sklearn.tree.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
50481 INFO: Loading module hook 'hook-scipy.io.matlab.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks'...
50647 INFO: Processing module hooks...
50663 INFO: Loading module hook 'hook-setuptools.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks'...
52033 INFO: Loading module hook 'hook-matplotlib.backends.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks'...
52033 INFO: Matplotlib backend selection method: automatic discovery of used backends
52273 INFO: Trying determine the default backend as first importable candidate from the list: ['Qt5Agg', 'Gtk3Agg', 'TkAgg', 'WxAgg']
53396 INFO: Selected matplotlib backends: ['TkAgg']
53752 INFO: Loading module hook 'hook-PIL.SpiderImagePlugin.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks'...
54081 INFO: Loading module hook 'hook-scipy.spatial.transform.rotation.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks'...
54105 INFO: Loading module hook 'hook-scipy.special._ellip_harm_2.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks'...
54106 INFO: Loading module hook 'hook-scipy.special._ufuncs.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks'...
54106 INFO: Loading module hook 'hook-scipy.stats._stats.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks'...
54125 INFO: Loading module hook 'hook-setuptools.msvc.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks'...
54629 INFO: Loading module hook 'hook-_tkinter.py' from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks'...
54629 INFO: checking Tree
54664 INFO: checking Tree
54675 INFO: checking Tree
54851 INFO: Looking for ctypes DLLs
55012 INFO: Analyzing run-time hooks ...
55031 INFO: Including run-time hook 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_multiprocessing.py'
55033 INFO: Including run-time hook 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_pkgres.py'
55036 INFO: Including run-time hook 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_mplconfig.py'
55037 INFO: Processing pre-find module path hook _pyi_rth_utils from 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks\\pre_find_module_path\\hook-_pyi_rth_utils.py'.
55053 INFO: Including run-time hook 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_inspect.py'
55054 INFO: Including run-time hook 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_pkgutil.py'
55055 INFO: Including run-time hook 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_setuptools.py'
55056 INFO: Including run-time hook 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\rthooks\\pyi_rth_tensorflow.py'
55057 INFO: Including run-time hook 'e:\\project\\weishi\\poj1\\poj1\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth__tkinter.py'
55183 INFO: Looking for dynamic libraries
2024-09-29 20:44:17.443633: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found
2024-09-29 20:44:17.443728: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
4092 WARNING: Cannot get binary dependencies for file: e:\project\weishi\poj1\poj1\lib\site-packages\xgboost\VERSION
4093 WARNING: Reason: 'Unable to read the DOS Header, possibly a truncated file.'
4240 WARNING: lib not found: VCOMP140.DLL dependency of e:\project\weishi\poj1\poj1\lib\site-packages\xgboost\lib\xgboost.dll
Traceback (most recent call last):
File "C:\Users\hydrogen\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\Users\hydrogen\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "E:\project\weishi\poj1\poj1\Scripts\pyinstaller.exe\__main__.py", line 7, in <module>
File "e:\project\weishi\poj1\poj1\lib\site-packages\PyInstaller\__main__.py", line 194, in _console_script_run
run()
File "e:\project\weishi\poj1\poj1\lib\site-packages\PyInstaller\__main__.py", line 180, in run
run_build(pyi_config, spec_file, **vars(args))
File "e:\project\weishi\poj1\poj1\lib\site-packages\PyInstaller\__main__.py", line 61, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "e:\project\weishi\poj1\poj1\lib\site-packages\PyInstaller\building\build_main.py", line 1019, in main
build(specfile, distpath, workpath, clean_build)
File "e:\project\weishi\poj1\poj1\lib\site-packages\PyInstaller\building\build_main.py", line 944, in build
exec(code, spec_namespace)
File "ME03Train.spec", line 23, in <module>
noarchive=False,
File "e:\project\weishi\poj1\poj1\lib\site-packages\PyInstaller\building\build_main.py", line 429, in __init__
self.__postinit__()
File "e:\project\weishi\poj1\poj1\lib\site-packages\PyInstaller\building\datastruct.py", line 184, in __postinit__
self.assemble()
File "e:\project\weishi\poj1\poj1\lib\site-packages\PyInstaller\building\build_main.py", line 745, in assemble
isolated.call(find_binary_dependencies, self.binaries, self.binding_redirects, collected_packages)
File "e:\project\weishi\poj1\poj1\lib\site-packages\PyInstaller\isolated\_parent.py", line 372, in call
return isolated.call(function, *args, **kwargs)
File "e:\project\weishi\poj1\poj1\lib\site-packages\PyInstaller\isolated\_parent.py", line 302, in call
raise RuntimeError(f"Child process call to {function.__name__}() failed with:\n" + output)
RuntimeError: Child process call to find_binary_dependencies() failed with:
File "e:\project\weishi\poj1\poj1\lib\site-packages\win32ctypes\pywin32\pywintypes.py", line 36, in pywin32error
yield
File "e:\project\weishi\poj1\poj1\lib\site-packages\win32ctypes\pywin32\win32api.py", line 40, in LoadLibraryEx
return _dll._LoadLibraryEx(fileName, 0, flags)
File "e:\project\weishi\poj1\poj1\lib\site-packages\win32ctypes\core\ctypes\_util.py", line 39, in check_null
raise make_error(function, function_name)
OSError: [WinError 1006] 文件所在的卷已被外部更改,因此打开的文件不再有效。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "e:\project\weishi\poj1\poj1\lib\site-packages\PyInstaller\isolated\_child.py", line 63, in run_next_command
output = function(*args, **kwargs)
File "e:\project\weishi\poj1\poj1\lib\site-packages\PyInstaller\building\build_main.py", line 187, in find_binary_dependencies
return bindepend.Dependencies(binaries, redirects=binding_redirects, xtrapath=extra_libdirs)
File "e:\project\weishi\poj1\poj1\lib\site-packages\PyInstaller\depend\bindepend.py", line 275, in Dependencies
for ftocnm, fn in getAssemblyFiles(pth, manifest, redirects):
File "e:\project\weishi\poj1\poj1\lib\site-packages\PyInstaller\depend\bindepend.py", line 449, in getAssemblyFiles
for assembly in getAssemblies(pth):
File "e:\project\weishi\poj1\poj1\lib\site-packages\PyInstaller\depend\bindepend.py", line 403, in getAssemblies
res = winmanifest.GetManifestResources(pth)
File "e:\project\weishi\poj1\poj1\lib\site-packages\PyInstaller\utils\win32\winmanifest.py", line 979, in GetManifestResources
return winresource.GetResources(filename, [RT_MANIFEST], names, languages)
File "e:\project\weishi\poj1\poj1\lib\site-packages\PyInstaller\utils\win32\winresource.py", line 155, in GetResources
hsrc = win32api.LoadLibraryEx(filename, 0, LOAD_LIBRARY_AS_DATAFILE)
File "e:\project\weishi\poj1\poj1\lib\site-packages\win32ctypes\pywin32\win32api.py", line 40, in LoadLibraryEx
return _dll._LoadLibraryEx(fileName, 0, flags)
File "C:\Users\hydrogen\AppData\Local\Programs\Python\Python37\lib\contextlib.py", line 130, in __exit__
self.gen.throw(type, value, traceback)
File "e:\project\weishi\poj1\poj1\lib\site-packages\win32ctypes\pywin32\pywintypes.py", line 40, in pywin32error
raise error(exception.winerror, exception.function, exception.strerror)
win32ctypes.pywin32.pywintypes.error: (1006, 'LoadLibraryExW', '文件所在的卷已被外部更改,因此打开的文件不再有效。')
看看是不是磁盘有问题,如果用的是外部磁盘的话检查一下外部磁盘是不是没有连接好,或者就是文件正在被其他进程锁定了所以不能修改,试试用管理员身份运行