I tried pip installing the
prodigy==1.10.6 on my local machine. The package installs properly, however, I am getting the following Traceback:
>>> import prodigy Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/archie/prodigy/venv/lib/python3.8/site-packages/prodigy/__init__.py", line 7, in <module> from . import recipes File "/home/archie/prodigy/venv/lib/python3.8/site-packages/prodigy/recipes/__init__.py", line 4, in <module> from ..deprecated import recipes # noqa File "/home/archie/prodigy/venv/lib/python3.8/site-packages/prodigy/deprecated/recipes.py", line 9, in <module> from ..core import recipe File "cython_src/prodigy/core.pyx", line 12, in init prodigy.core File "cython_src/prodigy/components/feeds.pyx", line 8, in init prodigy.components.feeds File "/home/archie/prodigy/venv/lib/python3.8/site-packages/prodigy/components/validate.py", line 5, in <module> from ..types import TextTask, ClassificationTask, ImageTask, SpansTask, SpansManualTask File "/home/archie/prodigy/venv/lib/python3.8/site-packages/prodigy/types.py", line 3, in <module> from pydantic import validator, BaseModel, Field, Schema ImportError: cannot import name 'Schema' from 'pydantic' (/home/archie/prodigy/venv/lib/python3.8/site-packages/pydantic/__init__.cpython-38-x86_64-linux-gnu.so)
It appears that prodigy breaks when
pydantic>=1.8. This is because the
pydantic.fields.Schema was deprecated in version 1.8 in favor of
Short term solution was to pip install
pydantic==1.7. But I thought it would be good to give you a heads up before the next release.
This is the very first time I have ever dealt with a bug in any of your projects. Keep up the awesome work!