Skip to content

Instantly share code, notes, and snippets.

@motatoes
Created July 11, 2021 16:29
Show Gist options
  • Save motatoes/857350c8ce9c5ab61e3cd0e138e4a05c to your computer and use it in GitHub Desktop.
Save motatoes/857350c8ce9c5ab61e3cd0e138e4a05c to your computer and use it in GitHub Desktop.
✗ pytest tests/functional -k test_osx_app_console_option
Error processing line 1 of /Users/mohamedsayed/.pyenvs/py3/lib/python3.9/site-packages/matplotlib-3.3.2-py3.9-nspkg.pth:
Fatal Python error: init_import_site: Failed to import the site module
Python runtime state: initialized
Traceback (most recent call last):
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site.py", line 169, in addpackage
exec(line)
File "<string>", line 1, in <module>
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/util.py", line 2, in <module>
from . import abc
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/abc.py", line 17, in <module>
from typing import Protocol, runtime_checkable
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/typing.py", line 26, in <module>
import re as stdlib_re # Avoid confusion with the re we export.
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/re.py", line 145, in <module>
class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site.py", line 589, in <module>
main()
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site.py", line 572, in main
known_paths = venv(known_paths)
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site.py", line 504, in venv
addsitepackages(known_paths, [sys.prefix])
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site.py", line 359, in addsitepackages
addsitedir(sitedir, known_paths)
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site.py", line 208, in addsitedir
addpackage(sitedir, name, known_paths)
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site.py", line 179, in addpackage
import traceback
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/traceback.py", line 5, in <module>
import linecache
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/linecache.py", line 11, in <module>
import tokenize
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/tokenize.py", line 32, in <module>
import re
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/re.py", line 145, in <module>
class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'
Error processing line 1 of /Users/mohamedsayed/.pyenvs/py3/lib/python3.9/site-packages/matplotlib-3.3.2-py3.9-nspkg.pth:
Fatal Python error: init_import_site: Failed to import the site module
Python runtime state: initialized
Traceback (most recent call last):
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site.py", line 169, in addpackage
exec(line)
File "<string>", line 1, in <module>
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/util.py", line 2, in <module>
from . import abc
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/abc.py", line 17, in <module>
from typing import Protocol, runtime_checkable
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/typing.py", line 26, in <module>
import re as stdlib_re # Avoid confusion with the re we export.
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/re.py", line 145, in <module>
class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site.py", line 589, in <module>
main()
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site.py", line 572, in main
known_paths = venv(known_paths)
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site.py", line 504, in venv
addsitepackages(known_paths, [sys.prefix])
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site.py", line 359, in addsitepackages
addsitedir(sitedir, known_paths)
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site.py", line 208, in addsitedir
addpackage(sitedir, name, known_paths)
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site.py", line 179, in addpackage
import traceback
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/traceback.py", line 5, in <module>
import linecache
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/linecache.py", line 11, in <module>
import tokenize
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/tokenize.py", line 32, in <module>
import re
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/re.py", line 145, in <module>
class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'
============================================================ test session starts ============================================================
platform darwin -- Python 3.9.5, pytest-6.1.2, py-1.9.0, pluggy-0.13.1 -- /Users/mohamedsayed/.pyenvs/py3/bin/python3
cachedir: .pytest_cache
rootdir: /Users/mohamedsayed/dev/pyinstaller, configfile: setup.cfg
plugins: flaky-3.7.0, xdist-2.3.0, drop-dup-tests-0.3.0, timeout-1.4.2, forked-1.3.0
timeout: 300.0s
timeout method: signal
timeout func_only: False
collected 552 items / 551 deselected / 1 selected
tests/functional/test_apple_events.py::test_osx_app_console_option ERROR [100%]
================================================================== ERRORS ===================================================================
_______________________________________________ ERROR at setup of test_osx_app_console_option _______________________________________________
@pytest.fixture(scope='session')
def pyi_modgraph():
# Explicitly set the log level since the plugin `pytest-catchlog` (un-)
# sets the root logger's level to NOTSET for the setup phase, which will
# lead to TRACE messages been written out.
import PyInstaller.log as logging
logging.logger.setLevel(logging.DEBUG)
> initialize_modgraph()
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/utils/conftest.py:513:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/depend/analysis.py:799: in initialize_modgraph
graph = PyiModuleGraph(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/depend/analysis.py:120: in __init__
self._analyze_base_modules()
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/depend/analysis.py:288: in _analyze_base_modules
self._base_modules = [mod
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/depend/analysis.py:290: in <listcomp>
for mod in self.import_hook(req)]
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1496: in import_hook
target_package, target_module_partname = self._find_head_package(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1653: in _find_head_package
target_package = self._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/depend/analysis.py:441: in _safe_import_module
return super(PyiModuleGraph, self)._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2066: in _safe_import_module
module = self._load_module(module_name, pathname, loader)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2174: in _load_module
self._scan_code(m, co, co_ast)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2658: in _scan_code
self._process_imports(module)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2857: in _process_imports
target_module = self._safe_import_hook(*import_info, **kwargs)[0]
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2311: in _safe_import_hook
target_modules = self.import_hook(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1496: in import_hook
target_package, target_module_partname = self._find_head_package(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1653: in _find_head_package
target_package = self._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/depend/analysis.py:441: in _safe_import_module
return super(PyiModuleGraph, self)._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2042: in _safe_import_module
module = self.findNode(module_name)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1371: in findNode
self.implyNodeReference(m, dep)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1226: in implyNodeReference
others = self._safe_import_hook(other, node, None)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2311: in _safe_import_hook
target_modules = self.import_hook(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1496: in import_hook
target_package, target_module_partname = self._find_head_package(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1653: in _find_head_package
target_package = self._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/depend/analysis.py:441: in _safe_import_module
return super(PyiModuleGraph, self)._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2066: in _safe_import_module
module = self._load_module(module_name, pathname, loader)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2174: in _load_module
self._scan_code(m, co, co_ast)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2658: in _scan_code
self._process_imports(module)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2857: in _process_imports
target_module = self._safe_import_hook(*import_info, **kwargs)[0]
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2311: in _safe_import_hook
target_modules = self.import_hook(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1496: in import_hook
target_package, target_module_partname = self._find_head_package(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1653: in _find_head_package
target_package = self._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/depend/analysis.py:441: in _safe_import_module
return super(PyiModuleGraph, self)._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2066: in _safe_import_module
module = self._load_module(module_name, pathname, loader)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2174: in _load_module
self._scan_code(m, co, co_ast)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2658: in _scan_code
self._process_imports(module)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2857: in _process_imports
target_module = self._safe_import_hook(*import_info, **kwargs)[0]
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2311: in _safe_import_hook
target_modules = self.import_hook(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1496: in import_hook
target_package, target_module_partname = self._find_head_package(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1653: in _find_head_package
target_package = self._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/depend/analysis.py:441: in _safe_import_module
return super(PyiModuleGraph, self)._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2066: in _safe_import_module
module = self._load_module(module_name, pathname, loader)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2174: in _load_module
self._scan_code(m, co, co_ast)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2658: in _scan_code
self._process_imports(module)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2857: in _process_imports
target_module = self._safe_import_hook(*import_info, **kwargs)[0]
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2311: in _safe_import_hook
target_modules = self.import_hook(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1496: in import_hook
target_package, target_module_partname = self._find_head_package(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1653: in _find_head_package
target_package = self._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/depend/analysis.py:441: in _safe_import_module
return super(PyiModuleGraph, self)._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2066: in _safe_import_module
module = self._load_module(module_name, pathname, loader)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2174: in _load_module
self._scan_code(m, co, co_ast)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2658: in _scan_code
self._process_imports(module)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2857: in _process_imports
target_module = self._safe_import_hook(*import_info, **kwargs)[0]
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2311: in _safe_import_hook
target_modules = self.import_hook(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1496: in import_hook
target_package, target_module_partname = self._find_head_package(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1653: in _find_head_package
target_package = self._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/depend/analysis.py:441: in _safe_import_module
return super(PyiModuleGraph, self)._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2066: in _safe_import_module
module = self._load_module(module_name, pathname, loader)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2174: in _load_module
self._scan_code(m, co, co_ast)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2658: in _scan_code
self._process_imports(module)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2857: in _process_imports
target_module = self._safe_import_hook(*import_info, **kwargs)[0]
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2311: in _safe_import_hook
target_modules = self.import_hook(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1496: in import_hook
target_package, target_module_partname = self._find_head_package(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1653: in _find_head_package
target_package = self._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/depend/analysis.py:441: in _safe_import_module
return super(PyiModuleGraph, self)._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2066: in _safe_import_module
module = self._load_module(module_name, pathname, loader)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2174: in _load_module
self._scan_code(m, co, co_ast)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2658: in _scan_code
self._process_imports(module)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2857: in _process_imports
target_module = self._safe_import_hook(*import_info, **kwargs)[0]
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2311: in _safe_import_hook
target_modules = self.import_hook(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1496: in import_hook
target_package, target_module_partname = self._find_head_package(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1653: in _find_head_package
target_package = self._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/depend/analysis.py:441: in _safe_import_module
return super(PyiModuleGraph, self)._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2066: in _safe_import_module
module = self._load_module(module_name, pathname, loader)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2174: in _load_module
self._scan_code(m, co, co_ast)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2658: in _scan_code
self._process_imports(module)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2857: in _process_imports
target_module = self._safe_import_hook(*import_info, **kwargs)[0]
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2311: in _safe_import_hook
target_modules = self.import_hook(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1496: in import_hook
target_package, target_module_partname = self._find_head_package(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1653: in _find_head_package
target_package = self._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/depend/analysis.py:441: in _safe_import_module
return super(PyiModuleGraph, self)._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2066: in _safe_import_module
module = self._load_module(module_name, pathname, loader)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2174: in _load_module
self._scan_code(m, co, co_ast)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2658: in _scan_code
self._process_imports(module)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2857: in _process_imports
target_module = self._safe_import_hook(*import_info, **kwargs)[0]
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2311: in _safe_import_hook
target_modules = self.import_hook(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1496: in import_hook
target_package, target_module_partname = self._find_head_package(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1653: in _find_head_package
target_package = self._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/depend/analysis.py:441: in _safe_import_module
return super(PyiModuleGraph, self)._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2066: in _safe_import_module
module = self._load_module(module_name, pathname, loader)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2174: in _load_module
self._scan_code(m, co, co_ast)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2658: in _scan_code
self._process_imports(module)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2857: in _process_imports
target_module = self._safe_import_hook(*import_info, **kwargs)[0]
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2311: in _safe_import_hook
target_modules = self.import_hook(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1496: in import_hook
target_package, target_module_partname = self._find_head_package(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1653: in _find_head_package
target_package = self._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/depend/analysis.py:441: in _safe_import_module
return super(PyiModuleGraph, self)._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2042: in _safe_import_module
module = self.findNode(module_name)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1371: in findNode
self.implyNodeReference(m, dep)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1226: in implyNodeReference
others = self._safe_import_hook(other, node, None)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2311: in _safe_import_hook
target_modules = self.import_hook(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1496: in import_hook
target_package, target_module_partname = self._find_head_package(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1653: in _find_head_package
target_package = self._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/depend/analysis.py:441: in _safe_import_module
return super(PyiModuleGraph, self)._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2066: in _safe_import_module
module = self._load_module(module_name, pathname, loader)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2174: in _load_module
self._scan_code(m, co, co_ast)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2658: in _scan_code
self._process_imports(module)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2857: in _process_imports
target_module = self._safe_import_hook(*import_info, **kwargs)[0]
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2311: in _safe_import_hook
target_modules = self.import_hook(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1496: in import_hook
target_package, target_module_partname = self._find_head_package(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1653: in _find_head_package
target_package = self._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/depend/analysis.py:441: in _safe_import_module
return super(PyiModuleGraph, self)._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2066: in _safe_import_module
module = self._load_module(module_name, pathname, loader)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2174: in _load_module
self._scan_code(m, co, co_ast)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2658: in _scan_code
self._process_imports(module)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2857: in _process_imports
target_module = self._safe_import_hook(*import_info, **kwargs)[0]
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2311: in _safe_import_hook
target_modules = self.import_hook(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1496: in import_hook
target_package, target_module_partname = self._find_head_package(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1653: in _find_head_package
target_package = self._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/depend/analysis.py:441: in _safe_import_module
return super(PyiModuleGraph, self)._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2066: in _safe_import_module
module = self._load_module(module_name, pathname, loader)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2174: in _load_module
self._scan_code(m, co, co_ast)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2658: in _scan_code
self._process_imports(module)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2857: in _process_imports
target_module = self._safe_import_hook(*import_info, **kwargs)[0]
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2311: in _safe_import_hook
target_modules = self.import_hook(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1496: in import_hook
target_package, target_module_partname = self._find_head_package(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1653: in _find_head_package
target_package = self._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/depend/analysis.py:441: in _safe_import_module
return super(PyiModuleGraph, self)._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2066: in _safe_import_module
module = self._load_module(module_name, pathname, loader)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2174: in _load_module
self._scan_code(m, co, co_ast)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2658: in _scan_code
self._process_imports(module)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2857: in _process_imports
target_module = self._safe_import_hook(*import_info, **kwargs)[0]
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2311: in _safe_import_hook
target_modules = self.import_hook(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1496: in import_hook
target_package, target_module_partname = self._find_head_package(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1653: in _find_head_package
target_package = self._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/depend/analysis.py:441: in _safe_import_module
return super(PyiModuleGraph, self)._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2066: in _safe_import_module
module = self._load_module(module_name, pathname, loader)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2174: in _load_module
self._scan_code(m, co, co_ast)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2658: in _scan_code
self._process_imports(module)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2857: in _process_imports
target_module = self._safe_import_hook(*import_info, **kwargs)[0]
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2311: in _safe_import_hook
target_modules = self.import_hook(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1496: in import_hook
target_package, target_module_partname = self._find_head_package(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1653: in _find_head_package
target_package = self._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/depend/analysis.py:441: in _safe_import_module
return super(PyiModuleGraph, self)._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2066: in _safe_import_module
module = self._load_module(module_name, pathname, loader)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2174: in _load_module
self._scan_code(m, co, co_ast)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2658: in _scan_code
self._process_imports(module)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2857: in _process_imports
target_module = self._safe_import_hook(*import_info, **kwargs)[0]
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2519: in _safe_import_hook
self.import_hook(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1513: in import_hook
for target_submodule in self._import_importable_package_submodules(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1807: in _import_importable_package_submodules
submodule = self._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/depend/analysis.py:441: in _safe_import_module
return super(PyiModuleGraph, self)._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2066: in _safe_import_module
module = self._load_module(module_name, pathname, loader)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2174: in _load_module
self._scan_code(m, co, co_ast)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2658: in _scan_code
self._process_imports(module)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2857: in _process_imports
target_module = self._safe_import_hook(*import_info, **kwargs)[0]
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2311: in _safe_import_hook
target_modules = self.import_hook(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1498: in import_hook
target_module = self._load_tail(target_package, target_module_partname)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1717: in _load_tail
submodule = self._safe_import_module(head, mname, submodule)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/depend/analysis.py:441: in _safe_import_module
return super(PyiModuleGraph, self)._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2066: in _safe_import_module
module = self._load_module(module_name, pathname, loader)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2174: in _load_module
self._scan_code(m, co, co_ast)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2658: in _scan_code
self._process_imports(module)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2857: in _process_imports
target_module = self._safe_import_hook(*import_info, **kwargs)[0]
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2519: in _safe_import_hook
self.import_hook(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1513: in import_hook
for target_submodule in self._import_importable_package_submodules(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1807: in _import_importable_package_submodules
submodule = self._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/depend/analysis.py:441: in _safe_import_module
return super(PyiModuleGraph, self)._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2066: in _safe_import_module
module = self._load_module(module_name, pathname, loader)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2174: in _load_module
self._scan_code(m, co, co_ast)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2658: in _scan_code
self._process_imports(module)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2857: in _process_imports
target_module = self._safe_import_hook(*import_info, **kwargs)[0]
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2311: in _safe_import_hook
target_modules = self.import_hook(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1496: in import_hook
target_package, target_module_partname = self._find_head_package(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1653: in _find_head_package
target_package = self._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/depend/analysis.py:441: in _safe_import_module
return super(PyiModuleGraph, self)._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2066: in _safe_import_module
module = self._load_module(module_name, pathname, loader)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2174: in _load_module
self._scan_code(m, co, co_ast)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2658: in _scan_code
self._process_imports(module)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2857: in _process_imports
target_module = self._safe_import_hook(*import_info, **kwargs)[0]
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2519: in _safe_import_hook
self.import_hook(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1513: in import_hook
for target_submodule in self._import_importable_package_submodules(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1807: in _import_importable_package_submodules
submodule = self._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/depend/analysis.py:441: in _safe_import_module
return super(PyiModuleGraph, self)._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2066: in _safe_import_module
module = self._load_module(module_name, pathname, loader)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2174: in _load_module
self._scan_code(m, co, co_ast)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2658: in _scan_code
self._process_imports(module)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2857: in _process_imports
target_module = self._safe_import_hook(*import_info, **kwargs)[0]
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2311: in _safe_import_hook
target_modules = self.import_hook(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1496: in import_hook
target_package, target_module_partname = self._find_head_package(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1653: in _find_head_package
target_package = self._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/depend/analysis.py:441: in _safe_import_module
return super(PyiModuleGraph, self)._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2066: in _safe_import_module
module = self._load_module(module_name, pathname, loader)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2174: in _load_module
self._scan_code(m, co, co_ast)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2658: in _scan_code
self._process_imports(module)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2857: in _process_imports
target_module = self._safe_import_hook(*import_info, **kwargs)[0]
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2519: in _safe_import_hook
self.import_hook(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1513: in import_hook
for target_submodule in self._import_importable_package_submodules(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1807: in _import_importable_package_submodules
submodule = self._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/depend/analysis.py:441: in _safe_import_module
return super(PyiModuleGraph, self)._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2066: in _safe_import_module
module = self._load_module(module_name, pathname, loader)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2174: in _load_module
self._scan_code(m, co, co_ast)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2658: in _scan_code
self._process_imports(module)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2857: in _process_imports
target_module = self._safe_import_hook(*import_info, **kwargs)[0]
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2311: in _safe_import_hook
target_modules = self.import_hook(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1498: in import_hook
target_module = self._load_tail(target_package, target_module_partname)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1717: in _load_tail
submodule = self._safe_import_module(head, mname, submodule)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/depend/analysis.py:441: in _safe_import_module
return super(PyiModuleGraph, self)._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2066: in _safe_import_module
module = self._load_module(module_name, pathname, loader)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2174: in _load_module
self._scan_code(m, co, co_ast)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2658: in _scan_code
self._process_imports(module)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2857: in _process_imports
target_module = self._safe_import_hook(*import_info, **kwargs)[0]
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2311: in _safe_import_hook
target_modules = self.import_hook(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1496: in import_hook
target_package, target_module_partname = self._find_head_package(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1653: in _find_head_package
target_package = self._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/depend/analysis.py:441: in _safe_import_module
return super(PyiModuleGraph, self)._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2066: in _safe_import_module
module = self._load_module(module_name, pathname, loader)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2174: in _load_module
self._scan_code(m, co, co_ast)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2658: in _scan_code
self._process_imports(module)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2857: in _process_imports
target_module = self._safe_import_hook(*import_info, **kwargs)[0]
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2311: in _safe_import_hook
target_modules = self.import_hook(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1498: in import_hook
target_module = self._load_tail(target_package, target_module_partname)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1717: in _load_tail
submodule = self._safe_import_module(head, mname, submodule)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/depend/analysis.py:441: in _safe_import_module
return super(PyiModuleGraph, self)._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2066: in _safe_import_module
module = self._load_module(module_name, pathname, loader)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2174: in _load_module
self._scan_code(m, co, co_ast)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2658: in _scan_code
self._process_imports(module)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2857: in _process_imports
target_module = self._safe_import_hook(*import_info, **kwargs)[0]
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2519: in _safe_import_hook
self.import_hook(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1513: in import_hook
for target_submodule in self._import_importable_package_submodules(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1807: in _import_importable_package_submodules
submodule = self._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/depend/analysis.py:441: in _safe_import_module
return super(PyiModuleGraph, self)._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2066: in _safe_import_module
module = self._load_module(module_name, pathname, loader)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2174: in _load_module
self._scan_code(m, co, co_ast)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2658: in _scan_code
self._process_imports(module)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2857: in _process_imports
target_module = self._safe_import_hook(*import_info, **kwargs)[0]
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2311: in _safe_import_hook
target_modules = self.import_hook(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1498: in import_hook
target_module = self._load_tail(target_package, target_module_partname)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1717: in _load_tail
submodule = self._safe_import_module(head, mname, submodule)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/depend/analysis.py:441: in _safe_import_module
return super(PyiModuleGraph, self)._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2066: in _safe_import_module
module = self._load_module(module_name, pathname, loader)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2174: in _load_module
self._scan_code(m, co, co_ast)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2658: in _scan_code
self._process_imports(module)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2857: in _process_imports
target_module = self._safe_import_hook(*import_info, **kwargs)[0]
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2311: in _safe_import_hook
target_modules = self.import_hook(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1498: in import_hook
target_module = self._load_tail(target_package, target_module_partname)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1717: in _load_tail
submodule = self._safe_import_module(head, mname, submodule)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/depend/analysis.py:441: in _safe_import_module
return super(PyiModuleGraph, self)._safe_import_module(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2066: in _safe_import_module
module = self._load_module(module_name, pathname, loader)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2174: in _load_module
self._scan_code(m, co, co_ast)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2658: in _scan_code
self._process_imports(module)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2857: in _process_imports
target_module = self._safe_import_hook(*import_info, **kwargs)[0]
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:2311: in _safe_import_hook
target_modules = self.import_hook(
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1498: in import_hook
target_module = self._load_tail(target_package, target_module_partname)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/lib/modulegraph/modulegraph.py:1717: in _load_tail
submodule = self._safe_import_module(head, mname, submodule)
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/depend/analysis.py:431: in _safe_import_module
hook_module.pre_safe_import_module(hook_api)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
api = <PyInstaller.depend.imphookapi.PreSafeImportModuleAPI object at 0x11cf66190>
def pre_safe_import_module(api):
"""
Add the `six.moves` module as a dynamically defined runtime module node and
all modules mapped by `six._SixMetaPathImporter` as aliased module nodes to
the passed graph.
The `six.moves` module is dynamically defined at runtime by the `six` module
and hence cannot be imported in the standard way. Instead, this hook adds a
placeholder node for the `six.moves` module to the graph, which implicitly
adds an edge from that node to the node for its parent `six` module. This
ensures that the `six` module will be frozen into the executable. (Phew!)
`six._SixMetaPathImporter` is a PEP 302-compliant module importer converting
imports independent of the current Python version into imports specific to
that version (e.g., under Python 3, from `from six.moves import tkinter_tix`
to `import tkinter.tix`). For each such mapping, this hook adds a
corresponding module alias to the graph allowing PyInstaller to translate
the former to the latter.
"""
# Dictionary from conventional module names to "six.moves" attribute names
# (e.g., from `tkinter.tix` to `six.moves.tkinter_tix`).
real_to_six_module_name = eval_statement(
'''
import six
print('{')
# Iterate over the "six._moved_attributes" list rather than the
# "six._importer.known_modules" dictionary, as "urllib"-specific moved modules
# are overwritten in the latter with unhelpful "LazyModule" objects.
for moved_module in six._moved_attributes:
# If this is a moved module or attribute, map the corresponding module. In
# the case of moved attributes, the attribute's module is mapped while the
# attribute itself is mapped at runtime and hence ignored here.
if isinstance(moved_module, (six.MovedModule, six.MovedAttribute)):
print(' %r: %r,' % (
moved_module.mod, 'six.moves.' + moved_module.name))
print('}')
''')
# Add "six.moves" as a runtime package rather than module. Modules cannot
# physically contain submodules; only packages can. In "from"-style import
# statements (e.g., "from six.moves import queue"), this implies that:
#
# * Attributes imported from customary modules are guaranteed *NOT* to be
# submodules. Hence, ModuleGraph justifiably ignores these attributes.
# While some attributes declared by "six.moves" are ignorable non-modules
# (e.g., functions, classes), others are non-ignorable submodules that
# must be imported. Adding "six.moves" as a runtime module causes
# ModuleGraph to ignore these submodules, which defeats the entire point.
# * Attributes imported from packages could be submodules. To disambiguate
# non-ignorable submodules from ignorable non-submodules (e.g., classes,
# variables), ModuleGraph first attempts to import these attributes as
# submodules. This is exactly what we want.
if isinstance(real_to_six_module_name, str):
> raise SystemExit("pre-safe-import-module hook failed, needs fixing.")
E SystemExit: pre-safe-import-module hook failed, needs fixing.
../../.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/hooks/pre_safe_import_module/hook-six.moves.py:71: SystemExit
----------------------------------------------------------- Captured stderr setup -----------------------------------------------------------
Error processing line 1 of /Users/mohamedsayed/.pyenvs/py3/lib/python3.9/site-packages/matplotlib-3.3.2-py3.9-nspkg.pth:
Fatal Python error: init_import_site: Failed to import the site module
Python runtime state: initialized
Traceback (most recent call last):
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site.py", line 169, in addpackage
exec(line)
File "<string>", line 1, in <module>
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/util.py", line 2, in <module>
from . import abc
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/abc.py", line 17, in <module>
from typing import Protocol, runtime_checkable
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/typing.py", line 26, in <module>
import re as stdlib_re # Avoid confusion with the re we export.
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/re.py", line 145, in <module>
class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site.py", line 589, in <module>
main()
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site.py", line 572, in main
known_paths = venv(known_paths)
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site.py", line 504, in venv
addsitepackages(known_paths, [sys.prefix])
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site.py", line 359, in addsitepackages
addsitedir(sitedir, known_paths)
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site.py", line 208, in addsitedir
addpackage(sitedir, name, known_paths)
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site.py", line 179, in addpackage
import traceback
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/traceback.py", line 5, in <module>
import linecache
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/linecache.py", line 11, in <module>
import tokenize
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/tokenize.py", line 32, in <module>
import re
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/re.py", line 145, in <module>
class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'
Error processing line 1 of /Users/mohamedsayed/.pyenvs/py3/lib/python3.9/site-packages/matplotlib-3.3.2-py3.9-nspkg.pth:
Fatal Python error: init_import_site: Failed to import the site module
Python runtime state: initialized
Traceback (most recent call last):
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site.py", line 169, in addpackage
exec(line)
File "<string>", line 1, in <module>
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/util.py", line 2, in <module>
from . import abc
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/abc.py", line 17, in <module>
from typing import Protocol, runtime_checkable
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/typing.py", line 26, in <module>
import re as stdlib_re # Avoid confusion with the re we export.
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/re.py", line 145, in <module>
class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site.py", line 589, in <module>
main()
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site.py", line 572, in main
known_paths = venv(known_paths)
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site.py", line 504, in venv
addsitepackages(known_paths, [sys.prefix])
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site.py", line 359, in addsitepackages
addsitedir(sitedir, known_paths)
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site.py", line 208, in addsitedir
addpackage(sitedir, name, known_paths)
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site.py", line 179, in addpackage
import traceback
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/traceback.py", line 5, in <module>
import linecache
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/linecache.py", line 11, in <module>
import tokenize
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/tokenize.py", line 32, in <module>
import re
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/re.py", line 145, in <module>
class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'
Error processing line 1 of /Users/mohamedsayed/.pyenvs/py3/lib/python3.9/site-packages/matplotlib-3.3.2-py3.9-nspkg.pth:
Fatal Python error: init_import_site: Failed to import the site module
Python runtime state: initialized
Traceback (most recent call last):
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site.py", line 169, in addpackage
exec(line)
File "<string>", line 1, in <module>
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/util.py", line 2, in <module>
from . import abc
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/abc.py", line 17, in <module>
from typing import Protocol, runtime_checkable
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/typing.py", line 26, in <module>
import re as stdlib_re # Avoid confusion with the re we export.
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/re.py", line 145, in <module>
class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site.py", line 589, in <module>
main()
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site.py", line 572, in main
known_paths = venv(known_paths)
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site.py", line 504, in venv
addsitepackages(known_paths, [sys.prefix])
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site.py", line 359, in addsitepackages
addsitedir(sitedir, known_paths)
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site.py", line 208, in addsitedir
addpackage(sitedir, name, known_paths)
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site.py", line 179, in addpackage
import traceback
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/traceback.py", line 5, in <module>
import linecache
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/linecache.py", line 11, in <module>
import tokenize
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/tokenize.py", line 32, in <module>
import re
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/re.py", line 145, in <module>
class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'
------------------------------------------------------------ Captured log setup -------------------------------------------------------------
INFO PyInstaller.depend.analysis:analysis.py:796 Initializing module dependency graph...
INFO PyInstaller.depend.analysis:analysis.py:136 Caching module graph hooks...
INFO PyInstaller.depend.analysis:analysis.py:279 Analyzing base_library.zip ...
DEBUG PyInstaller.utils.hooks:__init__.py:540 Collecting submodules for encodings
DEBUG PyInstaller.utils.hooks:__init__.py:612 collect_submodules - Found submodules: {'encodings'}
DEBUG PyInstaller.utils.hooks:__init__.py:540 Collecting submodules for collections
DEBUG PyInstaller.utils.hooks:__init__.py:612 collect_submodules - Found submodules: {'collections'}
INFO PyInstaller.depend.analysis:analysis.py:462 Processing pre-find module path hook distutils from '/Users/mohamedsayed/.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/hooks/pre_find_module_path/hook-distutils.py'.
INFO PyInstaller.utils.hooks:hook-distutils.py:42 distutils: retargeting to non-venv dir '/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9'
INFO PyInstaller.depend.analysis:analysis.py:411 Processing pre-safe import module hook six.moves from '/Users/mohamedsayed/.pyenvs/py3/lib/python3.9/site-packages/PyInstaller/hooks/pre_safe_import_module/hook-six.moves.py'.
========================================================== short test summary info ==========================================================
ERROR tests/functional/test_apple_events.py::test_osx_app_console_option - SystemExit: pre-safe-import-module hook failed, needs fixing.
===================================================== 551 deselected, 1 error in 20.83s =====================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment