From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Can't load nicaiu.dll error

Hello

I'm using python API and couldn't found appropriate board so came here. 😛

 

I have a question about loading nicaiu.dll

Windows 10, python 3.7.6, NIDAQmx 21.8, PyInstaller 4.8

 

In my code,
self.nidaq = ctypes.windll.nicaiu << spits error message as below.

 

File "ctypes\__init__.py", line 434, in __getattr__
File "PyInstaller\loader\pyimod04_ctypes.py", line 79, in __init__

pyimod04_ctypes.install.<locals>.PyInstallerImportError: Failed to load dynlib/dll 'nicaiu'. Most likely this dynlib/dll was not found when the application was frozen.

 

I just installed NIDAQmx and run my code, and it doesn't work for one PC, and it works for the other PC.

One of my friend told me that if somebody used NI module with some PC, nicaiu.dll might remain there even if NIDAQmx is uninstalled, and won't be installed properly later. Is that a possible situation? NIDAQmx was not found in the control panel when I install it on those 2 PCs.
Unfortunately I don't know the history of those PCs.

 

I also look for the way to include dll when I generate executable program, but still it's strange cause exactly same program (generated by PyInstaller) works in one PC and not works in the other one.

 

Please let me know if you have any idea or need further information.

Thank you in advance! 🙂

 

Best,

J.E.Suh 

 

0 Kudos
Message 1 of 1
(1,275 Views)