sedthh / pyxelate

Python class that generates pixel art from images
MIT License
1.59k stars 109 forks source link

Numpy error when trying to run the example #36

Open knochenhans opened 2 years ago

knochenhans commented 2 years ago

Hi, running the example on ArchLinux with numpy 1.21.5 (downgraded from numpy 1.22.3 which is current), I’m getting this error:


  File "/usr/bin/pyxelate", line 33, in <module>
    sys.exit(load_entry_point('pyxelate==2.1.1', 'console_scripts', 'pyxelate')())
  File "/usr/bin/pyxelate", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  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 "/usr/lib/python3.10/site-packages/pyxelate/__init__.py", line 11, in <module>
    from .pyx import Pyx
  File "/usr/lib/python3.10/site-packages/pyxelate/pyx.py", line 10, in <module>
    from skimage.transform import resize
  File "/usr/lib/python3.10/site-packages/skimage/__init__.py", line 151, in <module>
    from ._shared import geometry
  File "skimage/_shared/geometry.pyx", line 1, in init skimage._shared.geometry
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject