-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Install via requirements.txt
documentation doesn't work
#13293
Comments
Another failed attempt:
Returns:
Same for:
Output:
|
@SHxKM Seems Cython does not have a stable release compatible with C Python ABI for v3.12. It still works with v3.11 |
Thanks for taking a look. Is there something I can do or should I wait for a new Python version? |
As you said, this tries to install spaCy 3.4.4. spaCy 3.7.0 is the first version that supports Python 3.12. Could you try to download a recent model release? E.g. https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.7.1/en_core_web_sm-3.7.1-py3-none-any.whl |
We will update the example in the docs. |
@danieldk I don’t. I just showed the example from the docs. I’ve tried Spacy 3.7.2 and the model 3.7.1 - it also fails. |
Odd, that works fine here. In a clean 3.12.1 venv:
|
@danieldk hmm, I’d suspected that this could be related to the fact I’m doing this inside a Docker container. Or maybe I didn’t try this exact combination. Will do in a bit and update. |
Hmm @danieldk if you say this is working on This is what I get:
Output:
I don't know how it might relate, but this is the base Python image I'm using:
|
Do you happen to have a small |
It isn’t small by any means. I’m gonna try picking it apart step by step. Maybe start with an older Python base image first. But the Dockerfile is pretty this. |
Results so far:
Succeeds with all my original requirements (including Spacy). |
OK @danieldk , I can reproduce it with this Dockerfile:
Basically the "offending line" is trying to produce a |
In fact this has nothing to do with Docker, this is purely because a constraint file cannot be generated when this is how the
This is because |
Thanks for the example, we'll look into it! |
Cheers, if it's possible please update this thread so I can get a ping |
The docs state I can specify the model like this in
requirements.txt
:This attempts to download spacy
3.4.4
.And a VERY long series of exceptions like this is raised:
All my attempts so far to cache Spacy's download by specifying the model in
requirements.txt
have failed (see replies below).Context: I'm installing this in Docker. Python image is
python:3.12.1-slim
The text was updated successfully, but these errors were encountered: