I am trying to run DeepPavlov from github source:
I run it inside an “env” as described in the README.
The first problem was a missing dependency, but I could fix this by running
pip install aio-pika
but now I receive the following Import error when running
python -m deeppavlov train deeppavlov/configs/faq/tfidf_logreg_en_faq.json
File “/Users/foobar/src/DeepPavlov/deeppavlov/utils/server/init.py”, line 1, in
from .server import get_server_params, get_ssl_params, redirect_root_to_docs, start_model_server
File “/Users/foobar/src/DeepPavlov/deeppavlov/utils/server/server.py”, line 26, in
from pydantic.fields import Field, ModelField
ImportError: cannot import name ‘ModelField’ from ‘pydantic.fields’ (/Users/foobar/src//DeepPavlov/env/lib/python3.7/site-packages/pydantic/fields.py)
Any idea what I might be doing wrong?
I am not a python programmer, so any help is very much appreciated