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
I started following the Spacy course. While doing Chapter 1, 2-Getting Started, after I complete the code for the english, german and spanish languages and try to run them, an error is shown for every one of those languages.
Same Traceback for every one of them:
ValueError Traceback (most recent call last)
Cell In[1], line 28
15 __solution__ = blacken("""# Import spaCy
16 import spacy
17
(...)
24 # Print the document text
25 print(doc.text)""")
27 # Import spaCy
---> 28 import spacy
30 # Create the English nlp object
31 nlp = spacy.blank("en")
File /srv/conda/envs/notebook/lib/python3.10/site-packages/spacy/__init__.py:11
8 setup_default_warnings() # noqa: E402
10 # These are imported as part of the API
---> 11 from thinc.api import prefer_gpu, require_gpu, require_cpu # noqa: F401
12 from thinc.api import Config
14 from . import pipeline # noqa: F401
File /srv/conda/envs/notebook/lib/python3.10/site-packages/thinc/api.py:2
1 from .config import Config, registry, ConfigValidationError
----> 2 from .initializers import normal_init, uniform_init, glorot_uniform_init, zero_init
3 from .initializers import configure_normal_init
4 from .loss import CategoricalCrossentropy, L2Distance, CosineDistance
File /srv/conda/envs/notebook/lib/python3.10/site-packages/thinc/initializers.py:4
1 from typing import Callable, cast
2 import numpy
----> 4 from .backends import Ops
5 from .config import registry
6 from .types import FloatsXd, Shape
File /srv/conda/envs/notebook/lib/python3.10/site-packages/thinc/backends/__init__.py:8
5 import threading
7 from .ops import Ops
----> 8 from .cupy_ops import CupyOps, has_cupy
9 from .numpy_ops import NumpyOps
10 from ._cupy_allocators import cupy_tensorflow_allocator, cupy_pytorch_allocator
File /srv/conda/envs/notebook/lib/python3.10/site-packages/thinc/backends/cupy_ops.py:19
17 from .. import registry
18 from .ops import Ops
---> 19 from .numpy_ops import NumpyOps
20 from . import _custom_kernels
21 from ..types import DeviceTypes
File /srv/conda/envs/notebook/lib/python3.10/site-packages/thinc/backends/numpy_ops.pyx:1, in init thinc.backends.numpy_ops()
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
The text was updated successfully, but these errors were encountered:
I started following the Spacy course. While doing Chapter 1, 2-Getting Started, after I complete the code for the english, german and spanish languages and try to run them, an error is shown for every one of those languages.
Same Traceback for every one of them:
The text was updated successfully, but these errors were encountered: