Skip to content

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

@LeiYangGH

Description

@LeiYangGH

using conda created python 3.9

(logai) PS C:\G\logai> python gui/application.py
Traceback (most recent call last):
  File "C:\G\logai\gui\application.py", line 16, in <module>
    from gui.callbacks import pattern, anomaly_detection, clustering, utils
  File "C:\G\logai\gui\callbacks\pattern.py", line 15, in <module>
    from logai.applications.application_interfaces import (
  File "C:\G\logai\logai\applications\application_interfaces.py", line 11, in <module>
    from logai.analysis.nn_anomaly_detector import NNAnomalyDetectionConfig
  File "C:\G\logai\logai\analysis\nn_anomaly_detector.py", line 9, in <module>
    from logai.algorithms.vectorization_algo.forecast_nn import ForecastNNVectorizedDataset
  File "C:\G\logai\logai\algorithms\vectorization_algo\__init__.py", line 8, in <module>
    from .fasttext import FastText
  File "C:\G\logai\logai\algorithms\vectorization_algo\fasttext.py", line 8, in <module>
    import gensim
  File "C:\Users\yang.lei\.conda\envs\logai\lib\site-packages\gensim\__init__.py", line 11, in <module>
    from gensim import parsing, corpora, matutils, interfaces, models, similarities, utils  # noqa:F401
  File "C:\Users\yang.lei\.conda\envs\logai\lib\site-packages\gensim\corpora\__init__.py", line 6, in <module>
    from .indexedcorpus import IndexedCorpus  # noqa:F401 must appear before the other classes
  File "C:\Users\yang.lei\.conda\envs\logai\lib\site-packages\gensim\corpora\indexedcorpus.py", line 14, in <module>
    from gensim import interfaces, utils
  File "C:\Users\yang.lei\.conda\envs\logai\lib\site-packages\gensim\interfaces.py", line 19, in <module>
    from gensim import utils, matutils
  File "C:\Users\yang.lei\.conda\envs\logai\lib\site-packages\gensim\matutils.py", line 1034, in <module>
    from gensim._matutils import logsumexp, mean_absolute_difference, dirichlet_expectation
  File "gensim\_matutils.pyx", line 1, in init gensim._matutils
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
(logai) PS C:\G\logai> pip list
Package                   Version
------------------------- -----------
aiohappyeyeballs          2.4.4
aiohttp                   3.11.11
aiosignal                 1.3.2
annotated-types           0.7.0
async-timeout             5.0.1
attrs                     24.3.0
blinker                   1.9.0
blis                      1.1.0
Brotli                    1.1.0
cachetools                5.5.0
catalogue                 2.0.10
certifi                   2024.12.14
cffi                      1.17.1
charset-normalizer        3.4.1
click                     8.1.8
cloudpathlib              0.20.0
cmdstanpy                 1.2.5
colorama                  0.4.6
confection                0.1.5
contourpy                 1.3.0
cycler                    0.12.1
cymem                     2.0.10
Cython                    3.0.11
dash                      2.18.2
dash-bootstrap-components 1.6.0
dash-core-components      2.0.0
dash-html-components      2.0.0
dash-table                5.0.0
dataclasses               0.6
datasets                  3.2.0
dill                      0.3.8
filelock                  3.16.1
Flask                     3.0.3
fonttools                 4.55.3
frozenlist                1.5.0
fsspec                    2024.9.0
gensim                    4.3.3
gitdb                     4.0.12
GitPython                 3.1.44
h2                        4.1.0
holidays                  0.64
hpack                     4.0.0
huggingface-hub           0.27.1
hyperframe                6.0.1
idna                      3.10
importlib_metadata        8.5.0
importlib_resources       6.5.2
itsdangerous              2.2.0
Jinja2                    3.1.5
joblib                    1.4.2
kiwisolver                1.4.7
langcodes                 3.5.0
language_data             1.3.0
lightgbm                  4.5.0
llvmlite                  0.43.0
logai                     0.1.5
marisa-trie               1.2.1
markdown-it-py            3.0.0
MarkupSafe                3.0.2
matplotlib                3.9.4
mdurl                     0.1.2
mpmath                    1.3.0
multidict                 6.1.0
multiprocess              0.70.16
murmurhash                1.0.11
nest-asyncio              1.6.0
networkx                  3.2.1
nltk                      3.9.1
numba                     0.60.0
numpy                     1.26.4
packaging                 24.2
pandas                    2.2.3
patsy                     1.0.1
pillow                    10.4.0
pip                       24.3.1
plotly                    5.24.1
preshed                   3.0.9
propcache                 0.2.1
prophet                   1.1.6
py4j                      0.10.9.8
pyarrow                   18.1.0
pycparser                 2.22
pydantic                  2.10.5
pydantic_core             2.27.2
Pygments                  2.19.1
pyparsing                 3.2.1
PySocks                   1.7.1
python-dateutil           2.9.0.post0
pytz                      2024.2
PyYAML                    6.0.2
regex                     2024.11.6
requests                  2.32.3
retrying                  1.3.4
rich                      13.9.4
salesforce-merlion        2.0.4
schema                    0.7.7
scikit-learn              1.6.0
scipy                     1.13.1
seaborn                   0.13.2
setuptools                75.7.0
shellingham               1.5.4
six                       1.17.0
smart-open                7.1.0
smmap                     5.0.2
spacy                     3.8.3
spacy-legacy              3.0.12
spacy-loggers             1.0.5
srsly                     2.5.0
stanio                    0.5.1
statsmodels               0.14.4
sympy                     1.13.3
tenacity                  9.0.0
thinc                     8.3.3
threadpoolctl             3.5.0
torch                     2.5.1
torchvision               0.20.1
tqdm                      4.67.1
typer                     0.15.1
typing_extensions         4.12.2
tzdata                    2024.2
urllib3                   2.3.0
wasabi                    1.1.3
weasel                    0.4.1
Werkzeug                  3.0.6
wheel                     0.45.1
win_inet_pton             1.1.0
wrapt                     1.17.0
xxhash                    3.5.0
yarl                      1.18.3
zipp                      3.21.0
zstandard                 0.23.0

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