Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 317140 INFO: Loading module hook 'hook-matplotlib.py' from '...\\venv\\lib\\site-packages\\PyInstaller\\hooks'...
- An error occurred while packaging
- Traceback (most recent call last):
- File "...\venv\lib\site-packages\auto_py_to_exe\packaging.py", line 132, in package
- run_pyinstaller(pyinstaller_args[1:])
- File "...\venv\lib\site-packages\PyInstaller\__main__.py", line 215, in run
- run_build(pyi_config, spec_file, **vars(args))
- File "...\venv\lib\site-packages\PyInstaller\__main__.py", line 70, in run_build
- PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
- File "...\venv\lib\site-packages\PyInstaller\building\build_main.py", line 1216, in main
- build(specfile, distpath, workpath, clean_build)
- File "...\venv\lib\site-packages\PyInstaller\building\build_main.py", line 1156, in build
- exec(code, spec_namespace)
- File "C:\Users\somangia\AppData\Local\Temp\tmp2j3vkh48\fpi_2_nvipm.spec", line 4, in <module>
- a = Analysis(
- File "...\venv\lib\site-packages\PyInstaller\building\build_main.py", line 556, in __init__
- self.__postinit__()
- File "...\venv\lib\site-packages\PyInstaller\building\datastruct.py", line 184, in __postinit__
- self.assemble()
- File "...\venv\lib\site-packages\PyInstaller\building\build_main.py", line 696, in assemble
- program_scripts.append(self.graph.add_script(script))
- File "...\venv\lib\site-packages\PyInstaller\depend\analysis.py", line 268, in add_script
- self._top_script_node = super().add_script(pathname)
- File "...\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1160, in add_script
- self._process_imports(n)
- File "...\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2591, in _process_imports
- target_modules = self._safe_import_hook(*import_info, **kwargs)
- File "...\venv\lib\site-packages\PyInstaller\depend\analysis.py", line 437, in _safe_import_hook
- ret_modules = super()._safe_import_hook(
- File "...\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2048, in _safe_import_hook
- target_modules = self.import_hook(
- File "...\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1245, in import_hook
- submodule = self._safe_import_module(head, mname, submodule)
- File "...\venv\lib\site-packages\PyInstaller\depend\analysis.py", line 501, in _safe_import_module
- return super()._safe_import_module(module_basename, module_name, parent_package)
- File "...\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1792, in _safe_import_module
- self._process_imports(n)
- File "...\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2591, in _process_imports
- target_modules = self._safe_import_hook(*import_info, **kwargs)
- File "...\venv\lib\site-packages\PyInstaller\depend\analysis.py", line 437, in _safe_import_hook
- ret_modules = super()._safe_import_hook(
- File "...\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2048, in _safe_import_hook
- target_modules = self.import_hook(
- File "...\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1232, in import_hook
- target_package, target_module_partname = self._find_head_package(
- File "...\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1411, in _find_head_package
- target_package = self._safe_import_module(
- File "...\venv\lib\site-packages\PyInstaller\depend\analysis.py", line 501, in _safe_import_module
- return super()._safe_import_module(module_basename, module_name, parent_package)
- File "...\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1792, in _safe_import_module
- self._process_imports(n)
- File "...\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2591, in _process_imports
- target_modules = self._safe_import_hook(*import_info, **kwargs)
- File "...\venv\lib\site-packages\PyInstaller\depend\analysis.py", line 368, in _safe_import_hook
- excluded_imports = self._find_all_excluded_imports(source_module.identifier)
- File "...\venv\lib\site-packages\PyInstaller\depend\analysis.py", line 356, in _find_all_excluded_imports
- excluded_imports.update(module_hook.excludedimports)
- File "...\venv\lib\site-packages\PyInstaller\depend\imphook.py", line 316, in __getattr__
- self._load_hook_module()
- File "...\venv\lib\site-packages\PyInstaller\depend\imphook.py", line 383, in _load_hook_module
- self._hook_module = importlib_load_source(self.hook_module_name, self.hook_filename)
- File "...\venv\lib\site-packages\PyInstaller\compat.py", line 583, in importlib_load_source
- mod_loader.exec_module(mod)
- File "<frozen importlib._bootstrap_external>", line 883, in exec_module
- File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
- File "...\venv\lib\site-packages\PyInstaller\hooks\hook-matplotlib.py", line 34, in <module>
- if compat.is_win and hookutils.check_requirement('matplotlib >= 3.7.0'):
- File "...\venv\lib\site-packages\PyInstaller\utils\hooks\__init__.py", line 414, in check_requirement
- return parsed_requirement.specifier.contains(version, prereleases=True)
- File "...\venv\lib\site-packages\packaging\specifiers.py", line 906, in contains
- item = Version(item)
- File "...\venv\lib\site-packages\packaging\version.py", line 200, in __init__
- match = self._regex.search(version)
- TypeError: expected string or bytes-like object
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement