-
Notifications
You must be signed in to change notification settings - Fork 10
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
DLL load failed while importing ziPython #51
Comments
@davguy thank you for reporting this. We indeed already had similar reports and are working on a solution. I have a couple of questions.
|
Hi Tobias, thanks for your quick response!
On closer look, I also can't import zhinst-toolkit: >>> import zhinst.toolkit
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\TUD208555\Anaconda3\envs\SSNL\lib\site-packages\zhinst\toolkit\__init__.py", line 18, in <module>
from zhinst.toolkit.session import PollFlags, Session
File "C:\Users\TUD208555\Anaconda3\envs\SSNL\lib\site-packages\zhinst\toolkit\session.py", line 9, in <module>
import zhinst.toolkit.driver.devices as tk_devices
File "C:\Users\TUD208555\Anaconda3\envs\SSNL\lib\site-packages\zhinst\toolkit\driver\devices\__init__.py", line 4, in <module>
from zhinst.toolkit.driver.devices.base import BaseInstrument
File "C:\Users\TUD208555\Anaconda3\envs\SSNL\lib\site-packages\zhinst\toolkit\driver\devices\base.py", line 16, in <module>
from zhinst.core import __version__ as zhinst_version_str
ImportError: DLL load failed while importing core: The specified procedure could not be found.
```python |
Thanks for the additional information. They seem to confirm my hunch that it is related to a known issue. The problem probably is that we (by mistake) are using a c++ library function in the LabOne Client code that is only support on the latest Windows 10 versions. We already have removed this function call and planing to make a patch release for LabOne 22.08 within 1 to 2 weeks. In the meantime, you either can fallback to LabOne 22.02 or checking if updating your Windows 10 to the latest update solves this issue for you. Sorry for the inconvenience! |
Hi I did both, but it still didn't work. It seems to go wrong with the __init__pyi file in zhinst/core. Any import from there seems to fail. I now just made it a .py file and changed version. So now I can at least import the thing haha. |
Renaming the When you downgraded to 22.02 did you uninstall all zhinst packages ( So I would recommend the following:
Either try:
(for using the old LabOne until the patch) or
for trying it again after the windows update |
Dear Zurich Instruments,
I am not able to import zhinst-qcodes.
This is the computer set-up:
Anaconda
Python 3.10.6
Windows 10
The minimal code to reproduce it for me is:
import zhinst.qcodes
Do you know how I can fix this?
All other package import work, including zhinst.
The traceback given is:
The text was updated successfully, but these errors were encountered: