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

Unable to run: RuntimeError: module compiled against API version 0x10 but this version of numpy is 0xf #42

Open
tuxflo opened this issue Nov 18, 2022 · 1 comment

Comments

@tuxflo
Copy link

tuxflo commented Nov 18, 2022

Hi!
I want to try handprint but I'm unable to get it to run.
The command I'm trying to run is

handprint -s google ./
  • Binary version (1.6.0 from the releases page): reports Python too old even tough my python version should be up to date:
python3 --version              
Python 3.10.8
  • pipx version: gives the error above:
RuntimeError: module compiled against API version 0x10 but this version of numpy is 0xf
An error occurred (ImportError): numpy.core.multiarray failed to import
  • pip version, installed via pip install --no-cache-dir --upgrade handprint gives the same error.

Something I'm doing wrong?

Env

OS: Arch Linux (Manjaro)
Python: Python 3.10.8

Python 3.10.8 (main, Nov  1 2022, 14:18:21) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> numpy.version.version
'1.22.2'
>>> 
@mhucka
Copy link
Member

mhucka commented Nov 20, 2022

Thanks for your report. Regarding the Python issue, is there a chance another version of Python installed on your system? When the binary version of Handprint runs, it may be getting a different shell command search path, and if that path includes a different version of Python, that would explain the error. For example, if there's a /usr/bin/python and a /usr/local/bin/python, and /usr/bin/python is a different version, maybe that's what Handprint finds instead of /usr/local/bin/python (or whatever it may be on your system).

The numpy version is very odd. I'll have to ty to reproduce it somehow.

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