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 xiang.py
Traceback (most recent call last):
  File "xiang.py", line 5, in <module>
    import riva.client.asr
  File "/home/nvidia/riva_tutorial/tutorials/venv-riva-tutorials/lib/python3.6/site-packages/riva/client/__init__.py", 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/asr.py", 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 → xiang.py
  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
https://docs.nvidia.com/deeplearning/riva/user-guide/docs/quick-start-guide.html

Thanks