Instale o PyVISA no Ubuntu

0

então instalar o pyvisa foi fácil: pip install pyvisa . No entanto, depois de fazer isso (e reinicializar), sempre que tento instanciar um ResourceManager , recebo um erro que se resume a ' Could not open VISA library '. Então eu baixei o .iso de instrumentos nacionais, e eu corri o script INSTALL, mas depois de fazer isso e reiniciar, ainda os mesmos problemas. A saída completa (menos EULA) do script INSTALL é

*****************************************************************************
  NI-VISA for Linux
     version 5.4.1f0 for Linux
*****************************************************************************

National Instruments products support the following Linux distributions:
   openSUSE
   Red Hat Enterprise Linux Desktop + Workstation
   Scientific Linux
Refer to README.txt for the latest information at the time of release.
Refer to www.ni.com/linux for the most recent information about Linux
support at National Instruments.

Continue? [Yn] 

Checking required install tools...
Checking installer tool versions...
rpm        Not found in current path
tar        1.28
Checking dependencies...
glibc      2.23 
Unpacking install files to /tmp/nivisa-5.4.1f0.install...

EULA aqui

NI-VISA for Linux version 5.4.1f0
is about to be installed using rpm at /usr/local/natinst

./INSTALL: line 1515: -q: command not found

Would you like to continue? [Yn] 

Installing NI-VISA for Linux version 5.4.1f0...
Pre Installation .
Post Installation .
./INSTALL: line 419: --showrc: command not found
./INSTALL: line 667: -qp: command not found
./INSTALL: line 667: -qp: command not found
./INSTALL: line 667: -qp: command not found
./INSTALL: line 667: -qp: command not found
./INSTALL: line 667: -qp: command not found
./INSTALL: line 667: -qp: command not found
./INSTALL: line 667: -qp: command not found
./INSTALL: line 667: -qp: command not found
./INSTALL: line 667: -qp: command not found
./INSTALL: line 667: -qp: command not found
./INSTALL: line 667: -qp: command not found
./INSTALL: line 667: -qp: command not found
./INSTALL: line 667: -qp: command not found
./INSTALL: line 667: -qp: command not found
./INSTALL: line 667: -qp: command not found
./INSTALL: line 667: -qp: command not found
./INSTALL: line 667: -qp: command not found
./INSTALL: line 667: -qp: command not found
./INSTALL: line 667: -qp: command not found
./INSTALL: line 667: -qp: command not found
./INSTALL: line 667: -qp: command not found
./INSTALL: line 667: -qp: command not found
./INSTALL: line 667: -qp: command not found
./INSTALL: line 667: -qp: command not found
./INSTALL: line 667: -qp: command not found
./INSTALL: line 667: -qp: command not found
./INSTALL: line 667: -qp: command not found
Pre Installation ...................................
Post Installation ...................................

FOR PATENTS COVERING NATIONAL INSTRUMENTS PRODUCTS, REFER TO
THE PATENTS.txt FILE ON /home/bfieck/Downloads/cd AND/OR
www.ni.com/patents

NI-VISA for Linux Installation completed successfully.

Eu verifiquei o script e parece que os command not found bits estão tentando passar uma opção para rpm , mas estou no ubuntu, então não tenho rpm . Eu até tentei instalá-lo uma vez, o que não consertou nada, então eu revirei isso. Esta biblioteca não é compatível com o Ubuntu?

    
por ocket8888 30.03.2017 / 22:23

0 respostas