Advertisement
ajith_97

Untitled

Jun 13th, 2024
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.44 KB | None | 0 0
  1. 317140 INFO: Loading module hook 'hook-matplotlib.py' from '...\\venv\\lib\\site-packages\\PyInstaller\\hooks'...
  2. An error occurred while packaging
  3. Traceback (most recent call last):
  4. File "...\venv\lib\site-packages\auto_py_to_exe\packaging.py", line 132, in package
  5. run_pyinstaller(pyinstaller_args[1:])
  6. File "...\venv\lib\site-packages\PyInstaller\__main__.py", line 215, in run
  7. run_build(pyi_config, spec_file, **vars(args))
  8. File "...\venv\lib\site-packages\PyInstaller\__main__.py", line 70, in run_build
  9. PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
  10. File "...\venv\lib\site-packages\PyInstaller\building\build_main.py", line 1216, in main
  11. build(specfile, distpath, workpath, clean_build)
  12. File "...\venv\lib\site-packages\PyInstaller\building\build_main.py", line 1156, in build
  13. exec(code, spec_namespace)
  14. File "C:\Users\somangia\AppData\Local\Temp\tmp2j3vkh48\fpi_2_nvipm.spec", line 4, in <module>
  15. a = Analysis(
  16. File "...\venv\lib\site-packages\PyInstaller\building\build_main.py", line 556, in __init__
  17. self.__postinit__()
  18. File "...\venv\lib\site-packages\PyInstaller\building\datastruct.py", line 184, in __postinit__
  19. self.assemble()
  20. File "...\venv\lib\site-packages\PyInstaller\building\build_main.py", line 696, in assemble
  21. program_scripts.append(self.graph.add_script(script))
  22. File "...\venv\lib\site-packages\PyInstaller\depend\analysis.py", line 268, in add_script
  23. self._top_script_node = super().add_script(pathname)
  24. File "...\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1160, in add_script
  25. self._process_imports(n)
  26. File "...\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2591, in _process_imports
  27. target_modules = self._safe_import_hook(*import_info, **kwargs)
  28. File "...\venv\lib\site-packages\PyInstaller\depend\analysis.py", line 437, in _safe_import_hook
  29. ret_modules = super()._safe_import_hook(
  30. File "...\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2048, in _safe_import_hook
  31. target_modules = self.import_hook(
  32. File "...\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1245, in import_hook
  33. submodule = self._safe_import_module(head, mname, submodule)
  34. File "...\venv\lib\site-packages\PyInstaller\depend\analysis.py", line 501, in _safe_import_module
  35. return super()._safe_import_module(module_basename, module_name, parent_package)
  36. File "...\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1792, in _safe_import_module
  37. self._process_imports(n)
  38. File "...\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2591, in _process_imports
  39. target_modules = self._safe_import_hook(*import_info, **kwargs)
  40. File "...\venv\lib\site-packages\PyInstaller\depend\analysis.py", line 437, in _safe_import_hook
  41. ret_modules = super()._safe_import_hook(
  42. File "...\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2048, in _safe_import_hook
  43. target_modules = self.import_hook(
  44. File "...\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1232, in import_hook
  45. target_package, target_module_partname = self._find_head_package(
  46. File "...\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1411, in _find_head_package
  47. target_package = self._safe_import_module(
  48. File "...\venv\lib\site-packages\PyInstaller\depend\analysis.py", line 501, in _safe_import_module
  49. return super()._safe_import_module(module_basename, module_name, parent_package)
  50. File "...\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1792, in _safe_import_module
  51. self._process_imports(n)
  52. File "...\venv\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2591, in _process_imports
  53. target_modules = self._safe_import_hook(*import_info, **kwargs)
  54. File "...\venv\lib\site-packages\PyInstaller\depend\analysis.py", line 368, in _safe_import_hook
  55. excluded_imports = self._find_all_excluded_imports(source_module.identifier)
  56. File "...\venv\lib\site-packages\PyInstaller\depend\analysis.py", line 356, in _find_all_excluded_imports
  57. excluded_imports.update(module_hook.excludedimports)
  58. File "...\venv\lib\site-packages\PyInstaller\depend\imphook.py", line 316, in __getattr__
  59. self._load_hook_module()
  60. File "...\venv\lib\site-packages\PyInstaller\depend\imphook.py", line 383, in _load_hook_module
  61. self._hook_module = importlib_load_source(self.hook_module_name, self.hook_filename)
  62. File "...\venv\lib\site-packages\PyInstaller\compat.py", line 583, in importlib_load_source
  63. mod_loader.exec_module(mod)
  64. File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  65. File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  66. File "...\venv\lib\site-packages\PyInstaller\hooks\hook-matplotlib.py", line 34, in <module>
  67. if compat.is_win and hookutils.check_requirement('matplotlib >= 3.7.0'):
  68. File "...\venv\lib\site-packages\PyInstaller\utils\hooks\__init__.py", line 414, in check_requirement
  69. return parsed_requirement.specifier.contains(version, prereleases=True)
  70. File "...\venv\lib\site-packages\packaging\specifiers.py", line 906, in contains
  71. item = Version(item)
  72. File "...\venv\lib\site-packages\packaging\version.py", line 200, in __init__
  73. match = self._regex.search(version)
  74. TypeError: expected string or bytes-like object
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement