daswer123 / xtts-api-server

A simple FastAPI Server to run XTTSv2
MIT License
292 stars 67 forks source link

Error when trying to install spacy-3.0.6.tar.gz #77

Closed YamiZee closed 1 month ago

YamiZee commented 1 month ago

I'm trying to set this up according to this guide. No matter what python version I use or if it's with conda or the standard venv, the installation always fails when trying to install spacy-3.0.6.tar.gz.

Many of the errors complain: Variables cannot be declared with 'cpdef'. Use 'cdef' instead.

And at the end:

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

I also find it strange that the installer tries to install every version of spacy, starting with spacy-3.7.2 and going down all the way to spacy-3.0.6 where it bugs out.

jgilbertfpv commented 1 month ago

I was having the same issue, but I found a solution here. https://github.com/explosion/spaCy/issues/13449#issuecomment-2100827973

YamiZee commented 1 month ago

Thanks, that worked! Just to make it explicitly clear to anyone else following the guide, run: pip install fastapi==0.110 xtts-api-server pydub

Edit: reopened this because a solution that's found inside the issues page isn't really solved until guides are updated or spacy itself is fixed

svlandeg commented 1 month ago

Hi! We've now released spaCy 3.7.5 which should hopefully fix the underlying version conflict 🤞.

daswer123 commented 1 month ago

Awesome, thanks for your work )