Open dushankw opened 5 months ago
We began seeing this issue in the past day or two as well. Following.
Thanks for posting. Looks like an issue been spacy and numpy. Consider trying to pip install numpy as well
A new version of numpy got released two days ago. I had some luck pinning numpy==1.26.4
.
Root cause: https://github.com/explosion/thinc/issues/939
Describe the bug Presidio is failing to build/install against Python 3.11 (officially supported per docs) and 3.12 on x86_64 Linux
Having tried both spaCy and Stanza as per https://microsoft.github.io/presidio/installation/ I am always encountering the following issue, seemingly a version incompatibility between numpy and something else (probably a compiled library lower down in the import graph).
I have replicated the same issue in a clean container using the official Python upstream image
Thank you for looking into it :pray:
To Reproduce
Create the following Dockerfile
Build it
Observe the error towards the end of the build (NOTE: the warning about running as root and the venv is noise as this is in a container)
Note: Using Stanza instead of spaCy we are able to successfully build the container (install the libraries), but we hit the same error as soon as we try to use the library, eg:
Will trigger the same error
Expected behavior Able to install the library, import it and run the demo code (https://microsoft.github.io/presidio/getting_started/)
Screenshots N/A
Additional context Looking at the official Docker image, it seems 3.9 is being used
Trying to build against this exact version of Python yields the same error