You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Defaulting to user installation because normal site-packages is not writeable
ERROR: Invalid requirement: 'da-dacy-medium-trf==any': Expected end or semicolon (after name and no valid version specifier)
da-dacy-medium-trf==any
^
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/piotr/.local/lib/python3.11/site-packages/dacy/load.py", line 37, in load
path = download_model(model, force=force)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/piotr/.local/lib/python3.11/site-packages/dacy/download.py", line 118, in download_model
install(models_url[model])
File "/home/piotr/.local/lib/python3.11/site-packages/dacy/download.py", line 81, in install
subprocess.check_call(
File "/opt/anaconda3/envs/jupyterhub-env-2/lib/python3.11/subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/opt/anaconda3/envs/jupyterhub-env-2/bin/python', '-m', 'pip', 'install', 'https://huggingface.co/chcaa/da_dacy_medium_trf/resolve/e7dba91f855a1d26679dc1ef3aa49f7874b50543/da_dacy_medium_trf-any-py3-none-any.whl', '--no-deps']' returned non-zero exit status 1.
Installing model package via the new pip also fails:
Most likely cause is that pip 24.1 introduced a more rigorous versions specification for packages. This link to medium article offers a good writeup of the changes.
Unfortunately, i'm very far from a subject-matter expert. The problem seems to originate in huggingface model definition. Could this be a common issue for spacy models on hugging face? I found an un-answered stack overflow question with the same problem here.
Your Environment
DaCy Version Used: 2.7.7
Operating System: Linux
Python Version Used: 3.11.5
spaCy Version Used: 3.5.4 and 3.7.5
Environment Information:
The text was updated successfully, but these errors were encountered:
How to reproduce the behaviour
With pip >= 24.1 installed do:
This fails with:
Installing model package via the new pip also fails:
Most likely cause is that pip 24.1 introduced a more rigorous versions specification for packages. This link to medium article offers a good writeup of the changes.
Unfortunately, i'm very far from a subject-matter expert. The problem seems to originate in huggingface model definition. Could this be a common issue for spacy models on hugging face? I found an un-answered stack overflow question with the same problem here.
Your Environment
The text was updated successfully, but these errors were encountered: