System:
- OS: Windows 10 Pro
- Python: 3.9.15
- tensorflow-cpu: 2.10.0
- tensorflow-directml-plugin: latest
- pyinstaller: latest (from develop branch)
Error:
Traceback (most recent call last):
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\utils\hooks\__init__.py", line 621, in collect_submodules
modules, subpackages, on_error = isolated_python.call(_collect_submodules, name, on_error)
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\isolated\_parent.py", line 302, in call
ok, output = loads(b64decode(self._read_handle.readline()))
EOFError: EOF read where object expected
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<PATH>\anaconda3\envs\direct_ml\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "<PATH>\anaconda3\envs\direct_ml\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "<PATH>\anaconda3\envs\direct_ml\Scripts\pyinstaller.exe\__main__.py", line 7, in <module>
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\__main__.py", line 194, in _console_script_run
run()
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\__main__.py", line 180, in run
run_build(pyi_config, spec_file, **vars(args))
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\__main__.py", line 61, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\building\build_main.py", line 972, in main
build(specfile, distpath, workpath, clean_build)
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\building\build_main.py", line 894, in build
exec(code, spec_namespace)
File "gpu_test.spec", line 6, in <module>
a = Analysis(
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\building\build_main.py", line 411, in __init__
self.__postinit__()
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\building\datastruct.py", line 173, in __postinit__
self.assemble()
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\building\build_main.py", line 574, in assemble
priority_scripts.append(self.graph.add_script(script))
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\depend\analysis.py", line 269, in add_script
self._top_script_node = super().add_script(pathname)
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1433, in add_script
self._process_imports(n)
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2850, in _process_imports
target_modules = self._safe_import_hook(*import_info, **kwargs)
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\depend\analysis.py", line 382, in _safe_import_hook
return super()._safe_import_hook(target_module_partname, source_module, target_attr_names, level, edge_attr)
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2301, in _safe_import_hook
target_modules = self.import_hook(
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1505, in import_hook
target_package, target_module_partname = self._find_head_package(
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1684, in _find_head_package
target_package = self._safe_import_module(
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\depend\analysis.py", line 429, in _safe_import_module
return super()._safe_import_module(module_basename, module_name, parent_package)
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2062, in _safe_import_module
self._process_imports(n)
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2850, in _process_imports
target_modules = self._safe_import_hook(*import_info, **kwargs)
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\depend\analysis.py", line 369, in _safe_import_hook
excluded_imports = self._find_all_excluded_imports(source_module.identifier)
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\depend\analysis.py", line 357, in _find_all_excluded_imports
excluded_imports.update(module_hook.excludedimports)
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\depend\imphook.py", line 320, in __getattr__
self._load_hook_module()
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\depend\imphook.py", line 387, in _load_hook_module
self._hook_module = importlib_load_source(self.hook_module_name, self.hook_filename)
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\compat.py", line 612, in importlib_load_source
return mod_loader.load_module()
File "<frozen importlib._bootstrap_external>", line 529, in _check_name_wrapper
File "<frozen importlib._bootstrap_external>", line 1029, in load_module
File "<frozen importlib._bootstrap_external>", line 854, in load_module
File "<frozen importlib._bootstrap>", line 274, in _load_module_shim
File "<frozen importlib._bootstrap>", line 711, in _load
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks\hook-tensorflow.py", line 66, in <module>
hiddenimports = collect_submodules('tensorflow',
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\utils\hooks\__init__.py", line 629, in collect_submodules
todo.append(subpackage_name)
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\isolated\_parent.py", line 244, in __exit__
self._write_handle.flush()
OSError: [Errno 22] Invalid argument
Traceback (most recent call last):
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\utils\hooks\__init__.py", line 621, in collect_submodules
modules, subpackages, on_error = isolated_python.call(_collect_submodules, name, on_error)
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\isolated\_parent.py", line 302, in call
ok, output = loads(b64decode(self._read_handle.readline()))
EOFError: EOF read where object expected
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<PATH>\anaconda3\envs\direct_ml\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "<PATH>\anaconda3\envs\direct_ml\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "<PATH>\anaconda3\envs\direct_ml\Scripts\pyinstaller.exe\__main__.py", line 7, in <module>
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\__main__.py", line 194, in _console_script_run
run()
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\__main__.py", line 180, in run
run_build(pyi_config, spec_file, **vars(args))
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\__main__.py", line 61, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\building\build_main.py", line 972, in main
build(specfile, distpath, workpath, clean_build)
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\building\build_main.py", line 894, in build
exec(code, spec_namespace)
File "gpu_test.spec", line 6, in <module>
a = Analysis(
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\building\build_main.py", line 411, in __init__
self.__postinit__()
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\building\datastruct.py", line 173, in __postinit__
self.assemble()
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\building\build_main.py", line 574, in assemble
priority_scripts.append(self.graph.add_script(script))
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\depend\analysis.py", line 269, in add_script
self._top_script_node = super().add_script(pathname)
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1433, in add_script
self._process_imports(n)
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2850, in _process_imports
target_modules = self._safe_import_hook(*import_info, **kwargs)
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\depend\analysis.py", line 382, in _safe_import_hook
return super()._safe_import_hook(target_module_partname, source_module, target_attr_names, level, edge_attr)
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2301, in _safe_import_hook
target_modules = self.import_hook(
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1505, in import_hook
target_package, target_module_partname = self._find_head_package(
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1684, in _find_head_package
target_package = self._safe_import_module(
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\depend\analysis.py", line 429, in _safe_import_module
return super()._safe_import_module(module_basename, module_name, parent_package)
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2062, in _safe_import_module
self._process_imports(n)
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2850, in _process_imports
target_modules = self._safe_import_hook(*import_info, **kwargs)
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\depend\analysis.py", line 369, in _safe_import_hook
excluded_imports = self._find_all_excluded_imports(source_module.identifier)
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\depend\analysis.py", line 357, in _find_all_excluded_imports
excluded_imports.update(module_hook.excludedimports)
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\depend\imphook.py", line 320, in __getattr__
self._load_hook_module()
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\depend\imphook.py", line 387, in _load_hook_module
self._hook_module = importlib_load_source(self.hook_module_name, self.hook_filename)
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\compat.py", line 612, in importlib_load_source
return mod_loader.load_module()
File "<frozen importlib._bootstrap_external>", line 529, in _check_name_wrapper
File "<frozen importlib._bootstrap_external>", line 1029, in load_module
File "<frozen importlib._bootstrap_external>", line 854, in load_module
File "<frozen importlib._bootstrap>", line 274, in _load_module_shim
File "<frozen importlib._bootstrap>", line 711, in _load
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks\hook-tensorflow.py", line 66, in <module>
hiddenimports = collect_submodules('tensorflow',
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\utils\hooks\__init__.py", line 629, in collect_submodules
todo.append(subpackage_name)
File "<PATH>\anaconda3\envs\direct_ml\lib\site-packages\PyInstaller\isolated\_parent.py", line 244, in __exit__
self._write_handle.flush()
OSError: [Errno 22] Invalid argument
All dependencies
log.txt
main.spec
bug