pyvisa / pyvisa-py

A pure python PyVISA backend
https://pyvisa-py.readthedocs.io
MIT License
282 stars 120 forks source link

pyvisa-py not linking with linux-gpib #254

Open kdkirmse opened 4 years ago

kdkirmse commented 4 years ago

It looks like I have some form of library incompatibility between pyvisa-py and linux-gpib. I cannot get pyvisa-py to use linux-gpib

I have installed linux-gpib 4.3.3 R1916

python3 -m visa info output

Machine Details: Platform ID: Linux-4.19.118-v7l+-armv7l-with-debian-10.4 Processor:

Python: Implementation: CPython Executable: /usr/bin/python3 Version: 3.7.3 Compiler: GCC 8.3.0 Bits: 32bit Build: Dec 20 2019 18:57:59 (#default) Unicode: UCS4

PyVISA Version: 1.10.1

Backends: ni: Version: 1.10.1 (bundled with PyVISA)

1: /usr/lib/arm-linux-gnueabihf/libvisa.so.0.0.0:

     found by: auto
     bitness: 32
     Could not get more info:
        VI_ERROR_NSUP_ATTR (-1073807331): The specified attribute is not defined or supported by the referenced object.

py: Version: 0.4.1 ASRL INSTR: Available via PySerial (3.4) USB INSTR: Available via PyUSB (1.0.2). Backend: libusb1 USB RAW: Available via PyUSB (1.0.2). Backend: libusb1 TCPIP INSTR: Available TCPIP SOCKET: Available GPIB INSTR: Please install linux-gpib (Linux) or gpib-ctypes (Windows, Linux) to use this resource type. Note that installing gpib-ctypes will give you access to a broader range of funcionality. cannot import name 'GpibError' from 'Gpib' (/usr/local/lib/python3.7/dist-packages/Gpib.py)

MatthieuDartiailh commented 4 years ago

This is is a bug in pyvisa-py that has been resolved on master.