On Sunday, January 27, 2013 12:50:18 PM UTC-5, jcrmo
...@gmail.com wrote:
> Le mercredi 7 novembre 2012 19:23:32 UTC+1, Alexander Hiam a écrit :
>> Hi all,
>> I've noticed that some recent versions of the BeagleBone Angstrom image
>> are missing the py_compile module. I've run into this myself with the
>> 3.2.30 image (the version with gnome):
>> root@Beaglebone:~# uname -a
>> Linux Beaglebone 3.2.30 #1 Wed Oct 17 09:39:19 CEST 2012 armv7l GNU/Linux
>> >>> import py_compile
>> ImportError: No module named py_compile
>> I confirmed with find that py_compile.py isn't just hiding somewhere
>> besides /usr/lib/python2.7/; it's definitely completely missing. I've also
>> had this reported on the 3.2.14 image:
>> https://github.com/alexanderhiam/PyBBIO/issues/5#issuecomment-9787350 ,
>> but py_compile is on my 3.2.18 image (also the version with gnome), so it's
>> clearly not been an issue on every build since whenever it first came up.
>> I was able to get py_compile from the Python repository:
>> # cd /usr/lib/python2.7
>> # wget
>> http://hg.python.org/cpython/raw-file/4ebe1ede981e/Lib/py_compile.py
>> and it seems to be working now. I also found out that I was missing the
>> pkg_resources module from opkg's python-setuptools package, which I was
>> able to resolve by running the distribute install script to reinstall
>> setuptools:
>> # curl http://python-distribute.org/distribute_setup.py | python
>> I've noticed a few other usually built-in Python modules that aren't
>> included on the BeagleBone (e.g. mmap), which I guess makes since in terms
>> of keeping it small, but I've been able to install them through opkg. This
>> seems more like a broken Python build. Are people seeing this on other
>> Angstrom images?
>> -Alex
> Same problem with pyserial
> .impossible to install with opkg.
> if installed with wget, and try "python setup.py install" py_compile and
> distutils are missing
> .We should all get on the site.http://www.angstrom-distribution.org/repo
> I really prefer to work with Raspberry.
> JC