AI4Bharat / indicTrans

indicTranslate v1 - Machine Translation for 11 Indic languages. For latest v2, check: https://github.com/AI4Bharat/IndicTrans2
https://ai4bharat.iitm.ac.in/indic-trans
MIT License
119 stars 31 forks source link

TypeError: Descriptors cannot not be created directly while importing indicTrans #37

Closed AbhijitManepatil closed 2 years ago

AbhijitManepatil commented 2 years ago

While referring to the jupyter notebook here

from indicTrans.inference.engine import Model

will get the following issue

TypeError: Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
 1. Downgrade the protobuf package to 3.20.x or lower.
 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

may I know possible solution for this issue, Thanks

gowtham1997 commented 2 years ago

image I just reran the colab notebook and it was working as expected.

Perhaps, there was some change 3 days ago in fairseq that could've caused this, but looks like its fixed now.

Please reopen the issue if you are still facing errors

AbhijitManepatil commented 2 years ago

image I just reran the colab notebook and it was working as expected.

Perhaps, there was some change 3 days ago in fairseq that could've caused this, but looks like its fixed now.

Please reopen the issue if you are still facing errors

Thanks resolved now.