Discussions
ImportError: cannot import name 'cygrpc' from 'grpc._cython'
over 1 year ago by Nicholas Boni(edited)
I'm seeing the following error in my Formant agent logs:
ERROR Media encoder: python3 uncaught exception
5月 17 16:06:51 formant-agent[5837]: Traceback (most recent call last):
5月 17 16:06:51 formant-agent[5837]: File "/usr/lib/formant/agent/media_encoder_main.py", line 16, in <module>
5月 17 16:06:51 formant-agent[5837]: from media_encoder.media_encoder import ( # noqa: E402
5月 17 16:06:51 formant-agent[5837]: File "/usr/lib/formant/agent/media_encoder/media_encoder.py", line 6, in <module>
5月 17 16:06:51 formant-agent[5837]: import grpc
5月 17 16:06:51 formant-agent[5837]: File "/usr/lib/formant/agent/dist-packages/grpc/__init__.py", line 23, in <module>
5月 17 16:06:51 formant-agent[5837]: from grpc._cython import cygrpc as _cygrpc
5月 17 16:06:51 formant-agent[5837]: ImportError: cannot import name 'cygrpc' from 'grpc._cython' (/usr/lib/formant/agent/dist-packages/grpc/_cython/__init__.py)