Skip to content
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

bug: Import module 'visa' not found - release version 1.82.0 #17

Open
Bernard-Connektica opened this issue Jun 11, 2024 · 1 comment
Open

Comments

@Bernard-Connektica
Copy link

Issue Description:
When attempting to build my project with the latest version of RsInstrument (@1.82.0), I encounter an import error related to the visa module:

.venv/lib/python3.11/site-packages/RsInstrument/Internal/Instrument.py", line 8, in <module>
2024-06-11 14:15:54     from visa import VisaIOError
2024-06-11 14:15:54 ModuleNotFoundError: No module named 'visa'

Context:
The error arises from the Instrument.py file within the RsInstrument package. It seems that the latest release relies on the visa module, which is not properly resolved, leading to the ModuleNotFoundError.

Steps to Reproduce:

  1. Install the latest version of RsInstrument (@1.82.0).
  2. Attempt to build the project.
  3. Observe the import error as described above.

Current Workaround:
To circumvent this issue, I've reverted to using a previous release version of RsInstrument (@1.70.0). In this version, the visa module is not utilized in the Instrument.py file. Upon verifying the poetry.lock file, it's evident that the only poetry dependency required is PyVisa.

Expected Behavior:
The latest version of RsInstrument should successfully import the necessary modules without encountering import errors related to the visa module.

Additional Information:
Python version: python 3.10
Operating System: MacOS

This issue is critical for my project's functionality, and any insights or solutions would be greatly appreciated.

Thank you!

@ckutlu
Copy link

ckutlu commented Jun 13, 2024

We also encountered the same issue and also pinned our version to RsInstrument==1.70.0 as a temporary workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants