Comments (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.
from pybbio.
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:[email protected]]
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) .
from pybbio.
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.
from pybbio.
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.
from pybbio.
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.
from pybbio.
@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).
from pybbio.
@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
)
from pybbio.
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'
from pybbio.
@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/
from pybbio.
Related Issues (20)
- I2C Library
- Unable to use PWM1A and PWM1B at the same time HOT 2
- Analog In not recognized HOT 4
- pwmFrequency int division vs float division
- GPIO resource busy error
- SPI0.write crashes Beagleblone HOT 1
- SPI0.write crashes Beagleblone HOT 1
- Questions about Contributions HOT 1
- Pull-ups, pull-down configuration issue
- GPIO configuration bug HOT 2
- SystemError: NULL result without error in PyObject_Call when testing blink.py
- example blink.py error with beaglebone black HOT 2
- BBIOServer_test.py error HOT 4
- MAX31855_test.py problem HOT 4
- importing bbio causes immediate segfault HOT 8
- WebCam - no module named gst HOT 1
- GPIO does not work after "bbio.pinMode" HOT 3
- no module named WebCam HOT 9
- Problem running PyBBIO ADC code on BBB attached to 4D Systems 4DCAPE HOT 8
- not an issue but a doubt HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pybbio.