question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Kivy 1.9.1, ImportError while importing kivy.app.App

See original GitHub issue

Installed fresh Python2.7.10, Kivy1.9.1 (following instructions from kivy.org website) on Windows7 64bit. I’m getting an ImportError when I run this code:

from kivy.app import App
from kivy.uix.button import Button


class ButtonApp(App):

    def build(self):
        return Button(text='TEST')


ButtonApp().run()

Console output:

E:\Python27\python.exe E:/workspace/TEST/test_kivy_1.9.1/main.py
[INFO              ] [Logger      ] Record log in C:\Users\Skerleton\.kivy\logs\kivy_16-01-04_38.txt
[INFO              ] [Kivy        ] v1.9.1
[INFO              ] [Python      ] v2.7.10 (default, May 23 2015, 09:40:32) [MSC v.1500 32 bit (Intel)]
[INFO              ] [Factory     ] 179 symbols loaded
[DEBUG             ] [Cache       ] register <kv.lang> with limit=None, timeout=None
 Traceback (most recent call last):
   File "E:/workspace/TEST/test_kivy_1.9.1/main.py", line 1, in <module>
     from kivy.app import App
   File "E:\Python27\lib\site-packages\kivy\app.py", line 327, in <module>
     from kivy.uix.widget import Widget
   File "E:\Python27\lib\site-packages\kivy\uix\widget.py", line 219, in <module>
     from kivy.graphics import (
   File "E:\Python27\lib\site-packages\kivy\graphics\__init__.py", line 89, in <module>
     from kivy.graphics.instructions import Callback, Canvas, CanvasBase, \
 ImportError: DLL load failed: The specified module could not be found.

Process finished with exit code 1

Kivy installed without issues, except for Gstreamer. This error is reported by another developer on kivy google group

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:26 (17 by maintainers)

github_iconTop GitHub Comments

18reactions
mathamcommented, Jan 5, 2016

The gstreamer problem has been fixed. I also updated all the dependencies so I’d suggest you download them again with python -m pip install --upgrade docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew kivy.deps.gstreamer --extra-index-url https://kivy.org/downloads/packages/simple/ as this may fix your problem. Let us know.

1reaction
Villjoiecommented, May 6, 2019

Install the dependencies (skip gstreamer (~120MB) if not needed, see Kivy’s dependencies):

python -m pip install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew; python -m pip install kivy.deps.gstreamer

Read more comments on GitHub >

github_iconTop Results From Across the Web

Some weird error using Kivy 1.9.1 - python - Stack Overflow
It re-assigns the local variable x within this list comprehension. After this line, x will be the text of whatever the last item...
Read more >
No module named 'kivy.weakmethod' - Google Groups
EXE bundled with pyinstaller fails with ImportError: No module named 'kivy.weakmethod'. 870 views. Skip to first unread message.
Read more >
Kivy 1.11.1 documentation
For example, you can start your application code like this:: import kivy kivy.require('1.0.1') If a user attempts to run your application with a...
Read more >
Kivy Documentation - Read the Docs
of applications equipped with novel user interfaces, ... You should be able to import kivy in Python or, if you installed the.
Read more >
Kivy Error (RESOLVED) - 5 Minute Solution - YouTube
Watch this quick tutorial if you're running into errors trying to run your first program with Kivy. This should resolve the following error ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found