Hello,
I'm writing to you because I experience some difficulties to install properly sfepy ...
First, I use Anaconda and I am in a windows environment.
I created a new environment to do the install with Python 3.12.4 in it. When I tried to install sfepy through
conda install -c conda-forge sfepy
commands it didn't go through. Instead, I used pip install which finished properly.
I also installed pytest with
pip install pytest
but when I run
sfepy-test
I have several errors. I can't find site_cfg.py files to edit it, as required in the debugging section. So I can only copy paste what the output of the sfepy-test command is (see below the email).
Could you help me ?
Regards,
Thomas Carlioz
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
platform win32 -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0
rootdir: C:\Users\TC269207\AppData\Local\anaconda3\envs\sfepy\Lib\site-packages\sfepy
collected 172 items / 9 errors
======================================================= ERRORS ========================================================
_______________________________________ ERROR collecting tests/test_dg_field.py _______________________________________
tests\test_dg_field.py:5: in <module>
from sfepy.discrete.fem import FEDomain
discrete\__init__.py:9: in <module>
from .variables import (Variables, Variable, FieldVariable, DGFieldVariable,
discrete\variables.py:20: in <module>
from sfepy.discrete.fem.lcbc_operators import LCBCOperators
discrete\fem\__init__.py:11: in <module>
from .fields_base import Field
discrete\fem\fields_base.py:26: in <module>
from sfepy.discrete.fem.mappings import FEMapping
discrete\fem\mappings.py:9: in <module>
from sfepy.discrete.common.mappings import Mapping, PyCMapping
discrete\common\mappings.py:7: in <module>
from sfepy.discrete.common.extmods.cmapping import CMapping
cmapping.pyx:1: in init sfepy.discrete.common.extmods.cmapping
???
E ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
____________________________________ ERROR collecting tests/test_dg_terms_calls.py ____________________________________
tests\test_dg_terms_calls.py:11: in <module>
from sfepy.discrete import DGFieldVariable, Material, Integral
discrete\__init__.py:9: in <module>
from .variables import (Variables, Variable, FieldVariable, DGFieldVariable,
discrete\variables.py:20: in <module>
from sfepy.discrete.fem.lcbc_operators import LCBCOperators
discrete\fem\__init__.py:11: in <module>
from .fields_base import Field
discrete\fem\fields_base.py:26: in <module>
from sfepy.discrete.fem.mappings import FEMapping
discrete\fem\mappings.py:9: in <module>
from sfepy.discrete.common.mappings import Mapping, PyCMapping
discrete\common\mappings.py:7: in <module>
from sfepy.discrete.common.extmods.cmapping import CMapping
cmapping.pyx:1: in init sfepy.discrete.common.extmods.cmapping
???
E ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
________________________________________ ERROR collecting tests/test_domain.py ________________________________________
tests\test_domain.py:7: in <module>
from sfepy.discrete.fem import Mesh, FEDomain
discrete\__init__.py:9: in <module>
from .variables import (Variables, Variable, FieldVariable, DGFieldVariable,
discrete\variables.py:20: in <module>
from sfepy.discrete.fem.lcbc_operators import LCBCOperators
discrete\fem\__init__.py:11: in <module>
from .fields_base import Field
discrete\fem\fields_base.py:26: in <module>
from sfepy.discrete.fem.mappings import FEMapping
discrete\fem\mappings.py:9: in <module>
from sfepy.discrete.common.mappings import Mapping, PyCMapping
discrete\common\mappings.py:7: in <module>
from sfepy.discrete.common.extmods.cmapping import CMapping
cmapping.pyx:1: in init sfepy.discrete.common.extmods.cmapping
???
E ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
______________________________________ ERROR collecting tests/test_ed_solvers.py ______________________________________
tests\test_ed_solvers.py:7: in <module>
from sfepy.mesh.mesh_generators import gen_block_mesh
mesh\mesh_generators.py:12: in <module>
from sfepy.mesh.mesh_tools import elems_q2t
mesh\mesh_tools.py:1: in <module>
from sfepy.discrete.fem import Mesh, FEDomain
discrete\__init__.py:9: in <module>
from .variables import (Variables, Variable, FieldVariable, DGFieldVariable,
discrete\variables.py:20: in <module>
from sfepy.discrete.fem.lcbc_operators import LCBCOperators
discrete\fem\__init__.py:11: in <module>
from .fields_base import Field
discrete\fem\fields_base.py:26: in <module>
from sfepy.discrete.fem.mappings import FEMapping
discrete\fem\mappings.py:9: in <module>
from sfepy.discrete.common.mappings import Mapping, PyCMapping
discrete\common\mappings.py:7: in <module>
from sfepy.discrete.common.extmods.cmapping import CMapping
cmapping.pyx:1: in init sfepy.discrete.common.extmods.cmapping
???
E ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
__________________________________ ERROR collecting tests/test_eigenvalue_solvers.py __________________________________
tests\test_eigenvalue_solvers.py:5: in <module>
from sfepy.mesh.mesh_generators import gen_block_mesh
mesh\mesh_generators.py:12: in <module>
from sfepy.mesh.mesh_tools import elems_q2t
mesh\mesh_tools.py:1: in <module>
from sfepy.discrete.fem import Mesh, FEDomain
discrete\__init__.py:9: in <module>
from .variables import (Variables, Variable, FieldVariable, DGFieldVariable,
discrete\variables.py:20: in <module>
from sfepy.discrete.fem.lcbc_operators import LCBCOperators
discrete\fem\__init__.py:11: in <module>
from .fields_base import Field
discrete\fem\fields_base.py:26: in <module>
from sfepy.discrete.fem.mappings import FEMapping
discrete\fem\mappings.py:9: in <module>
from sfepy.discrete.common.mappings import Mapping, PyCMapping
discrete\common\mappings.py:7: in <module>
from sfepy.discrete.common.extmods.cmapping import CMapping
cmapping.pyx:1: in init sfepy.discrete.common.extmods.cmapping
???
E ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
________________________________ ERROR collecting tests/test_homogenization_engine.py _________________________________
tests\test_homogenization_engine.py:3: in <module>
from sfepy.homogenization.engine import HomogenizationEngine as he
homogenization\engine.py:6: in <module>
from sfepy.applications import PDESolverApp, Application
applications\__init__.py:3: in <module>
from .pde_solver_app import PDESolverApp, solve_pde, assign_standard_hooks
applications\pde_solver_app.py:7: in <module>
from sfepy.discrete import Problem
discrete\__init__.py:9: in <module>
from .variables import (Variables, Variable, FieldVariable, DGFieldVariable,
discrete\variables.py:20: in <module>
from sfepy.discrete.fem.lcbc_operators import LCBCOperators
discrete\fem\__init__.py:11: in <module>
from .fields_base import Field
discrete\fem\fields_base.py:26: in <module>
from sfepy.discrete.fem.mappings import FEMapping
discrete\fem\mappings.py:9: in <module>
from sfepy.discrete.common.mappings import Mapping, PyCMapping
discrete\common\mappings.py:7: in <module>
from sfepy.discrete.common.extmods.cmapping import CMapping
cmapping.pyx:1: in init sfepy.discrete.common.extmods.cmapping
???
E ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
_____________________________________ ERROR collecting tests/test_projections.py ______________________________________
tests\test_projections.py:6: in <module>
from sfepy.discrete import FieldVariable
discrete\__init__.py:9: in <module>
from .variables import (Variables, Variable, FieldVariable, DGFieldVariable,
discrete\variables.py:20: in <module>
from sfepy.discrete.fem.lcbc_operators import LCBCOperators
discrete\fem\__init__.py:11: in <module>
from .fields_base import Field
discrete\fem\fields_base.py:26: in <module>
from sfepy.discrete.fem.mappings import FEMapping
discrete\fem\mappings.py:9: in <module>
from sfepy.discrete.common.mappings import Mapping, PyCMapping
discrete\common\mappings.py:7: in <module>
from sfepy.discrete.common.extmods.cmapping import CMapping
cmapping.pyx:1: in init sfepy.discrete.common.extmods.cmapping
???
E ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
______________________________________ ERROR collecting tests/test_ref_coors.py _______________________________________
tests\test_ref_coors.py:7: in <module>
import sfepy.discrete.common.global_interp as gi
discrete\common\global_interp.py:9: in <module>
import sfepy.discrete.common.extmods.crefcoors as crc
crefcoors.pyx:1: in init sfepy.discrete.common.extmods.crefcoors
???
E ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
______________________________________ ERROR collecting tests/test_splinebox.py _______________________________________
tests\test_splinebox.py:5: in <module>
from sfepy.discrete.fem import Mesh
discrete\__init__.py:9: in <module>
from .variables import (Variables, Variable, FieldVariable, DGFieldVariable,
discrete\variables.py:20: in <module>
from sfepy.discrete.fem.lcbc_operators import LCBCOperators
discrete\fem\__init__.py:11: in <module>
from .fields_base import Field
discrete\fem\fields_base.py:26: in <module>
from sfepy.discrete.fem.mappings import FEMapping
discrete\fem\mappings.py:9: in <module>
from sfepy.discrete.common.mappings import Mapping, PyCMapping
discrete\common\mappings.py:7: in <module>
from sfepy.discrete.common.extmods.cmapping import CMapping
cmapping.pyx:1: in init sfepy.discrete.common.extmods.cmapping
???
E ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
=============================================== short test summary info ===============================================
ERROR tests/test_dg_field.py - ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from P...
ERROR tests/test_dg_terms_calls.py - ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from P...
ERROR tests/test_domain.py - ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from P...
ERROR tests/test_ed_solvers.py - ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from P...
ERROR tests/test_eigenvalue_solvers.py - ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from P...
ERROR tests/test_homogenization_engine.py - ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from P...
ERROR tests/test_projections.py - ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from P...
ERROR tests/test_ref_coors.py - ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from P...
ERROR tests/test_splinebox.py - ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from P...
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 9 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
================================================= 9 errors in 12.97s ==================================================