nvidia-riva / python-clients

Riva Python client API and CLI utils
MIT License
62 stars 20 forks source link

AttributeError: Enum AudioEncoding has no value defined for name 'OGGOPUS' #36

Closed ai-nikolai closed 1 year ago

ai-nikolai commented 1 year ago

nvidia-riva-client==2.8.0

When calling:

import riva.client
riva.client.AudioEncoding.OGGOPUS

We get the following error: AttributeError: Enum AudioEncoding has no value defined for name 'OGGOPUS'

However, your latest .proto files in common have this option available: https://github.com/nvidia-riva/common/blob/main/riva/proto/riva_audio.proto

Please clarify which options are available for which models and api and client versions, etc. Thank you.

PeganovAnton commented 1 year ago

Hi @ai-nikolai ! Sorry for the long reply. Now it is fixed in main branch. To install from source

git clone https://github.com/nvidia-riva/python-clients.git riva-python-clients
cd riva-python-clients
git submodule init
git submodule update --remote --recursive
# create and activate your conda environment
python -m pip install -r requirements.txt
python setup.py bdist_wheel
python -m pip install --force-reinstall dist/*.whl
virajkarandikar commented 1 year ago

Closing this. Please reopen if required.

ai-nikolai commented 1 year ago

@PeganovAnton thanks a lot for the reply. I must have missed the previous notification as well, sorry about that.

Thanks for the swift fix.