Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

numpy.dtype size changed, may indicate binary incompatibility. #390

Open
payrim opened this issue Aug 3, 2024 · 1 comment
Open

numpy.dtype size changed, may indicate binary incompatibility. #390

payrim opened this issue Aug 3, 2024 · 1 comment

Comments

@payrim
Copy link

payrim commented Aug 3, 2024

Traceback (most recent call last):
  File "/directory/files/Programs/LaTeX-OCR/pix2tex/cli.py", line 1, in <module>
    from pix2tex.dataset.transforms import test_transform
  File "/usr/lib/python3.12/site-packages/pix2tex/dataset/transforms.py", line 1, in <module>
    import albumentations as alb
  File "/usr/lib/python3.12/site-packages/albumentations/__init__.py", line 6, in <module>
    from .augmentations import *
  File "/usr/lib/python3.12/site-packages/albumentations/augmentations/__init__.py", line 1, in <module>
    from .blur.functional import *
  File "/usr/lib/python3.12/site-packages/albumentations/augmentations/blur/__init__.py", line 1, in <module>
    from .functional import *
  File "/usr/lib/python3.12/site-packages/albumentations/augmentations/blur/functional.py", line 11, in <module>
    from albumentations.augmentations.functional import convolve
  File "/usr/lib/python3.12/site-packages/albumentations/augmentations/functional.py", line 9, in <module>
    import skimage
  File "/usr/lib/python3.12/site-packages/skimage/__init__.py", line 124, in <module>
    from ._shared import geometry
  File "geometry.pyx", line 1, in init skimage._shared.geometry
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

anyone has an idea?

@jschaefer-hub
Copy link

jschaefer-hub commented Sep 17, 2024

I experience the same issue.

Edit:
If you set up a clean Conda environment conda create -n latexocr python=3.11 and then install, it worked for me. There seemed to be some unresolved conflicts in my default environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants