I tried yum import pyserial yum provides '*serial*' gave me distribution-gpg-keys-copr-1.15-1.el6.noarch : GPG keys for Copr projects Repo : epel Matched from: Filename : /usr/share/distribution-gpg-keys/copr/copr-ifas-pyserial.gpg
python2-ivi-0.14.9-3.el6.noarch : %{sum} Repo : epel Matched from: Filename : /usr/lib/python2.6/site-packages/ivi/interface/pyserial.pyo Filename : /usr/lib/python2.6/site-packages/ivi/interface/pyserial.pyc Filename : /usr/lib/python2.6/site-packages/ivi/interface/pyserial.py
yum install python2-ivi-0.14.9-3.el6.noarch "worked", but didn't help: [hennebry@localhost ~]$ python Python 2.6.6 (r266:84292, Aug 18 2016, 15:13:37) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import pyserial
Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named pyserial
import serial
Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named serial
What happened? How do I get pyerial?
On 2017-11-06, Michael Hennebry hennebry@web.cs.ndsu.nodak.edu wrote:
python2-ivi-0.14.9-3.el6.noarch : %{sum} Repo : epel Matched from: Filename : /usr/lib/python2.6/site-packages/ivi/interface/pyserial.pyo Filename : /usr/lib/python2.6/site-packages/ivi/interface/pyserial.pyc Filename : /usr/lib/python2.6/site-packages/ivi/interface/pyserial.py
Based on the Python IVI readme (http://alexforencich.com/wiki/en/python-ivi/readme), it looks like this library is able to use the actual PySerial library but doesn't provide it. You may need to install that using pip if it's not available in EPEL. The ivi RPM may not provide pyserial because it's not a required library.
You may also just want to search EPEL for serial.py, which is the ultimate name of the PySerial library on disk.
--keith