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

SciPy-bundle-2021.05-foss-2021a.eb cannot pass the numpy test #824

Open
yanchenmochen opened this issue Sep 23, 2022 · 1 comment
Open
Milestone

Comments

@yanchenmochen
Copy link

when I want to build the PETSc/3.15.1-foss-2021a, I ran into the issue which confused me very much time.

`
export PYTHONPATH=/tmp/eb-ar3jsp7p/tmpglh2ot_a/lib/python3.9/site-packages:$PYTHONPATH && unset LDFLAGS && cd .. && /home/zjlab/.local/easybuild/software/Python/3.9.5-GCCcore-10.3.0/bin/python -c "import sys; import numpy; sys.exit(not numpy.test(verbose=2))"

`

`
ImportError while importing test module '/tmp/eb-ar3jsp7p/tmpglh2ot_a/lib/python3.9/site-packages/numpy/core/tests/test_dtype.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
zjlab/.local/easybuild/software/Python/3.9.5-GCCcore-10.3.0/lib/python3.9/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
/tmp/eb-ar3jsp7p/tmpglh2ot_a/lib/python3.9/site-packages/numpy/core/tests/test_dtype.py:4: in
import ctypes
zjlab/.local/easybuild/software/Python/3.9.5-GCCcore-10.3.0/lib/python3.9/ctypes/init.py:8: in
from _ctypes import Union, Structure, Array
E ImportError: libffi.so.7: cannot open shared object file: No such file or directory
_________________________________________________________________________ ERROR collecting core/tests/test_multiarray.py _________________________________________________________________________
ImportError while importing test module '/tmp/eb-ar3jsp7p/tmpglh2ot_a/lib/python3.9/site-packages/numpy/core/tests/test_multiarray.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
zjlab/.local/easybuild/software/Python/3.9.5-GCCcore-10.3.0/lib/python3.9/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
/tmp/eb-ar3jsp7p/tmpglh2ot_a/lib/python3.9/site-packages/numpy/core/tests/test_multiarray.py:10: in
import ctypes
zjlab/.local/easybuild/software/Python/3.9.5-GCCcore-10.3.0/lib/python3.9/ctypes/init.py:8: in
from _ctypes import Union, Structure, Array
E ImportError: libffi.so.7: cannot open shared object file: No such file or directory
_______________________________________________________________________ ERROR collecting core/tests/test_umath_accuracy.py _______________________________________________________________________
ImportError while importing test module '/tmp/eb-ar3jsp7p/tmpglh2ot_a/lib/python3.9/site-packages/numpy/core/tests/test_umath_accuracy.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
zjlab/.local/easybuild/software/Python/3.9.5-GCCcore-10.3.0/lib/python3.9/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
/tmp/eb-ar3jsp7p/tmpglh2ot_a/lib/python3.9/site-packages/numpy/core/tests/test_umath_accuracy.py:6: in
from ctypes import c_longlong, c_double, c_float, c_int, cast, pointer, POINTER
zjlab/.local/easybuild/software/Python/3.9.5-GCCcore-10.3.0/lib/python3.9/ctypes/init.py:8: in
from _ctypes import Union, Structure, Array
E ImportError: libffi.so.7: cannot open shared object file: No such file or directory
_____________________________________________________________________________ ERROR collecting lib/tests/test_io.py ______________________________________________________________________________
ImportError while importing test module '/tmp/eb-ar3jsp7p/tmpglh2ot_a/lib/python3.9/site-packages/numpy/lib/tests/test_io.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
zjlab/.local/easybuild/software/Python/3.9.5-GCCcore-10.3.0/lib/python3.9/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
/tmp/eb-ar3jsp7p/tmpglh2ot_a/lib/python3.9/site-packages/numpy/lib/tests/test_io.py:17: in
from ctypes import c_bool
zjlab/.local/easybuild/software/Python/3.9.5-GCCcore-10.3.0/lib/python3.9/ctypes/init.py:8: in
from _ctypes import Union, Structure, Array
E ImportError: libffi.so.7: cannot open shared object file: No such file or directory
======================================================================================== warnings summary ========================================================================================
zjlab/.local/easybuild/software/Python/3.9.5-GCCcore-10.3.0/lib/python3.9/site-packages/nose/importer.py:12
/home/zjlab/.local/easybuild/software/Python/3.9.5-GCCcore-10.3.0/lib/python3.9/site-packages/nose/importer.py:12: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
from imp import find_module, load_module, acquire_lock, release_lock

zjlab/.local/easybuild/software/Python/3.9.5-GCCcore-10.3.0/lib/python3.9/site-packages/_pytest/cacheprovider.py:428
/home/zjlab/.local/easybuild/software/Python/3.9.5-GCCcore-10.3.0/lib/python3.9/site-packages/_pytest/cacheprovider.py:428: PytestCacheWarning: cache could not write path /home/.pytest_cache/v/cache/nodeids
config.cache.set("cache/nodeids", sorted(self.cached_nodeids))

zjlab/.local/easybuild/software/Python/3.9.5-GCCcore-10.3.0/lib/python3.9/site-packages/_pytest/cacheprovider.py:382
`

numpy/numpy#16769

easybuilders/easybuild-easyconfigs#11789

easybuilders/easybuild-easyconfigs#13531

@boegel boegel added this to the 4.x milestone Oct 26, 2022
@boegel
Copy link
Member

boegel commented Oct 26, 2022

@yanchenmochen It looks like some files in the libffi dependency of your Python installation were removed?
Can you check if reinstalling libffi-3.3-GCCcore-10.3.0.eb with eb --rebuild fixes the problem you're seeing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants