[ase-users] errors in ASE test

Adam Jackson a.j.jackson at physics.org
Mon Sep 30 15:48:35 CEST 2024


Hi Cara,

it looks like the offending error is

ImportError while importing test module '/home/cara/miniforge3/envs/nanoreactor3.10/lib/python3.10/site-packages/ase/test/test_imports.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
test_imports.py:6: in <module>
    from numpy import VisibleDeprecationWarning
E   ImportError: cannot import name 'VisibleDeprecationWarning' from 'numpy' (/home/cara/miniforge3/envs/nanoreactor3.10/lib/python3.10/site-packages/numpy/__init__.py)

VisibleDeprecationWarning was moved to a different place in recent Numpy versions; there is logic in the development version of ASE to handle this. As you seem to be using the ASE-3.23.0 release, I suggest rolling back your numpy from 2.1.1 to 1.26.4. Future ASE releases will be compatible with Numpy 2.

All the best,
Adam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.fysik.dtu.dk/pipermail/ase-users/attachments/20240930/2ddbde12/attachment.htm>


More information about the ase-users mailing list