/home/nikongen/.venv/bin/python /home/nikongen/test/nidaq/test.py
Traceback (most recent call last):
File "/home/nikongen/test/nidaq/test.py", line 31, in <module>
nidaqmx.system.system.System.remote(grpc_options=grpc_options)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/nikongen/.venv/lib/python3.13/site-packages/nidaqmx/system/system.py", line 62, in remote
return System(grpc_options)
File "/home/nikongen/.venv/lib/python3.13/site-packages/nidaqmx/system/system.py", line 44, in __init__
self._interpreter = utils._select_interpreter(grpc_options)
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
File "/home/nikongen/.venv/lib/python3.13/site-packages/nidaqmx/utils.py", line 209, in _select_interpreter
from nidaqmx._grpc_interpreter import GrpcStubInterpreter
File "/home/nikongen/.venv/lib/python3.13/site-packages/nidaqmx/_grpc_interpreter.py", line 18, in <module>
from nidaqmx._stubs import nidaqmx_pb2 as grpc_types
File "/home/nikongen/.venv/lib/python3.13/site-packages/nidaqmx/_stubs/nidaqmx_pb2.py", line 14, in <module>
import session_pb2 as session__pb2
ModuleNotFoundError: No module named 'session_pb2'
Bug Report
I found grpc_session options in the docs and was trying to use it. I also used this example as reference.
Repro or Code Sample
Expected Behavior
Connect to the gRPC server a run tasks there.
I can connect to the gRPC server if I build a client like described and run e.g. this example. However using the package from pypi is better to maintain.
Current Behavior
Error Message: ModuleNotFoundError: No module named 'session_pb2'
Possible Solution
session_pb2.pyandsession_pb2.pyitonidaqmx._stubsContext
I want to add a PCIe-6323 to our existing experiment control. The card is installed in a dedicated computer running Ubuntu 24.04 with a gRPC server.
Your Environment
nidaqmx-pythonversion: tested 1.3.0 and 1.4.0AB#3709129