Skip to content
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

Issue when calling spacy info #13157

Closed
balachander1964 opened this issue Nov 28, 2023 · 3 comments
Closed

Issue when calling spacy info #13157

balachander1964 opened this issue Nov 28, 2023 · 3 comments
Labels
duplicate Issues that have been reported before

Comments

@balachander1964
Copy link

Hi I am Bala. I use Spacy 3.6.1 for NLP. I am facing the following issue when calling spacy info and when loading any model. I use Python 3.8 on Windows 10.
<<
(pnlpbase) PS C:\windows\system32> python -m spacy info
Traceback (most recent call last):
File "D:\python\Anaconda3\envs\pnlpbase\lib\runpy.py", line 185, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "D:\python\Anaconda3\envs\pnlpbase\lib\runpy.py", line 144, in get_module_details
return get_module_details(pkg_main_name, error)
File "D:\python\Anaconda3\envs\pnlpbase\lib\runpy.py", line 111, in get_module_details
import(pkg_name)
File "D:\python\Anaconda3\envs\pnlpbase\lib\site-packages\spacy_init
.py", line 14, in
from . import pipeline # noqa: F401
File "D:\python\Anaconda3\envs\pnlpbase\lib\site-packages\spacy\pipeline_init
.py", line 1, in
from .attributeruler import AttributeRuler
File "D:\python\Anaconda3\envs\pnlpbase\lib\site-packages\spacy\pipeline\attributeruler.py", line 6, in
from .pipe import Pipe
File "spacy\pipeline\pipe.pyx", line 1, in init spacy.pipeline.pipe
File "spacy\vocab.pyx", line 1, in init spacy.vocab
File "D:\python\Anaconda3\envs\pnlpbase\lib\site-packages\spacy\tokens_init.py", line 1, in
from .doc import Doc
File "spacy\tokens\doc.pyx", line 36, in init spacy.tokens.doc
File "D:\python\Anaconda3\envs\pnlpbase\lib\site-packages\spacy\schemas.py", line 222, in
class TokenPattern(BaseModel):
File "pydantic\main.py", line 205, in pydantic.main.ModelMetaclass.new
File "pydantic\fields.py", line 491, in pydantic.fields.ModelField.infer
File "pydantic\fields.py", line 421, in pydantic.fields.ModelField.init
File "pydantic\fields.py", line 537, in pydantic.fields.ModelField.prepare
File "pydantic\fields.py", line 634, in pydantic.fields.ModelField._type_analysis
File "pydantic\fields.py", line 641, in pydantic.fields.ModelField._type_analysis
File "D:\python\Anaconda3\envs\pnlpbase\lib\typing.py", line 774, in subclasscheck
return issubclass(cls, self.origin)
TypeError: issubclass() arg 1 must be a class
(pnlpbase) PS C:\windows\system32>

Also, I get a deserialization error when I load models. I will appreciate if you let me know how to fix this. This is bit urgent. Awaiting your reply. Thank you. Bala

Which page or section is this issue related to?

@adrianeboyd
Copy link
Contributor

Let's keep this discussion in #13155.

@adrianeboyd adrianeboyd closed this as not planned Won't fix, can't repro, duplicate, stale Nov 28, 2023
@Rcrossmeister
Copy link

I think my suggested answer works: #13155

Copy link
Contributor

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 26, 2024
@svlandeg svlandeg added the duplicate Issues that have been reported before label Jan 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate Issues that have been reported before
Projects
None yet
Development

No branches or pull requests

4 participants