rm.list_resources() Error -- No handlers could be found for logger "pyvisa-py.usb"
See original GitHub issueHello. I have been messing around with PyVisa-py for a little bit, and although I’ve got it working on my Mac, I cannot seem to get it working on my Linux machine…
I’m currently running Linux with kernel: 4.15.0-33-generic and have installed both pyvisa and pyvisa-py through pip using the instructions shown here: http://python-in-the-lab.blogspot.com/2014/10/communicating-with-instruments-using.html
However, I get the following error when trying to use the list_resources() function:
Python 2.7.12 (default, Dec 4 2017, 14:50:18)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import visa
>>> rm = visa.ResourceManager('@py')
>>> rm.list_resources()
No handlers could be found for logger "pyvisa-py.usb"
libgpib: error locking board mutex!
libgpib: error locking board mutex!
libgpib: error locking board mutex!
libgpib: error locking board mutex!
libgpib: error locking board mutex!
libgpib: error locking board mutex!
libgpib: error locking board mutex!
libgpib: error locking board mutex!
libgpib: error locking board mutex!
libgpib: error locking board mutex!
libgpib: error locking board mutex!
libgpib: error locking board mutex!
libgpib: error locking board mutex!
libgpib: error locking board mutex!
libgpib: error locking board mutex!
libgpib: error locking board mutex!
libgpib: error locking board mutex!
libgpib: error locking board mutex!
libgpib: error locking board mutex!
libgpib: error locking board mutex!
libgpib: error locking board mutex!
libgpib: error locking board mutex!
libgpib: error locking board mutex!
libgpib: error locking board mutex!
libgpib: error locking board mutex!
libgpib: error locking board mutex!
libgpib: error locking board mutex!
libgpib: error locking board mutex!
libgpib: error locking board mutex!
libgpib: error locking board mutex!
libgpib: error locking board mutex!
And I have the following PyVisa info:
Machine Details:
Platform ID: Linux-4.15.0-33-generic-x86_64-with-Ubuntu-16.04-xenial
Processor: x86_64
Python:
Implementation: CPython
Executable: /usr/bin/python
Version: 2.7.12
Compiler: GCC 5.4.0 20160609
Bits: 64bit
Build: Dec 4 2017 14:50:18 (#default)
Unicode: UCS4
PyVISA Version: 1.9.1
Backends:
ni:
Version: 1.9.1 (bundled with PyVISA)
Binary library: Not found
py:
Version: 0.3.0
ASRL INSTR:
Please install PySerial (>=3.0) to use this resource type.
No module named serial
TCPIP INSTR: Available
USB RAW: Available via PyUSB (1.0.2). Backend: libusb1
USB INSTR: Available via PyUSB (1.0.2). Backend: libusb1
GPIB INSTR: Available via Linux GPIB (4.1.0)
TCPIP SOCKET: Available
Any help would be greatly appreciated!
Issue Analytics
- State:
- Created 5 years ago
- Comments:13 (6 by maintainers)
Top Results From Across the Web
No handlers could be found for logger - Stack Overflow
Finally, calling the basicConfig explicitly will resolve the issue. import logging logging.basicConfig() logger = logging.getLogger('logger') ...
Read more >Source code for pyvisa.highlevel
But not all derived class must/will implement all methods. ... this #: time as a ct object created with CFUNCTYPE. handlers = None...
Read more >PYTHON : No handlers could be found for logger - YouTube
PYTHON : No handlers could be found for logger [ Gift : Animated Search Engine : https://www.hows.tech/p/recommended.html ] PYTHON : No ...
Read more >PyVISA-py · PyPI
PyVISA-py is one of such backends. It implements most of the methods for Message Based communication (Serial/USB/GPIB/Ethernet) using Python and some well ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
GitHub code tags, they are the <> on the grey bar in the “Write” tab. My code had carriage returns in it but GitHub rendered it as continuous lines. Also my python code Out[4] should have been rendered on the next line. Makes it hard to clearly convey ideas or comments, if GitHub rearranges things.
Not pyvisa-py’s problem.
It wasn’t clear to me initially, that I had to install both PyUSB and libusb1.
Perhaps you should just add a line (for linux installs) that states one may have to modify udev rules to allow non-root access? http://ask.xmodulo.com/change-usb-device-permission-linux.html has instructions for this.
Hi bdlabitt, where did you add the two lines to? to “/etc/udev/rules.d/”?