question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

visa.ResourceManager() got function 'viOpen' not found in Windows

See original GitHub issue

Now we use pyvisa to load the visa library in Windows.

But when we call visa.ResourceManager() or visa.ResourceManager(r'C:\Windows\System32\visa32.dll'), it throws exception of “AttributeError: function ‘viOpen’ not found”.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:25 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
MatthieuDartiailhcommented, Sep 24, 2020

That looks like an issue related to the new dll mechanism access on Python 3.8. However I have a windows system running 3.8 and Keysight with no issue. It may still be an installation issue though. If you do not want to re-install you can try to use os.add_dll_directory to add the Keyisght directory found under Program files.

0reactions
MatthieuDartiailhcommented, Jan 14, 2021

Happy I could help. I will try to keep in mind that I could clarify the docs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - pyvisa, function viOpen not found - Stack Overflow
When I run in 32 bit python, import pyvisa rm = pyvisa.ResourceManager().
Read more >
Miscellaneous questions — PyVISA 1.12.1.dev43+g37c774d ...
OSError : Could not open VISA library: function 'viOpen' not found . Starting with Python 3.8, the .dll load behavior has changed...
Read more >
viOpen - NI - National Instruments
A code library required by VISA could not be located or loaded. ... The viOpen() operation opens a session to the specified resource....
Read more >
Agilent VISA User's Guide for IO Libraries Suite 15.5 - UBC ECE
This function will initialize the default resource manager and return a pointer to that resource manager session. viOpen. This function establishes a ...
Read more >
Agilent IO Libraries Installation and Configuration Guide for ...
Agilent Technologies shall not be liable for any errors contained in this ... Since VISA and SICL are different libraries, using VISA functions...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found