Skip to content

Unresolved dependencies with the imas-python v2 pip package (imas-core and netcdf4) #28

@GFuhr

Description

@GFuhr

Hey,

I was trying to install imas-python in a docker container (can't find a more empty venv than that), following instructions there :
https://imas-python.readthedocs.io/en/latest/installing.html

I was able to install both the imas-data-dictionary and the imas-python it seems but when trying to import imas-python I have this issue :

python -c "import imas; print(imas.__version__)"
13:39:18 CRITICAL Could not import 'imas_core': No module named 'imas_core'. Some functionality is not available. @imas_interface.py:34
2.0.1.dev0

Moreover when I try to run the tests using :

pytest imas --mini

I can't run them due to a missing dependencies : netCDF4.

This one was easy to solve, I just modified the pyproject.toml and add it in the dependencies list :
dependencies = [
# FIXME: numpy 2.0 compatibility
"numpy>=1.15.4,<2",
"rich",
"scipy",
"click",
"importlib_resources;python_version<'3.9'",
"packaging",
"xxhash >= 2",
"saxonche",
"gitpython",
"netCDF4"
]
After this "fix" when I run the pytest command again I got :
============================= 310 passed, 252 skipped, 1 warning in 49.59s =============================

Great work in all cases, congratz!
G. Fuhr

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions