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

Fix failing CPU-only tests #325

Open
yousefmoazzam opened this issue May 13, 2024 · 0 comments
Open

Fix failing CPU-only tests #325

yousefmoazzam opened this issue May 13, 2024 · 0 comments
Labels
bug Something isn't working testing

Comments

@yousefmoazzam
Copy link
Collaborator

https://github.com/DiamondLightSource/httomo/actions/runs/9060732934/job/24891044337

Possibly something to do with the python version being used to run httomo:

Run conda run -n httomo pip install pytest plumbum
Requirement already satisfied: pytest in /usr/share/miniconda/envs/httomo/lib/python3.11/site-packages ([8](https://github.com/DiamondLightSource/httomo/actions/runs/9060732934/job/24891044337#step:5:9).2.0)
Collecting plumbum
  Downloading plumbum-1.8.3-py3-none-any.whl.metadata (10 kB)
Requirement already satisfied: iniconfig in /usr/share/miniconda/envs/httomo/lib/python3.11/site-packages (from pytest) (2.0.0)
Requirement already satisfied: packaging in /usr/share/miniconda/envs/httomo/lib/python3.[11](https://github.com/DiamondLightSource/httomo/actions/runs/9060732934/job/24891044337#step:5:12)/site-packages (from pytest) (24.0)
Requirement already satisfied: pluggy<2.0,>=1.5 in /usr/share/miniconda/envs/httomo/lib/python3.11/site-packages (from pytest) (1.5.0)
Downloading plumbum-1.8.3-py3-none-any.whl ([12](https://github.com/DiamondLightSource/httomo/actions/runs/9060732934/job/24891044337#step:5:13)7 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 127.6/127.6 kB 7.7 MB/s eta 0:00:00
Installing collected packages: plumbum
Successfully installed plumbum-1.8.3

ImportError while loading conftest '/home/runner/work/httomo/httomo/tests/conftest.py'.
tests/conftest.py:[13](https://github.com/DiamondLightSource/httomo/actions/runs/9060732934/job/24891044337#step:5:14): in <module>
    from httomo.runner.auxiliary_data import AuxiliaryData
httomo/runner/auxiliary_data.py:2: in <module>
    from typing_extensions import TypeAlias
E   ModuleNotFoundError: No module named 'typing_extensions'

The complaint about the typing_extensions module not being available sounds vaguely familiar as being available in an older python version but not in newer versions, or something.

@yousefmoazzam yousefmoazzam added bug Something isn't working testing labels May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working testing
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant