Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Running niDAQmx on Opensuse 42.3, OSError: libavahi-client.so.3:

Hi all, 

 

I'm trying to set up a logger on linux with nidaqmx. As only a selection of distros are supported, I decided to use the opensuse:42.3 image. I suppose I followed the instructions, but still I'm getting 

 

OSError: libavahi-client.so.3: cannot open shared object file: No such file or directory

 

Did I miss something? Here's my Dockerfile

 

FROM opensuse:42.3

COPY rpm_OpenSUSE423.rpm /tmp
COPY getpip.py /tmp


RUN rpm -vi /tmp/rpm_OpenSUSE423.rpm
RUN zypper -n update
RUN zypper install -y ni-daqmx
RUN zypper install -y python3
RUN /usr/bin/python3 /tmp/getpip.py \
&& pip install --upgrade pip

COPY requirements /tmp
RUN ln -s /usr/bin/python3 /bin/python \
&& pip install -r /tmp/requirements

 

Thanks for any suggestion!

 

p.s. not sure if this is the right place on the forum

0 Kudos
Message 1 of 3
(2,375 Views)

Hey Appie_user,

 

Have you seen: Troubleshooting Shared Library Errors When Launching LabVIEW on Linux ? It sounds like a similar situation! 

 

There is also a KB on selecting a different directory manually if needed: LV Library or Resource File Error in Linux When Running an Application

 

Let it know how it goes!
Rebecca

0 Kudos
Message 2 of 3
(2,330 Views)

For others trying to work with nidaqmx: I solved the above issue, but couldn't get the docker working. The reason seems to be in .ko (kernel object) files that need to be installed. However, Docker uses the host kernel, and thus the host kernel needs to be changed. This partly eliminates advantages of Docker considering deployment/ platform independence . 

0 Kudos
Message 3 of 3
(2,313 Views)