Attributeerror: module 'riva' has no attribute 'client'

Hardware - xavier nx
Operating System ubuntu 18.04
Riva Version 2.0.0

Hi nvidia:
I follow the instruction on tutorials:“How do I use Riva ASR APIs with out-of-the box models”. I copy the code to a .py file, but when I run the .py, comes the error:

(venv-riva-tutorials) nvidia@nvidia-desktop:~/riva_tutorial/tutorials$ python
Traceback (most recent call last):
  File "", line 5, in <module>
    import riva.client.asr
  File "/home/nvidia/riva_tutorial/tutorials/venv-riva-tutorials/lib/python3.6/site-packages/riva/client/", line 4, in <module>
    from riva.client.asr import (
  File "/home/nvidia/riva_tutorial/tutorials/venv-riva-tutorials/lib/python3.6/site-packages/riva/client/", line 15, in <module>
    import riva.client.proto.riva_asr_pb2 as rasr
AttributeError: module 'riva' has no attribute 'client'

Can anyone know how to fix it?

Hi @xiangernan

Thanks for your interest in Riva

Can you share with us

  1. the script →
  2. pip packages installed with version, please run below command within virtual environment venv-riva-tutorials
pip list
  1. logs of the Riva server i.e()
docker logs riva-speech

Just a note, We also recommend try with the latest version of Riva in server → 2.3.0