Hi All,
I just got my BeagleBone A5 with the latest Angstrom image from 02/14/2012.
I am getting “Unknown Package” when trying to install python-pyserial.
On my Beaglebone running the same image, I installed it with “opkg install python-pyserial”. It’s still in the package list under that name:
root@gigamegabone:# opkg list | grep “pyserial”
python-pyserial - 2.4-ml3 - python-pyserial version 2.4-ml3
However, I did have a similar experience with that package. I just tried installing on the 2012.05 image (i.e. opkg install python-pyserial), and it gave the “unknown package” error. The above grep command couldn’t find it either.
So, I installed python-modules (opkg install python-modules) to see if it was included in there. It wasn’t. But when I ran “opkg install python-pyserial” again, this time the package installed.
So, I don’t know if installing python-modules had anything to do with it, or it’s just that opkg install is somewhat unreliable. (Yes, I ran “opkg update” before doing all of this).
The approaches suggested by Hugh and David are good workarounds – most Python packages can be installed by those methods, and often you’ll get a more up-to-date version that way than by using opkg.
Strangely enough, I rebooted, did opkg update, then opkg list | grep “pyserial” and there it was. I must have run that command half a dozen times last night with nothing returned.
For what it’s worth. I just reflashed my BBB with the production image 09/04/13 Angstrom. When trying to install pyserial I tried opkg install python-pyserial and it did not work, i also tried the pip and easy_install from the pyserial instructions page and i had already installed python-setuptools.
I’m using the angstrom distribution on REV A5C, and I was following the adafruit BBIO installation for using UART. The specified “pip install pyserial” did not work for me.
I succeeded in installing pyserial using “opkg install python-pyserial”.