caltechlibrary / handprint

Apply different text recognition services to images of handwritten documents.
https://caltechlibrary.github.io/handprint
BSD 3-Clause "New" or "Revised" License
172 stars 18 forks source link

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

Open tuxflo opened 1 year ago

tuxflo commented 1 year ago

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 ./

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 commented 1 year ago

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.