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

Make test failing during build #167

Open
mohamedgazzah opened this issue Jul 17, 2024 · 1 comment
Open

Make test failing during build #167

mohamedgazzah opened this issue Jul 17, 2024 · 1 comment

Comments

@mohamedgazzah
Copy link

I am having trouble building fidimag. I have followed all the steps in the installation procedure; fftw works fine, sundials works fine, and all the packages are installed, yet make test keeps failing. Here's the information I get when from the error:

It is worth noting I have two directories python3 and python3.12 which don't have the same files. Here your code is calling for python3 which maybe the issue. I have tried to copying everything from the python3 to the python3.12 directory but this seems like it'll cause more problems so I avoided it.

mohamed@mohamed-ThinkStation-P620:~/Desktop/fidimag-master$ make test
cd tests && python3 -m pytest -v -m "not slow and not run_oommf"
=================================== test session starts ===================================
platform linux -- Python 3.12.3, pytest-8.2.2, pluggy-1.5.0 -- /usr/bin/python3
cachedir: .pytest_cache
rootdir: /home/mohamed/Desktop/fidimag-master
configfile: pytest.ini
collected 21 items / 44 errors

========================================= ERRORS ==========================================
_______________________ ERROR collecting tests/cuboid_mesh_test.py ________________________
ImportError while importing test module '/home/mohamed/Desktop/fidimag-master/tests/cuboid_mesh_test.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/init.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
cuboid_mesh_test.py:3: in
from fidimag.common.cuboid_mesh import CuboidMesh
../fidimag/common/init.py:7: in
from .helper import init_scalar, init_vector
../fidimag/common/helper.py:1: in
from fidimag.extensions.common_clib import normalise
E ModuleNotFoundError: No module named 'fidimag.extensions.common_clib'
------------------------------------- Captured stdout -------------------------------------

Could not load the Fidimag extensions. This could be due to a few things:
  1) The extensions are not built. Try running 'make' from the root directory.

  2) FIDIMAG loads comon libraries dynamically. Currently, FIDIMAG requires
     * Sundials 6.6.1
     * FFTW 3.3.8
     If you are using Linux, you may be able to download these through a
     package manager such as apt or yum. However, convenience scripts
     are provided in the folder bin to install these locally for Ubuntu.

  3) If you've run the scripts to install the dynamic libaries,
     you may still need to export the LD_LIBRARY_PATH environment
     variable. You can do this from the shell with:
     export LD_LIBRARY_PATH=/home/mohamed/Desktop/fidimag-master/local/lib:$LD_LIBRARY_PATH

  4) If after trying *all* of the above, you still can't get Fidimag to install,
     please create an issue on the following website:

     https://github.com/computationalmodelling/fidimag/issues

     Copy and paste *all* of the information below which will help 
     us to diagnose your problem:


     Exception Error message 
     -----------------------
     No module named 'fidimag.extensions.common_clib'

     System Info
     -----------------------
     Architecture: x86_64
     Platform: Linux-6.8.0-38-generic-x86_64-with-glibc2.39
     Processor: x86_64

__________________________ ERROR collecting tests/field_test.py ___________________________
ImportError while importing test module '/home/mohamed/Desktop/fidimag-master/tests/field_test.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/init.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
field_test.py:2: in
from fidimag.common.field import scalar_field, vector_field
../fidimag/common/init.py:7: in
from .helper import init_scalar, init_vector
../fidimag/common/helper.py:1: in
from fidimag.extensions.common_clib import normalise
E ModuleNotFoundError: No module named 'fidimag.extensions.common_clib'
______________________ ERROR collecting tests/hexagonal_mesh_test.py ______________________
ImportError while importing test module '/home/mohamed/Desktop/fidimag-master/tests/hexagonal_mesh_test.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/init.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
hexagonal_mesh_test.py:5: in
from fidimag.atomistic.hexagonal_mesh import HexagonalMesh
../fidimag/atomistic/init.py:1: in
from .sim import Sim
../fidimag/atomistic/sim.py:1: in
from .llg import LLG
../fidimag/atomistic/llg.py:5: in
import fidimag.extensions.common_clib as clib
E ModuleNotFoundError: No module named 'fidimag.extensions.common_clib'
_______________________ ERROR collecting tests/integrators_test.py ________________________
ImportError while importing test module '/home/mohamed/Desktop/fidimag-master/tests/integrators_test.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/init.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
integrators_test.py:11: in
from fidimag.common.integrators import euler_step, runge_kutta_step, StepIntegrator, ScipyIntegrator
../fidimag/common/init.py:7: in
from .helper import init_scalar, init_vector
../fidimag/common/helper.py:1: in
from fidimag.extensions.common_clib import normalise
E ModuleNotFoundError: No module named 'fidimag.extensions.common_clib'
___________________________ ERROR collecting tests/mini_test.py ___________________________
mini_test.py:3: in
mesh = f.common.CuboidMesh(nx=5, ny=1, nz=1)
E AttributeError: module 'fidimag' has no attribute 'common'
_____________________ ERROR collecting tests/skyrmion_number_test.py ______________________
ImportError while importing test module '/home/mohamed/Desktop/fidimag-master/tests/skyrmion_number_test.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/init.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
skyrmion_number_test.py:1: in
from fidimag.common.skyrmion_number import skyrmion_number_slice
../fidimag/common/init.py:7: in
from .helper import init_scalar, init_vector
../fidimag/common/helper.py:1: in
from fidimag.extensions.common_clib import normalise
E ModuleNotFoundError: No module named 'fidimag.extensions.common_clib'
________________________ ERROR collecting tests/test_2dpbc_cube.py ________________________
ImportError while importing test module '/home/mohamed/Desktop/fidimag-master/tests/test_2dpbc_cube.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/init.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test_2dpbc_cube.py:3: in
from fidimag.micro import Sim
../fidimag/micro/init.py:1: in
from .sim import Sim
../fidimag/micro/sim.py:3: in
from . import llg
../fidimag/micro/llg.py:6: in
import fidimag.extensions.common_clib as clib
E ModuleNotFoundError: No module named 'fidimag.extensions.common_clib'
__________________ ERROR collecting tests/test_add_remove_interaction.py __________________
ImportError while importing test module '/home/mohamed/Desktop/fidimag-master/tests/test_add_remove_interaction.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/init.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test_add_remove_interaction.py:1: in
from fidimag.common import CuboidMesh, constant
../fidimag/common/init.py:7: in
from .helper import init_scalar, init_vector
../fidimag/common/helper.py:1: in
from fidimag.extensions.common_clib import normalise
E ModuleNotFoundError: No module named 'fidimag.extensions.common_clib'
___________________________ ERROR collecting tests/test_anis.py ___________________________
ImportError while importing test module '/home/mohamed/Desktop/fidimag-master/tests/test_anis.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/init.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test_anis.py:1: in
from fidimag.atomistic import Anisotropy, CubicAnisotropy
../fidimag/atomistic/init.py:1: in
from .sim import Sim
../fidimag/atomistic/sim.py:1: in
from .llg import LLG
../fidimag/atomistic/llg.py:5: in
import fidimag.extensions.common_clib as clib
E ModuleNotFoundError: No module named 'fidimag.extensions.common_clib'
_____________________ ERROR collecting tests/test_atomistic_zeeman.py _____________________
ImportError while importing test module '/home/mohamed/Desktop/fidimag-master/tests/test_atomistic_zeeman.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/init.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test_atomistic_zeeman.py:1: in
from fidimag.atomistic import Zeeman
../fidimag/atomistic/init.py:1: in
from .sim import Sim
../fidimag/atomistic/sim.py:1: in
from .llg import LLG
../fidimag/atomistic/llg.py:5: in
import fidimag.extensions.common_clib as clib
E ModuleNotFoundError: No module named 'fidimag.extensions.common_clib'
__________________________ ERROR collecting tests/test_demag.py ___________________________
ImportError while importing test module '/home/mohamed/Desktop/fidimag-master/tests/test_demag.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/init.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test_demag.py:2: in
from fidimag.common import CuboidMesh
../fidimag/common/init.py:7: in
from .helper import init_scalar, init_vector
../fidimag/common/helper.py:1: in
from fidimag.extensions.common_clib import normalise
E ModuleNotFoundError: No module named 'fidimag.extensions.common_clib'
_____________________ ERROR collecting tests/test_demag_libraries.py ______________________
ImportError while importing test module '/home/mohamed/Desktop/fidimag-master/tests/test_demag_libraries.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/init.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test_demag_libraries.py:8: in
from fidimag.atomistic import Sim
../fidimag/atomistic/init.py:1: in
from .sim import Sim
../fidimag/atomistic/sim.py:1: in
from .llg import LLG
../fidimag/atomistic/llg.py:5: in
import fidimag.extensions.common_clib as clib
E ModuleNotFoundError: No module named 'fidimag.extensions.common_clib'
___________________________ ERROR collecting tests/test_dmi.py ____________________________
ImportError while importing test module '/home/mohamed/Desktop/fidimag-master/tests/test_dmi.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/init.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test_dmi.py:1: in
from fidimag.common import CuboidMesh
../fidimag/common/init.py:7: in
from .helper import init_scalar, init_vector
../fidimag/common/helper.py:1: in
from fidimag.extensions.common_clib import normalise
E ModuleNotFoundError: No module named 'fidimag.extensions.common_clib'
____________________ ERROR collecting tests/test_domain_wall_cobalt.py ____________________
ImportError while importing test module '/home/mohamed/Desktop/fidimag-master/tests/test_domain_wall_cobalt.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/init.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test_domain_wall_cobalt.py:8: in
from fidimag.common import CuboidMesh
../fidimag/common/init.py:7: in
from .helper import init_scalar, init_vector
../fidimag/common/helper.py:1: in
from fidimag.extensions.common_clib import normalise
E ModuleNotFoundError: No module named 'fidimag.extensions.common_clib'
_______________________ ERROR collecting tests/test_dw_atomistic.py _______________________
ImportError while importing test module '/home/mohamed/Desktop/fidimag-master/tests/test_dw_atomistic.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/init.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test_dw_atomistic.py:5: in
from fidimag.atomistic import Sim, DMI, UniformExchange, Anisotropy
../fidimag/atomistic/init.py:1: in
from .sim import Sim
../fidimag/atomistic/sim.py:1: in
from .llg import LLG
../fidimag/atomistic/llg.py:5: in
import fidimag.extensions.common_clib as clib
E ModuleNotFoundError: No module named 'fidimag.extensions.common_clib'
__________________________ ERROR collecting tests/test_dw_dmi.py __________________________
ImportError while importing test module '/home/mohamed/Desktop/fidimag-master/tests/test_dw_dmi.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/init.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test_dw_dmi.py:3: in
from fidimag.common import CuboidMesh
../fidimag/common/init.py:7: in
from .helper import init_scalar, init_vector
../fidimag/common/helper.py:1: in
from fidimag.extensions.common_clib import normalise
E ModuleNotFoundError: No module named 'fidimag.extensions.common_clib'
__________________________ ERROR collecting tests/test_energy.py __________________________
ImportError while importing test module '/home/mohamed/Desktop/fidimag-master/tests/test_energy.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/init.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test_energy.py:6: in
from fidimag.atomistic import UniformExchange
../fidimag/atomistic/init.py:1: in
from .sim import Sim
../fidimag/atomistic/sim.py:1: in
from .llg import LLG
../fidimag/atomistic/llg.py:5: in
import fidimag.extensions.common_clib as clib
E ModuleNotFoundError: No module named 'fidimag.extensions.common_clib'
________________________ ERROR collecting tests/test_exch_micro.py ________________________
ImportError while importing test module '/home/mohamed/Desktop/fidimag-master/tests/test_exch_micro.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/init.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test_exch_micro.py:43: in
from fidimag.common import CuboidMesh
../fidimag/common/init.py:7: in
from .helper import init_scalar, init_vector
../fidimag/common/helper.py:1: in
from fidimag.extensions.common_clib import normalise
E ModuleNotFoundError: No module named 'fidimag.extensions.common_clib'
________________________ ERROR collecting tests/test_exch_rkky.py _________________________
ImportError while importing test module '/home/mohamed/Desktop/fidimag-master/tests/test_exch_rkky.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/init.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test_exch_rkky.py:6: in
from fidimag.common import CuboidMesh
../fidimag/common/init.py:7: in
from .helper import init_scalar, init_vector
../fidimag/common/helper.py:1: in
from fidimag.extensions.common_clib import normalise
E ModuleNotFoundError: No module named 'fidimag.extensions.common_clib'
_______________________ ERROR collecting tests/test_exch_uniform.py _______________________
ImportError while importing test module '/home/mohamed/Desktop/fidimag-master/tests/test_exch_uniform.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/init.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test_exch_uniform.py:3: in
from fidimag.atomistic import Sim
../fidimag/atomistic/init.py:1: in
from .sim import Sim
../fidimag/atomistic/sim.py:1: in
from .llg import LLG
../fidimag/atomistic/llg.py:5: in
import fidimag.extensions.common_clib as clib
E ModuleNotFoundError: No module named 'fidimag.extensions.common_clib'
________________________ ERROR collecting tests/test_full_exch.py _________________________
ImportError while importing test module '/home/mohamed/Desktop/fidimag-master/tests/test_full_exch.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/init.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test_full_exch.py:3: in
from fidimag.atomistic import Sim
../fidimag/atomistic/init.py:1: in
from .sim import Sim
../fidimag/atomistic/sim.py:1: in
from .llg import LLG
../fidimag/atomistic/llg.py:5: in
import fidimag.extensions.common_clib as clib
E ModuleNotFoundError: No module named 'fidimag.extensions.common_clib'
_____________________ ERROR collecting tests/test_hubert_minimiser.py _____________________
ImportError while importing test module '/home/mohamed/Desktop/fidimag-master/tests/test_hubert_minimiser.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/init.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test_hubert_minimiser.py:2: in
import fidimag.common.constant as C
../fidimag/common/init.py:7: in
from .helper import init_scalar, init_vector
../fidimag/common/helper.py:1: in
from fidimag.extensions.common_clib import normalise
E ModuleNotFoundError: No module named 'fidimag.extensions.common_clib'
_______________________ ERROR collecting tests/test_init_scalar.py ________________________
ImportError while importing test module '/home/mohamed/Desktop/fidimag-master/tests/test_init_scalar.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/init.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test_init_scalar.py:2: in
from fidimag.common import init_scalar
../fidimag/common/init.py:7: in
from .helper import init_scalar, init_vector
../fidimag/common/helper.py:1: in
from fidimag.extensions.common_clib import normalise
E ModuleNotFoundError: No module named 'fidimag.extensions.common_clib'
_______________________ ERROR collecting tests/test_init_vector.py ________________________
ImportError while importing test module '/home/mohamed/Desktop/fidimag-master/tests/test_init_vector.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/init.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test_init_vector.py:2: in
from fidimag.common import init_vector
../fidimag/common/init.py:7: in
from .helper import init_scalar, init_vector
../fidimag/common/helper.py:1: in
from fidimag.extensions.common_clib import normalise
E ModuleNotFoundError: No module named 'fidimag.extensions.common_clib'
___________________________ ERROR collecting tests/test_llg.py ____________________________
ImportError while importing test module '/home/mohamed/Desktop/fidimag-master/tests/test_llg.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/init.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test_llg.py:6: in
from fidimag.common import CuboidMesh
../fidimag/common/init.py:7: in
from .helper import init_scalar, init_vector
../fidimag/common/helper.py:1: in
from fidimag.extensions.common_clib import normalise
E ModuleNotFoundError: No module named 'fidimag.extensions.common_clib'
______________________ ERROR collecting tests/test_llg_atomistic.py _______________________
ImportError while importing test module '/home/mohamed/Desktop/fidimag-master/tests/test_llg_atomistic.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/init.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test_llg_atomistic.py:6: in
from fidimag.atomistic import Anisotropy
../fidimag/atomistic/init.py:1: in
from .sim import Sim
../fidimag/atomistic/sim.py:1: in
from .llg import LLG
../fidimag/atomistic/llg.py:5: in
import fidimag.extensions.common_clib as clib
E ModuleNotFoundError: No module named 'fidimag.extensions.common_clib'
________________________ ERROR collecting tests/test_llg_openmp.py ________________________
ImportError while importing test module '/home/mohamed/Desktop/fidimag-master/tests/test_llg_openmp.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/init.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test_llg_openmp.py:6: in
from fidimag.common import CuboidMesh
../fidimag/common/init.py:7: in
from .helper import init_scalar, init_vector
../fidimag/common/helper.py:1: in
from fidimag.extensions.common_clib import normalise
E ModuleNotFoundError: No module named 'fidimag.extensions.common_clib'
_____________________ ERROR collecting tests/test_llg_raises_error.py _____________________
ImportError while importing test module '/home/mohamed/Desktop/fidimag-master/tests/test_llg_raises_error.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/init.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test_llg_raises_error.py:2: in
from fidimag.common import CuboidMesh
../fidimag/common/init.py:7: in
from .helper import init_scalar, init_vector
../fidimag/common/helper.py:1: in
from fidimag.extensions.common_clib import normalise
E ModuleNotFoundError: No module named 'fidimag.extensions.common_clib'
___________________________ ERROR collecting tests/test_mesh.py ___________________________
ImportError while importing test module '/home/mohamed/Desktop/fidimag-master/tests/test_mesh.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/init.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test_mesh.py:1: in
from fidimag.common import CuboidMesh
../fidimag/common/init.py:7: in
from .helper import init_scalar, init_vector
../fidimag/common/helper.py:1: in
from fidimag.extensions.common_clib import normalise
E ModuleNotFoundError: No module named 'fidimag.extensions.common_clib'
___________________ ERROR collecting tests/test_micromagnetic_zeeman.py ___________________
ImportError while importing test module '/home/mohamed/Desktop/fidimag-master/tests/test_micromagnetic_zeeman.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/init.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test_micromagnetic_zeeman.py:1: in
from fidimag.micro import Zeeman
../fidimag/micro/init.py:1: in
from .sim import Sim
../fidimag/micro/sim.py:3: in
from . import llg
../fidimag/micro/llg.py:6: in
import fidimag.extensions.common_clib as clib
E ModuleNotFoundError: No module named 'fidimag.extensions.common_clib'
_______________________ ERROR collecting tests/test_monte_carlo.py ________________________
ImportError while importing test module '/home/mohamed/Desktop/fidimag-master/tests/test_monte_carlo.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/init.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test_monte_carlo.py:5: in
import fidimag.extensions.clib as clib
E ModuleNotFoundError: No module named 'fidimag.extensions.clib'
____________________ ERROR collecting tests/test_neb_method_library.py ____________________
ImportError while importing test module '/home/mohamed/Desktop/fidimag-master/tests/test_neb_method_library.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/init.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test_neb_method_library.py:8: in
import fidimag.extensions.nebm_clib as nebm_clib
E ModuleNotFoundError: No module named 'fidimag.extensions.nebm_clib'
____________________ ERROR collecting tests/test_oommf_without_run.py _____________________
ImportError while importing test module '/home/mohamed/Desktop/fidimag-master/tests/test_oommf_without_run.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/init.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test_oommf_without_run.py:4: in
from fidimag.common import CuboidMesh
../fidimag/common/init.py:7: in
from .helper import init_scalar, init_vector
../fidimag/common/helper.py:1: in
from fidimag.extensions.common_clib import normalise
E ModuleNotFoundError: No module named 'fidimag.extensions.common_clib'
_______________________ ERROR collecting tests/test_prb88_184422.py _______________________
ImportError while importing test module '/home/mohamed/Desktop/fidimag-master/tests/test_prb88_184422.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/init.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test_prb88_184422.py:6: in
from fidimag.micro import Sim
../fidimag/micro/init.py:1: in
from .sim import Sim
../fidimag/micro/sim.py:3: in
from . import llg
../fidimag/micro/llg.py:6: in
import fidimag.extensions.common_clib as clib
E ModuleNotFoundError: No module named 'fidimag.extensions.common_clib'
_____________________ ERROR collecting tests/test_skyrmion_number.py ______________________
ImportError while importing test module '/home/mohamed/Desktop/fidimag-master/tests/test_skyrmion_number.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/init.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test_skyrmion_number.py:2: in
from fidimag.atomistic import Sim
../fidimag/atomistic/init.py:1: in
from .sim import Sim
../fidimag/atomistic/sim.py:1: in
from .llg import LLG
../fidimag/atomistic/llg.py:5: in
import fidimag.extensions.common_clib as clib
E ModuleNotFoundError: No module named 'fidimag.extensions.common_clib'
_______________________ ERROR collecting tests/test_spatial_exch.py _______________________
ImportError while importing test module '/home/mohamed/Desktop/fidimag-master/tests/test_spatial_exch.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/init.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test_spatial_exch.py:2: in
from fidimag.atomistic import Sim
../fidimag/atomistic/init.py:1: in
from .sim import Sim
../fidimag/atomistic/sim.py:1: in
from .llg import LLG
../fidimag/atomistic/llg.py:5: in
import fidimag.extensions.common_clib as clib
E ModuleNotFoundError: No module named 'fidimag.extensions.common_clib'
___________________________ ERROR collecting tests/test_stt.py ____________________________
ImportError while importing test module '/home/mohamed/Desktop/fidimag-master/tests/test_stt.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/init.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test_stt.py:2: in
import fidimag.extensions.common_clib as clib
E ModuleNotFoundError: No module named 'fidimag.extensions.common_clib'
__________________________ ERROR collecting tests/test_stt_dw.py __________________________
ImportError while importing test module '/home/mohamed/Desktop/fidimag-master/tests/test_stt_dw.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/init.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test_stt_dw.py:12: in
from fidimag.micro import Sim
../fidimag/micro/init.py:1: in
from .sim import Sim
../fidimag/micro/sim.py:3: in
from . import llg
../fidimag/micro/llg.py:6: in
import fidimag.extensions.common_clib as clib
E ModuleNotFoundError: No module named 'fidimag.extensions.common_clib'
_____________________ ERROR collecting tests/test_stt_dw_atomistic.py _____________________
ImportError while importing test module '/home/mohamed/Desktop/fidimag-master/tests/test_stt_dw_atomistic.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/init.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test_stt_dw_atomistic.py:7: in
from fidimag.common import CuboidMesh as Mesh
../fidimag/common/init.py:7: in
from .helper import init_scalar, init_vector
../fidimag/common/helper.py:1: in
from fidimag.extensions.common_clib import normalise
E ModuleNotFoundError: No module named 'fidimag.extensions.common_clib'
_____________________ ERROR collecting tests/test_stt_slonczewski.py ______________________
ImportError while importing test module '/home/mohamed/Desktop/fidimag-master/tests/test_stt_slonczewski.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/init.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test_stt_slonczewski.py:4: in
from fidimag.atomistic import Sim, DMI, UniformExchange, Zeeman, Anisotropy
../fidimag/atomistic/init.py:1: in
from .sim import Sim
../fidimag/atomistic/sim.py:1: in
from .llg import LLG
../fidimag/atomistic/llg.py:5: in
import fidimag.extensions.common_clib as clib
E ModuleNotFoundError: No module named 'fidimag.extensions.common_clib'
_______________________ ERROR collecting tests/test_time_zeeman.py ________________________
ImportError while importing test module '/home/mohamed/Desktop/fidimag-master/tests/test_time_zeeman.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/init.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test_time_zeeman.py:2: in
from fidimag.common import CuboidMesh
../fidimag/common/init.py:7: in
from .helper import init_scalar, init_vector
../fidimag/common/helper.py:1: in
from fidimag.extensions.common_clib import normalise
E ModuleNotFoundError: No module named 'fidimag.extensions.common_clib'
_________________ ERROR collecting tests/test_two_particles_neb_method.py _________________
ImportError while importing test module '/home/mohamed/Desktop/fidimag-master/tests/test_two_particles_neb_method.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/init.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test_two_particles_neb_method.py:5: in
from fidimag.micro import Sim
../fidimag/micro/init.py:1: in
from .sim import Sim
../fidimag/micro/sim.py:3: in
from . import llg
../fidimag/micro/llg.py:6: in
import fidimag.extensions.common_clib as clib
E ModuleNotFoundError: No module named 'fidimag.extensions.common_clib'
_______________ ERROR collecting tests/test_two_particles_string_method.py ________________
ImportError while importing test module '/home/mohamed/Desktop/fidimag-master/tests/test_two_particles_string_method.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/init.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test_two_particles_string_method.py:5: in
from fidimag.micro import Sim
../fidimag/micro/init.py:1: in
from .sim import Sim
../fidimag/micro/sim.py:3: in
from . import llg
../fidimag/micro/llg.py:6: in
import fidimag.extensions.common_clib as clib
E ModuleNotFoundError: No module named 'fidimag.extensions.common_clib'
_______________________ ERROR collecting tests/test_vtk_writing.py ________________________
ImportError while importing test module '/home/mohamed/Desktop/fidimag-master/tests/test_vtk_writing.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/init.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test_vtk_writing.py:3: in
from fidimag.common import CuboidMesh
../fidimag/common/init.py:7: in
from .helper import init_scalar, init_vector
../fidimag/common/helper.py:1: in
from fidimag.extensions.common_clib import normalise
E ModuleNotFoundError: No module named 'fidimag.extensions.common_clib'
================================= short test summary info =================================
ERROR cuboid_mesh_test.py
ERROR field_test.py
ERROR hexagonal_mesh_test.py
ERROR integrators_test.py
ERROR mini_test.py - AttributeError: module 'fidimag' has no attribute 'common'
ERROR skyrmion_number_test.py
ERROR test_2dpbc_cube.py
ERROR test_add_remove_interaction.py
ERROR test_anis.py
ERROR test_atomistic_zeeman.py
ERROR test_demag.py
ERROR test_demag_libraries.py
ERROR test_dmi.py
ERROR test_domain_wall_cobalt.py
ERROR test_dw_atomistic.py
ERROR test_dw_dmi.py
ERROR test_energy.py
ERROR test_exch_micro.py
ERROR test_exch_rkky.py
ERROR test_exch_uniform.py
ERROR test_full_exch.py
ERROR test_hubert_minimiser.py
ERROR test_init_scalar.py
ERROR test_init_vector.py
ERROR test_llg.py
ERROR test_llg_atomistic.py
ERROR test_llg_openmp.py
ERROR test_llg_raises_error.py
ERROR test_mesh.py
ERROR test_micromagnetic_zeeman.py
ERROR test_monte_carlo.py
ERROR test_neb_method_library.py
ERROR test_oommf_without_run.py
ERROR test_prb88_184422.py
ERROR test_skyrmion_number.py
ERROR test_spatial_exch.py
ERROR test_stt.py
ERROR test_stt_dw.py
ERROR test_stt_dw_atomistic.py
ERROR test_stt_slonczewski.py
ERROR test_time_zeeman.py
ERROR test_two_particles_neb_method.py
ERROR test_two_particles_string_method.py
ERROR test_vtk_writing.py
!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 44 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!
=================================== 44 errors in 0.49s ====================================
make: *** [Makefile:51: test] Error 2

@davidcortesortuno
Copy link
Collaborator

Hi, it seems you have a messy Python installation. From platform linux -- Python 3.12.3, pytest-8.2.2, pluggy-1.5.0 -- /usr/bin/python3 it says you are using the system's Python

It is recommended you use a separate python environment, for example, using conda or mamba. Otherwise is more difficult to know what is the issue with your installation

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

No branches or pull requests

2 participants