explosion / spaCy

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

[Pytest Failure]- Import error failed to import .pyb, .pyc,.pyx file #12248

Closed swagaths1 closed 1 year ago

swagaths1 commented 1 year ago

Not able to run any pytest facing the following error E ModuleNotFoundError: No module named 'spacy.pipeline.pipe' Basically its not able to find and .pyx, .pyb, .pxd files.

pytest -v test_architectures.py ImportError while loading conftest '/Users/swagath/Documents/GitHub/spaCy/spacy/tests/conftest.py'. ../init.py:14: in from . import pipeline # noqa: F401 ../pipeline/init.py:1: in from .attributeruler import AttributeRuler ../pipeline/attributeruler.py:6: in from .pipe import Pipe E ModuleNotFoundError: No module named 'spacy.pipeline.pipe'

Steps to Reproduce:

step1: go to test case folder of spacy cd spaCy/spacy/tests step2: run any pytest eg: pytest -v test_architectures.py

rmitsch commented 1 year ago

It seems like this is an installation issue and not an issue with spaCy per se, so I'll move this to discussions.