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

The visa module provided by PyVISA is being deprecated #5

Open
philippjenke opened this issue Mar 10, 2021 · 2 comments
Open

The visa module provided by PyVISA is being deprecated #5

philippjenke opened this issue Mar 10, 2021 · 2 comments

Comments

@philippjenke
Copy link

Hello,

I'm running with python 3.8 some Thorlabs motors. It's working fine so far. Thanks a lot for the amazing code!
Unfortunately, the following warning always appears when initializing the motor:

FutureWarning: The visa module provided by PyVISA is being deprecated. You can replace import visa by import pyvisa as visa to achieve the same effect.

I figured out that in the file pylablib/aux_libs/core/devio/backend.py is still using the visa package instead of the pyvisa one. Changing the visa to pyvisa fix the issue. I would be happy about this adjustment in the next version.

Thanks a lot

Best,
Philipp

@AlexShkarin
Copy link
Owner

Dear Philipp,

I'm glad that the library works fine for you!
Thank you for pointing out the issue. You are correct, backend.py still uses import visa for pyvisa package. It will be fixed it in the next release of the library.

Sincerely,
Alexey.

@philippjenke
Copy link
Author

Dear Alexey,

Thank you for your effort and help.
Have a nice day.

Philipp

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