Git Product home page Git Product logo

Comments (9)

alexanderhiam avatar alexanderhiam commented on July 30, 2024

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.

TheNorm95010 avatar TheNorm95010 commented on July 30, 2024

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) .

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

from pybbio.

alexanderhiam avatar alexanderhiam commented on July 30, 2024

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.

bduhan avatar bduhan commented on July 30, 2024

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.

alexanderhiam avatar alexanderhiam commented on July 30, 2024

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.

Nilloc avatar Nilloc commented on July 30, 2024

@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.

alexanderhiam avatar alexanderhiam commented on July 30, 2024

@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.

james-wang-atx avatar james-wang-atx commented on July 30, 2024

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.

alexanderhiam avatar alexanderhiam commented on July 30, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.