Skip to content

ValueError: numpy.dtype size changed, may indicate binary incompatibility. #551

@Transurgeon

Description

@Transurgeon

I am encountering an error that looks like the following. It is most likely related to NumPy compatibilities, maybe python-graphblas might not be compatible with 2.0.0?
I found an existing thread on stackoverflow, but the suggestions there did not fix the issue. Any help is appreciated!

       eye = gb.Vector.from_scalar(1, n).diag()
             ^^^^^^^^^
     File "/opt/anaconda3/envs/cvxpy_env/lib/python3.12/site-packages/graphblas/__init__.py", line 68, in __getattr__
       _init("suitesparse", None, automatic=True)
     File "/opt/anaconda3/envs/cvxpy_env/lib/python3.12/site-packages/graphblas/__init__.py", line 142, in _init
       from suitesparse_graphblas import ffi, initialize, is_initialized, lib
     File "/opt/anaconda3/envs/cvxpy_env/lib/python3.12/site-packages/suitesparse_graphblas/__init__.py", line 6, in <module>
       from . import utils
     File "suitesparse_graphblas/utils.pyx", line 1, in init suitesparse_graphblas.utils
   ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
   asv: benchmark failed (exit status 1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions