Skip to content

Error when importing Hamming #156

@fcaretti

Description

@fcaretti

Subject of the issue

With pip+github installation of version 0.3.3, I get a bug when importing Hamming

Your environment

  • Python version: 3.11.12 (tested also with 3.12)
  • Package Version 0.3.3

Steps to reproduce

mamba create -n new_env python=3.11
mamba activate new_env
mamba install pip
pip install git+https://github.com/sissa-data-science/DADApy
python
from dadapy import BID, Hamming

Actual behaviour

python
Python 3.11.12 | packaged by conda-forge | (main, Apr 10 2025, 22:23:25) [GCC 13.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from dadapy import BID, Hamming
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/scratch/fcaretti/sparse_bid_dadapy/lib/python3.11/site-packages/dadapy/__init__.py", line 5, in <module>
    from .clustering import Clustering
  File "/scratch/fcaretti/sparse_bid_dadapy/lib/python3.11/site-packages/dadapy/clustering.py", line 29, in <module>
    from dadapy._cython import cython_clustering as cf
  File "cython_clustering.pyx", line 1, in init dadapy._cython.cython_clustering
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

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