explosion / spaCy

💫 Industrial-strength Natural Language Processing (NLP) in Python
https://spacy.io
MIT License
30.37k stars 4.41k forks source link

reference to obsolete thinc backend linalg #13701

Open envolution opened 2 days ago

envolution commented 2 days ago
ml/parser_model.pyx
line8: from thinc.backends.linalg cimport Vec, VecVec

https://github.com/explosion/thinc/pull/742

was obsoleted a couple of years ago, which is causing some downstream issues:

  File "/usr/lib/python3.12/site-packages/auralis/models/xttsv2/config/tokenizer.py", line 12, in <module>
    from spacy.lang.ar import Arabic
  File "/usr/lib/python3.12/site-packages/spacy/__init__.py", line 13, in <module>
    from . import pipeline  # noqa: F401
    ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/spacy/pipeline/__init__.py", line 2, in <module>
    from .dep_parser import DependencyParser
  File "spacy/pipeline/dep_parser.pyx", line 1, in init spacy.pipeline.dep_parser
  File "spacy/pipeline/transition_parser.pyx", line 1, in init spacy.pipeline.transition_parser
  File "/usr/lib/python3.12/site-packages/spacy/ml/__init__.py", line 2, in <module>
    from .models import *  # noqa: F401, F403
    ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/spacy/ml/models/__init__.py", line 3, in <module>
    from .parser import *  # noqa
    ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/spacy/ml/models/parser.py", line 11, in <module>
    from ..tb_framework import TransitionModel
  File "/usr/lib/python3.12/site-packages/spacy/ml/tb_framework.py", line 4, in <module>
    from .parser_model import ParserStepModel
  File "spacy/ml/parser_model.pyx", line 1, in init spacy.ml.parser_model
ModuleNotFoundError: No module named 'thinc.backends.linalg'

Your Environment

Arch linux Name: spacy Version: 3.8.2 Summary: Industrial-strength Natural Language Processing (NLP) in Python Home-page: https://spacy.io Author: Explosion Author-email: contact@explosion.ai License: MIT Location: /usr/lib/python3.12/site-packages Requires: catalogue, cymem, jinja2, langcodes, murmurhash, numpy, packaging, preshed, pydantic, requests, setuptools, spacy-legacy, spacy-loggers, srsly, thinc, tqdm, typer, wasabi, weasel Required-by: auralis

envolution commented 1 day ago

i was using git version of thinc, it's not a problem on thinc 8.3.2