KeyError: Kivy when running 'A first App'

179 views
Skip to first unread message

GC Proxy

unread,
Dec 13, 2015, 9:54:17 PM12/13/15
to Kivy users support
I'm getting the following when I run the 'A first app' example:

Error processing line 2 of C:\Python27\lib\site-packages\kivy.deps.glew-0.1.2-py2.7-nspkg.pth:

  Traceback (most recent call last):
    File "C:\Python27\lib\site.py", line 152, in addpackage
      exec line
    File "<string>", line 1, in <module>
  KeyError: 'kivy'

Remainder of file ignored
Error processing line 2 of C:\Python27\lib\site-packages\kivy.deps.gstreamer-0.1.2-py2.7-nspkg.pth:

  Traceback (most recent call last):
    File "C:\Python27\lib\site.py", line 152, in addpackage
      exec line
    File "<string>", line 1, in <module>
  KeyError: 'kivy'

Remainder of file ignored
Error processing line 2 of C:\Python27\lib\site-packages\kivy.deps.sdl2-0.1.2-py2.7-nspkg.pth:

  Traceback (most recent call last):
    File "C:\Python27\lib\site.py", line 152, in addpackage
      exec line
    File "<string>", line 1, in <module>
  KeyError: 'kivy'

Remainder of file ignored

The example used is located here: http://kivy.org/docs/gettingstarted/first_app.html
Now, the does seem to run, I get the window with the label in the center saying Hello World!

However, I don't like the fact that errors are being thrown when I run my code. I'm particularly worried because I had a great deal of difficulty getting Kivy installed and running in the first place. From 'gcc' not working to being unable to generate a wheel file due to an error apparently no ones had according to google results.

Up until it tried to compile a .whl
Then I followed the installation directions here: http://kivy.org/docs/installation/installation-windows.html
including running: 
python -m pip install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew
kivy.deps.gstreamer --allow-external kivy.deps.gstreamer
In the end I ended up doing a python -m pip install of the .whl file found here: http://www.lfd.uci.edu/~gohlke/pythonlibs/#kivy (

Note that the files being complained about were installed according to the second installation instructions.

Whats going on? Why am I getting these errors? Why aren't they preventing the app from running? Am I going to find certain features don't work down the line because of these errors, or be unable to package the game?

More importantly, how do I get rid of them?
ss (2015-12-13 at 07.52.46).png

GC Proxy

unread,
Dec 13, 2015, 9:59:10 PM12/13/15
to Kivy users support
Oh boy. So apparently this error is popping up on any python I attempt to run. Not only that, it pops up when I try to run pip commands!

GC Proxy

unread,
Dec 14, 2015, 1:25:27 AM12/14/15
to Kivy users support
So I did a fresh install and DIDN'T install the dependencies. I don't know how badly that's going to screw me, but for now I'll not touch them until someone can chime in on what to do about this mess.

Paul Ellis

unread,
Dec 18, 2015, 11:47:07 AM12/18/15
to Kivy users support
I am having the identical error. Reinstalled with all dependecies and the error returned.

Alexander Jermelle

unread,
Dec 26, 2015, 5:28:04 PM12/26/15
to Kivy users support
Having the same problem did anyone find a solution?

Alexander Jermelle

unread,
Dec 29, 2015, 9:11:58 AM12/29/15
to Kivy users support
wiped my original install out, installed only the gohlke whl and it works.


On Sunday, December 13, 2015 at 8:54:17 PM UTC-6, GC Proxy wrote:
Reply all
Reply to author
Forward
0 new messages