Skip to content

Cannot use library β€” numpy.dtype size changed, may indicate binary incompatibilityΒ #64

@msure

Description

@msure

I am trying to use the library for the first time. I use Anaconda and created a new environment conda create -n retention python=3.11. After that I activated the environment and installed jupyterlab; then I ran pip install retentioneering. I then started a JupyterLab session and tried from retentioneering import datasets but got the following error (any other use of the library ends up the same, such as from retentioneering.eventstream import Eventstream):

ValueError                                Traceback (most recent call last)
<ipython-input-1-70f1406724aa> in <cell line: 0>()
----> 1 from retentioneering.eventstream import Eventstream

~/anaconda3/envs/retention/lib/python3.11/site-packages/retentioneering/__init__.py in <module>
----> 1 from .utils import RETE_CONFIG
      2 from .__version__ import __version__
      3 from .utils import check_version, supress_warnings
      4 from . import (
      5     datasets,

~/anaconda3/envs/retention/lib/python3.11/site-packages/retentioneering/utils/__init__.py in <module>
      4 # * You can obtain License text at https://github.com/retentioneering/retentioneering-tools/blob/master/LICENSE.md
      5 from .config import RETE_CONFIG
----> 6 from .pandas import get_merged_col, shuffle_df  # type: ignore
      7 
      8 __all__ = [

~/anaconda3/envs/retention/lib/python3.11/site-packages/retentioneering/utils/pandas.py in <module>
      3 import random
      4 
----> 5 import pandas as pd
      6 
      7 

~/anaconda3/envs/retention/lib/python3.11/site-packages/pandas/__init__.py in <module>
     20 
     21 # numpy compat
---> 22 from pandas.compat import is_numpy_dev as _is_numpy_dev  # pyright: ignore # noqa:F401
     23 
     24 try:

~/anaconda3/envs/retention/lib/python3.11/site-packages/pandas/compat/__init__.py in <module>
     16 
     17 from pandas._typing import F
---> 18 from pandas.compat.numpy import (
     19     is_numpy_dev,
     20     np_version_under1p21,

~/anaconda3/envs/retention/lib/python3.11/site-packages/pandas/compat/numpy/__init__.py in <module>
      2 import numpy as np
      3 
----> 4 from pandas.util.version import Version
      5 
      6 # numpy versioning

~/anaconda3/envs/retention/lib/python3.11/site-packages/pandas/util/__init__.py in <module>
      1 # pyright: reportUnusedImport = false
----> 2 from pandas.util._decorators import (  # noqa:F401
      3     Appender,
      4     Substitution,
      5     cache_readonly,

~/anaconda3/envs/retention/lib/python3.11/site-packages/pandas/util/_decorators.py in <module>
     12 import warnings
     13 
---> 14 from pandas._libs.properties import cache_readonly
     15 from pandas._typing import (
     16     F,

~/anaconda3/envs/retention/lib/python3.11/site-packages/pandas/_libs/__init__.py in <module>
     11 
     12 
---> 13 from pandas._libs.interval import Interval
     14 from pandas._libs.tslibs import (
     15     NaT,

~/anaconda3/envs/retention/lib/python3.11/site-packages/pandas/_libs/interval.pyx in init pandas._libs.interval()

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