Any good link with instruction on how to install cherrypy to beaglebone black?

353 views
Skip to first unread message

Ardit Cuka

unread,
Jul 28, 2014, 2:05:32 PM7/28/14
to cherryp...@googlegroups.com
I fallowed this steps:
opkg install python-mmap
opkg install python-distutils
opkg install  python-compile
wget http://download.cherrypy.org/cherrypy/3.2.2/CherryPy-3.2.2.tar.gz
tar xzf CherryPy-3.2.2.tar.gz
cd CherryPy-3.2.2
python setup.py install
The error i get:
root@beaglebone:~/CherryPy-3.2.2# python setup.py install                       
Traceback (most recent call last):
  File "setup.py", line 12, in <module>
    from distutils.core import setup
  File "/usr/lib/python2.7/distutils/core.py", line 20, in <module>
    from distutils.dist import Distribution
  File "/usr/lib/python2.7/distutils/dist.py", line 10, in <module>
    from email import message_from_file
ImportError: No module named email


Joel Rivera

unread,
Jul 28, 2014, 2:37:41 PM7/28/14
to cherryp...@googlegroups.com
The problem is not specifically related to cherrypy, but to the way
that python is shipped on the opkg repositories for the Ångström
distribution. Basically python is split in different sub-packages.

In short, do:

opkg install python-email

and then do the python setup.py install.

Regards.
--
Rivera²

Ardit Cuka

unread,
Jul 28, 2014, 3:24:23 PM7/28/14
to cherryp...@googlegroups.com
Thank you, that fixed that problem.
But now i need to import a couple of libraries like Adafruit_BBIO, serial,...
whenever i do: opkg install Adafruit_BBIO
Unknown package 'Adafruit_BBIO'.       i get this!
And when I try: pip install Adafruit_BBIO
Downloading/unpacking Adafruit-BBIO
  Could not fetch URL https://pypi.python.org/simple/Adafruit_BBIO/: There was a problem confirming the ssl certificate: <urlopen error [Errno 1] _ssl.c:504: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed>
  Will skip URL https://pypi.python.org/simple/Adafruit_BBIO/ when looking for download links for Adafruit-BBIO
  Could not fetch URL https://pypi.python.org/simple/: There was a problem confirming the ssl certificate: <urlopen error [Errno 1] _ssl.c:504: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed>
  Will skip URL https://pypi.python.org/simple/ when looking for download links for Adafruit-BBIO
  Cannot fetch index base URL https://pypi.python.org/simple/
  Could not fetch URL https://pypi.python.org/simple/Adafruit_BBIO/: There was a problem confirming the ssl certificate: <urlopen error [Errno 1] _ssl.c:504: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed>
  Will skip URL https://pypi.python.org/simple/Adafruit_BBIO/ when looking for download links for Adafruit-BBIO
  Could not find any downloads that satisfy the requirement Adafruit-BBIO
No distributions at all found for Adafruit-BBIO
Storing complete log in /home/root/.pip/pip.log
 I get this!
 Do you know how to install this libraries correctly?
Thank you!

Joel Rivera

unread,
Jul 28, 2014, 3:39:11 PM7/28/14
to cherryp...@googlegroups.com
Make sure that you have the ssl certificates:

opkg install ca-certificates

The clock is on time:

ntpdate -b -s -u pool.ntp.org

And then do do:

pip install Adafruit_BBIO

If the problem persist maybe this could help you on the ssl errors.

https://groups.google.com/forum/#!msg/beagleboard/aSlPCNYcVjw/jneydhfHHZsJ


Regards.

On Mon, 28 Jul 2014 12:24:23 -0700 (PDT)
--
Rivera²
Reply all
Reply to author
Forward
0 new messages