Closed greyltc closed 6 years ago
I believe that latest master already PR #126. Could you check ?
It doesn't appear to be solved in master:
$ pyvisa-shell -b py
Welcome to the VISA shell. Type help or ? to list commands.
(visa) list
The device has no langid
(visa) exit
Looking at the master branch we only catch NotImplementedError
but not ValueError
. Could you post the full traceback on master and make a PR adding ValueError
if necessary ?
The full traceback is here: https://github.com/pyvisa/pyvisa-py/issues/131#issue-311160018
This should be fixed by https://github.com/pyvisa/pyvisa-py/pull/134
As per https://github.com/pyvisa/pyvisa-py/issues/84, this happens when a user doesn't have full permissions on some USB device. I think it's quite rare that any user besides root has the permissions required for
rm.list_resources()
to complete without error (with USB enabled).Can this easily be changed to fail more gracefully? Maybe throwing a warning for USB devices without the required permissions instead of going down in flames? Might you take a PR from me if I tried to fix this?