Skip to content

numpy v2.0 error with espresso v4.2.2 #83

@Zitzeronion

Description

@Zitzeronion

When running peptide.py with numpy 2.0 and espresso v4.2.2 there seems to be an issue.

python3 samples/peptide.py 
Traceback (most recent call last):
  File ".../samples/peptide.py", line 21, in <module>
    import espressomd
  File ".../espresso-v422/build/src/python/espressomd/__init__.py", line 21, in <module>
    from . import _init
  File "_init.pyx", line 1, in init espressomd._init
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

There is a fix which can be found on stackoverflow that basically suggests to downgrade the numpy version with

(pymbe) pip install "numpy<2"

Did not run into this problem with espresso v4.3 and numpy v2.0

Metadata

Metadata

Assignees

No one assigned

    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