Riva python client API

The below link was referred for installing python-clients for Riva

While running the below script we are facing error:
python scripts/asr/transcribe_file.py
–input-file data/examples/en-US_AntiBERTa_for_word_boosting_testing.wav
–simulate-realtime
–show-intermediate

Traceback (most recent call last):
File “scripts/asr/transcribe_file.py”, line 6, in
import riva.client
File “/home/ubuntu/nvidia_riva/riva_quickstart_v2.5.0-1/python-clients/riva/client/init.py”, line 4, in
from riva.client.asr import (
File “/home/ubuntu/nvidia_riva/riva_quickstart_v2.5.0-1/python-clients/riva/client/asr.py”, line 15, in
import riva.client.proto.riva_asr_pb2 as rasr
ModuleNotFoundError: No module named ‘riva.client.proto.riva_asr_pb2’

Can you please suggest how to resolve this?

Hi @iamgarimanarang,

Could you please confirm if you are trying to run the script within the conda virtual environment created in step 1:

You can also try below NGC container to avoid system dependencies :

Thanks

Hi Sunil,
Thanks for the response.
Is it required to use conda environment? Can we use python env instead?

Hi @iamgarimanarang

Thanks for your interest in Riva

We recommend using Conda environment,
In current env, we request to run the following command and share us the output
pip list

Thanks

Hi @rvinobha

Tried with conda env as well. Getting the same error.
sharing the result for pip list below:
Package Version


certifi 2022.6.15
charset-normalizer 2.1.1
filelock 3.8.0
grpcio 1.49.1
grpcio-tools 1.49.1
huggingface-hub 0.10.0
idna 3.4
joblib 1.2.0
numpy 1.23.3
nvidia-riva-client 0.0.5
packaging 21.3
pip 22.1.2
protobuf 4.21.7
PyAudio 0.2.11
pyparsing 3.0.9
PyYAML 6.0
regex 2022.9.13
requests 2.28.1
scikit-learn 1.1.2
scipy 1.9.1
setuptools 61.2.0
six 1.16.0
threadpoolctl 3.1.0
tokenizers 0.12.1
tqdm 4.64.1
transformers 4.22.2
typing_extensions 4.3.0
urllib3 1.26.12
wheel 0.37.1

Thanks