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 1.20.2 is not compatible. #42

Open
jiyoonlim123 opened this issue Aug 30, 2022 · 0 comments
Open

Numpy 1.20.2 is not compatible. #42

jiyoonlim123 opened this issue Aug 30, 2022 · 0 comments

Comments

@jiyoonlim123
Copy link

How about adding the numpy version in requirement.txt?
When I use the numpy==1.20.2 and try to run the example code in README, it returns the following log.

RuntimeError: module compiled against API version 0xf but this version of numpy is 0xe
Traceback (most recent call last):
  File "test.py", line 2, in <module>
    import pyastar2d
  File "/Users/jiyoonlim/.pyenv/versions/asic/lib/python3.8/site-packages/pyastar2d/__init__.py", line 1, in <module>
    from pyastar2d.astar_wrapper import astar_path, Heuristic
  File "/Users/jiyoonlim/.pyenv/versions/asic/lib/python3.8/site-packages/pyastar2d/astar_wrapper.py", line 3, in <module>
    import pyastar2d.astar
ImportError: numpy.core.multiarray failed to import

When I tried it with numpy==1.22.4, It works well.

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