Help needed installing python packages on BBB

Dear All,

I was not able to install easy_install or python-configobj

root@beaglebone:~# opkg install python-configobj
Unknown package ‘python-configobj’.

root@beaglebone:~# easy_install configobj
-sh: /usr/bin/easy_install: /usr/bin/python-native/python: bad interpreter: No such file or directory

This I do not understand as I have setuptools installed

root@beaglebone:~# opkg list-installed |grep setuptools
python-setuptools - 0.6c11-ml5

and the python-configobj package is listed in the Angstrom distribution
http://www.angstrom-distribution.org/feeds/2011.03/ipk/glibc/armv7a/python/Packages

Package: python-configobj
Version: 4.5.3-r0.6
Depends: python-core
Section: base
Architecture: armv7a
Maintainer: Angstrom Developers <angstrom-distro-devel@linuxtogo.org>
MD5Sum: e99bd9e90ea77ea918a7a4697efc0694
Size: 46636
Filename: python-configobj_4.5.3-r0.6_armv7a.ipk
Description: ConfigObj is a simple but powerful config file reader and writer
OE: python-configobj
HomePage: unknown
Priority: optional

I am certainly missing something. Please help .

Jacques

That is for 2011.03 and what does your /etc/angstrom-version say?

root@beaglebone:~# cat /etc/angstrom-version
Angstrom v2012.12 (Core edition)
Built from branch: danny
Revision: abdca5ed77a803e9eb8fdacd4977956755276c3b
Target system: arm-angstrom-linux-gnueabi

with

root@beaglebone:~# uname -r
3.8.11

Is there anything I can do to solve the problem ?

Jacques

Per package-list for this above edition, at:
http://www.angstrom-distribution.org/feeds/v2012.12/ipk/eglibc/armv7a/python/Packages
it appears python-configobj doesn’t exist. When it does not exist there, does it mean the "opkg … " option is unavailable ?

If so, you may have to pull down the sources for it and compile/install for the bbb’s arch as target.

/venkat

Thanks for this advice,

but this do not explain the problems I have with easy_install

root@beaglebone:~# easy_install
-sh: /usr/bin/easy_install: /usr/bin/python-native/python: bad interpreter: No such file or directory
root@beaglebone:~# cat /usr/bin/easy_install
#!/usr/bin/python-native/python

EASY-INSTALL-ENTRY-SCRIPT: ‘setuptools==0.6c11’,‘console_scripts’,‘easy_install’

requires = ‘setuptools==0.6c11’
import sys
from pkg_resources import load_entry_point

sys.exit(
load_entry_point(‘setuptools==0.6c11’, ‘console_scripts’, ‘easy_install’)()
)
root@beaglebone:~# ls -l /usr/bin/python-native/python
ls: cannot access /usr/bin/python-native/python: No such file or directory

what can I do to solve these ?

Jacques

Do you have python installed? If not, you’ll need to install it. Once installed you’ll need to figure out the path that the python binary was installed to, usually /usr/bin/python. You can figure that out using the which command:

$ which python

Then you’ll need to modify the easy_install script’s first line by replacing /usr/bin/python-native/python with whatever path the python command returned, eg:

#!/usr/bin/python

After that, give it another try.

Thanks Jason,

It seems to work !

Jacques

In fact, this has been corrected in the latest distribution (3.8.12)
and now easy_install work without fiddling with the script.

So it was actually a bug.

Jacques