Rapsberry Pi 3 + Kivy installation

1,570 views
Skip to first unread message

Nils Schmidt

unread,
Aug 24, 2016, 5:30:15 PM8/24/16
to Kivy users support
Dear All,

I now spent half a day on this... I have a fresh SD Card with Rasbian Jesse, I updated the System and then followed the instructions for the installation here. I cloned the Github repo but when I compile it there are many errors. When I try to run a Demo it crashed with the missing _clock Module error.

I started over with a fresh system, as I tried too many things. I tried to use the "install" version which was described here... no success either.

I figured out that on the GUI on the Raspberry "_Menu->Preferenes->add/Remove Software" I can also install Kivy 1.8.0 - tried... but I don't know where this went to.

I am a bit depressed... I mean to clone the and compile should work, shouldn't it?

I also gave KivyPie 0.9b a try. But when I try to run a demo there it crashes with the missing clock modul as well...

Any hint would be much appreciated.

Kind regards,
Nils

David Ernstrom

unread,
Aug 26, 2016, 7:52:59 PM8/26/16
to Kivy users support
Nils (et. al.):

I finally got Kivy to install on a fresh Raspberry Pi.  The secrets were found as I dug deeper into other's Raspberry Pi troubles.  The following posts suggested to me that the Kivy group are having some problems playing nicely with the Cython group, namely reverse incompatible changes and such at upgrades.  See the following posts:

All of the above posts suggest reverting to cython==0.20.1.  Additionally, I see the particular line I used to crash on was modified SINCE the previous Kivy package release of 1.9.1, so rather than installing from the Kivy Master branch (as the main tutorial suggests), I installed the branch that corresponded to the version 1.9.1 release.

Essentially all of the above distills down to the following commands with a fresh RPi 3:
sudo apt-get update
sudo apt
-get upgrade
sudo apt
-get install libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev \
 pkg
-config libgl1-mesa-dev libgles2-mesa-dev \
 python
-setuptools libgstreamer1.0-dev git-core \
 gstreamer1
.0-plugins-{bad,base,good,ugly} \
 gstreamer1
.0-{omx,alsa} python-dev
(Note that I stripped off the "cython" from the above command)
sudo pip install cython
==0.20.1
sudo pip install git
+https://github.com/kivy/kivy.git@7e789b2


Cheers,
David

Nils Schmidt

unread,
Sep 3, 2016, 6:22:57 AM9/3/16
to Kivy users support
David,

thanks a lot for your instructions. I will test them now and report back!

Regards,
Nils

mi...@a4marketing.com

unread,
Sep 8, 2016, 4:39:15 AM9/8/16
to Kivy users support
I've tried to follow these instructions and it looks as if it worked however there is no sign of a kivy directory anywhere, if the install goes wrong somewhere and one wants to start again do you have to undo anything before hand or just try again.  I'm a newbie and not a programmer so please take that into account when replying

Kind regards

Mike

David Ernstrom

unread,
Sep 8, 2016, 9:44:37 AM9/8/16
to kivy-...@googlegroups.com
On Thu, Sep 8, 2016 at 2:39 AM, <mi...@a4marketing.com> wrote:
I've tried to follow these instructions and it looks as if it worked however there is no sign of a kivy directory anywhere, if the install goes wrong somewhere and one wants to start again do you have to undo anything before hand or just try again.  I'm a newbie and not a programmer so please take that into account when replying

Kind regards

Mike

kivy ends up at /usr/local/lib/python2.7/dist-packages/kivy

if the install goes wrong, just try again.  The pip installer will overwrite the previous install.

Cheers,
David

California

unread,
Oct 2, 2016, 11:15:08 AM10/2/16
to Kivy users support

Hello, are kivy installlation instructions posted here also valid for RPi2? In installation proces some warnings appeared
On start:
Could not find a tag or branch '7e789b2', assuming commit.

At the end:
     warning: no files found matching '*.txt' under directory 'kivy/tools'
     warning
: no files found matching '*.bat' under directory 'kivy/tools'
     warning
: no files found matching '*.sh' under directory 'kivy/tools'
     warning
: no files found matching '*.pyd' under directory 'kivy'

After running example Hello world nothing happend. Attached photo shows everything.

What am I doing wrong?

Regards




Dne sobota, 03. september 2016 12.22.57 UTC+2 je oseba Nils Schmidt napisala:

David Ernstrom

unread,
Oct 13, 2016, 10:52:02 AM10/13/16
to kivy-...@googlegroups.com
I apologize I missed your email - it ended up in my junk mail.

The first item is a Git warning suggesting that 7e789b2 is assumed as a commit, which is fine because it is.

The others are just warnings and can be ignored.  I also received those during my install, yet things worked fine.

I was running on a Raspberry Pi 3, so can't speak to why your "Hello World" did not work.  The errors you mentioned are not likely the cause, however.  I would verify that your "Hello World" application runs somewhere else and then try it on the Pi.  That would rule out any code problems, which I suspect you have.

Best of luck.

Cheers,
David

--
You received this message because you are subscribed to a topic in the Google Groups "Kivy users support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kivy-users/OSpnIv4a_S4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kivy-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages