-
Notifications
You must be signed in to change notification settings - Fork 333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NI instruments do not work with Python 3.12 due to nicaiu dependency #1008
Comments
Some relations to #662 , where there is a discussion about the NI drivers. |
#919 Solves this issue since |
Solved by 919 |
Now pymeasure works for the other instruments, but the NI instruments won't work with python 3.12, therefore I reopen this issue. |
I just want to clarify that I am not asserting that the NI instruments don't work, but the code in daqmx.py:
was what was previously preventing 3.12 being able to run pymeasure before. Does |
Also, probably need to add an exception in |
I would like to report success in using PyMeasure with Python 3.12 when I comment out line 59 in
pymeasure\instruments\__init__.py
More specifically, the submodule 'NI' within instruments wants to load
DAQmx
which ends up looking forctypes.windll.nicaiu
which if not installed raises an AttributeError.Running the following:
Full error message
Would this be a good instance of utilizing dynamic imports with the
importlib
module to prevent searching for theinstrumental
package from https://github.com/mabuchilab/Instrumental unless one is specifically importingNIQAQ
frompymeasure.instruments.ni
?The text was updated successfully, but these errors were encountered: