Hello
I’m trying to install the required modules through my python only extension for A2F 2023.2.0 as indicated here. I have the extension fully working in Omniverse Code 2022.3.3 so i can confirm that i am able to run the extension successfully and stream audio to Audio 2 Face. The problem is when i try to load the extension in Audio 2 Face.
Required pip packages to be installed for A2F 2023.1
grpcio==1.51.3
numpy==1.22.4
scipy==1.8.1
sounddevice==0.4.2
protobuf==3.17.3
I can verify that protobuf 3.17.3 and grpcio 1.51.3 is already installed on my system and that is the version that is detected in A2F when i use the script editor in A2F.
import google.protobuf
print(google.protobuf.__version__)
import grpc
print(grpc.__version__)
“protobuf==3.17.3” and “grpcio==1.51.3” for my A2F extension.
I i use the above in my .toml file like this
[python.pipapi]
requirements = ["requests", "scipy.io.wavfile", "subprocess", "json", "os", "numpy", "IPython", "nvidia-riva-client", "protobuf==3.17.3", "grpc==1.51.3", "sounddevice==0.4.2"]
use_online_index = true
I get these errors
2024-04-05 07:26:08 [Error] [omni.kit.pipapi.pipapi] Failed to import python module protobuf. Error: No module named 'protobuf'
2024-04-05 07:26:08 [Warning] [omni.kit.pipapi.pipapi] 'protobuf==3.17.3' failed to install.
2024-04-05 07:26:18 [Error] [omni.kit.pipapi.pipapi] Failed to import python module grpcio. Error: No module named 'grpcio'
2024-04-05 07:26:18 [Warning] [omni.kit.pipapi.pipapi] 'grpcio==1.51.3' failed to install.
...
Here are some references from NVIDIA that i’m currently looking at to see if i am doing something wrong:
- https://docs.omniverse.nvidia.com/kit/docs/kit-manual/latest/guide/using_pip_packages.html
- https://docs.omniverse.nvidia.com/kit/docs/omni.kit.pipapi/latest/Overview.html
- Install a New Python Package from PyPI — Omniverse Developer Guide latest documentation
From what i gather i do not need to build the extension since it is a python only extension.
But if i want the extension to load quicker or if i want to publish it i will need to build it.