Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No module named distutils.core #9

Closed
TheNorm95010 opened this issue Aug 8, 2012 · 9 comments
Closed

No module named distutils.core #9

TheNorm95010 opened this issue Aug 8, 2012 · 9 comments

Comments

@TheNorm95010
Copy link

I'm struggling with this whole unix python beaglebone thing so please forgive what must be a stupid question...

When I attempt to install your code I get the above error.
I see a note regarding distutils.core but do not understand how to correct the problem. Has the fix not been incorporated into the release? How do I fix it?

@alexanderhiam
Copy link
Member

Not a stupid question at all, I had left one dependency out of the install instructions (fixed now).

Do:

# opkg install python-distutils

Then give it another try. Let me know how it goes.

@TheNorm95010
Copy link
Author

Oops. More trouble.

Traceback (most recent call last):

File "/tmp/tmpWpqQm5.py", line 10, in

direct=1)

File "/usr/lib/python2.7/distutils/util.py", line 527, in byte_compile

from py_compile import compile

ImportError: No module named py_compile

From: Alexander Hiam [mailto:notifications@github.com]
Sent: Wednesday, August 08, 2012 3:39 PM
To: alexanderhiam/PyBBIO
Cc: Norm Lane
Subject: Re: [PyBBIO] No module named distutils.core (#9)

Not a stupid question at all, I had left one dependency out of the install instructions (fixed now).

Do:

opkg install python-distutils

Then give it another try. Let me know how it goes.


Reply to this email directly or view it on GitHub #9 (comment) .

https://github.com/notifications/beacon/GCqQP0eG4WyMLOEiJ9eIuJns5Oj2RyDuvbgfvQBOcTNbMXeU5MT_NV77JPunUd88.gif

@alexanderhiam
Copy link
Member

Hmm, it seems there's some version issues with distutils. First it would be great if you could post the output of:

# uname -rv

and

>>> import distutils
>>> print distutils.__version__

Then make sure you have the latest PyBBIO and install with the '-f' flag to bypass distutils:

# cd ~/PyBBIO
# git pull
# python setup.py -f install

That should hopefully do the trick.

@bduhan
Copy link

bduhan commented Sep 4, 2012

I just opened a new BeagleBone and have the same problem after updating and upgrading with opkg. PyBBIO works if you force install.

Here is the info you asked for:

# uname -rv
3.2.28 #1 Thu Aug 30 10:18:55 CEST 2012
# opkg list | grep distutils
python-distutils - 2.7.2-r3.17 - python version 2.7.2-r3.17
python-distutils-staticdev - 2.7.2-r3.17 - python version 2.7.2-r3.17
# python
Python 2.7.2 (default, Apr 27 2012, 09:45:45) 
[GCC 4.5.4 20120305 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import distutils
>>> distutils.__version__
'2.7.2'

Per the serial number, this unit was manufactured in the 30th week of 2012.

@alexanderhiam
Copy link
Member

Thanks, and I'm glad to hear the force install worked. I may just abandon distutils; it's not the best fit anyway, as PyBBIO is more of a 'programming environment' than a Python module.

@Nilloc
Copy link

Nilloc commented Feb 10, 2014

@bduhan could you post your force install directions for PyBBIO?

I'm getting the same install errors as @TheNorm95010 (though I'm on newer hardware (Python 2.7.3 and distutils 2.7.3).

@alexanderhiam
Copy link
Member

@Nilloc just add the -f flag, i.e.:

# python setup.py -f install

Are you on a BeagleBone Black or original BeagleBone? What kernel version are you running? (# uname -rv)

@james-wang-atx
Copy link

root@beaglebone:~/pexpect/pexpect-2.3# opkg install python-distutils
Installing python-distutils (2.7.3-r0.3.7) to root...
Downloading http://feeds.angstrom-distribution.org/feeds/v2012.12/ipk/eglibc/armv7a-vfp-neon/python/python-distutils_2.7.3-r0.3.7_armv7a-vfp-neon.ipk.
wget: bad address 'feeds.angstrom-distribution.org'

@alexanderhiam
Copy link
Member

@james-wang-atx looks like you probably have an old image, I don't think the old Angstrom images are really being maintained so opkg repos may break and disappear. I'd recommend flashing the new Debian image from http://beagleboard.org/latest-images/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants