Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Python missing py_compile module
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Alexander Hiam  
View profile  
 More options Nov 7 2012, 1:23 pm
From: Alexander Hiam <hiamalexan...@gmail.com>
Date: Wed, 7 Nov 2012 10:23:31 -0800 (PST)
Local: Wed, Nov 7 2012 1:23 pm
Subject: Python missing py_compile module

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jcrmobil...@gmail.com  
View profile  
 More options Jan 27, 12:50 pm
From: jcrmobil...@gmail.com
Date: Sun, 27 Jan 2013 09:50:18 -0800 (PST)
Local: Sun, Jan 27 2013 12:50 pm
Subject: Re: Python missing py_compile module

Le mercredi 7 novembre 2012 19:23:32 UTC+1, Alexander Hiam a écrit :

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

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alexander Hiam  
View profile  
 More options Jan 27, 7:34 pm
From: Alexander Hiam <hiamalexan...@gmail.com>
Date: Sun, 27 Jan 2013 16:34:46 -0800 (PST)
Local: Sun, Jan 27 2013 7:34 pm
Subject: Re: Python missing py_compile module

That's strange, I've had no trouble installing pyserial on any of the
angstrom builds I've run on the Bone. Did you try 'opkg install
python-pyserial' (not just 'pyserial')?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »