Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugging import error on local Ubuntu #114

Closed
wants to merge 1 commit into from

Conversation

ruokolt
Copy link
Collaborator

@ruokolt ruokolt commented Oct 5, 2023

Description

A branch from main, trying to debug this error I get locally on Ubuntu:

=============================================================================================================================== ERRORS ===============================================================================================================================
___________________________________________________________________________________________________________________ ERROR collecting test session ____________________________________________________________________________________________________________________
dev-env/lib/python3.10/site-packages/_pytest/config/__init__.py:641: in _importconftest
    mod = import_path(conftestpath, mode=importmode, root=rootpath)
dev-env/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
dev-env/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:992: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:241: in _call_with_frames_removed
    ???
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
<frozen importlib._bootstrap_external>:883: in exec_module
    ???
<frozen importlib._bootstrap>:241: in _call_with_frames_removed
    ???
dev-env/lib/python3.1/site-packages/matplotlib/tests/__init__.py:6: in <module>
    raise OSError(
E   OSError: The baseline image directory does not exist. This is most likely because the test data is not installed. You may need to install matplotlib from source to get the test data.

How to reproduce

Locally on Ubuntu:

micromamba create -f dev-environment.yml -p $PWD/dev-env/
micromamba activate dev-env/
pytest .

@ruokolt ruokolt marked this pull request as draft October 5, 2023 06:47
@ruokolt ruokolt changed the title MOD: add *-env/ to .gitignore Debugging import error on local Ubuntu Oct 5, 2023
@ruokolt ruokolt closed this Nov 24, 2023
@ruokolt ruokolt deleted the tr_debug_missing_baseline_image_directory branch November 24, 2023 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant