pycorels icon indicating copy to clipboard operation
pycorels copied to clipboard

Binary incompatibility issue while using CorelsClassifier

Open erkankarabulut opened this issue 1 year ago • 0 comments

I have installed corels using pip3 on Ubuntu 22.04. When importing CorelsClassifier with from corels import CorelsClassifier, I am getting the following error message:

Traceback (most recent call last):
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/erkan/Desktop/PhD/projects/associative_classification/venv/lib/python3.10/site-packages/corels/__init__.py", line 2, in <module>
    from .corels import CorelsClassifier
  File "/home/erkan/Desktop/PhD/projects/associative_classification/venv/lib/python3.10/site-packages/corels/corels.py", line 2, in <module>
    from ._corels import fit_wrap_begin, fit_wrap_end, fit_wrap_loop, predict_wrap
  File "__init__.pxd", line 206, in init corels._corels
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

Process finished with exit code 1

Does that mean Corels is calling a .cpp code from the Python implementation, and how can I solve this?

erkankarabulut avatar Dec 02 '24 14:12 erkankarabulut