Python Forum
Unable to load kivy examples
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to load kivy examples
#1
Hello. I've been trying to use the kivycatalog example to practice writing .kv files. However, running the main.py file is returning the following:

Error:
[INFO ] [Logger ] Record log in /home/bunny/.kivy/logs/kivy_18-11-11_7.txt [INFO ] [Kivy ] v1.10.1 [INFO ] [Python ] v3.6.5 (default, Apr 1 2018, 05:46:30) [GCC 7.3.0] [INFO ] [Factory ] 194 symbols loaded [INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored) [INFO ] [Text ] Provider: pil(['text_sdl2'] ignored) [INFO ] [Window ] Provider: sdl2(['window_egl_rpi'] ignored) [INFO ] [GL ] Using the "OpenGL" graphics system [INFO ] [GL ] Backend used <gl> [INFO ] [GL ] OpenGL version <b'3.0 Mesa 18.0.5'> [INFO ] [GL ] OpenGL vendor <b'Intel Open Source Technology Center'> [INFO ] [GL ] OpenGL renderer <b'Mesa DRI Intel(R) Bay Trail '> [INFO ] [GL ] OpenGL parsed version: 3, 0 [INFO ] [GL ] Shading version <b'1.30'> [INFO ] [GL ] Texture max size <16384> [INFO ] [GL ] Texture max units <16> [INFO ] [Window ] auto add sdl2 input provider [INFO ] [Window ] virtual keyboard not allowed, single mode, not docked xclip version 0.12 Copyright (C) 2001-2008 Kim Saunders et al. Distributed under the terms of the GNU GPL [INFO ] [Clipboard ] Provider: xclip [INFO ] [CutBuffer ] cut buffer support enabled [INFO ] [VideoGstplayer] Using Gstreamer 1.14.1.0 [INFO ] [Video ] Provider: gstplayer [WARNING] [Image ] Unable to load image </usr/lib/python3/dist-packages/kivy/kivy-master/examples/widgets/cityCC0.mpg> [ERROR ] [Image ] Error loading texture ../../widgets/cityCC0.mpg [INFO ] [GL ] NPOT texture support is available [INFO ] [ProbeSysfs ] device match: /dev/input/event5 [INFO ] [MTD ] Read event from </dev/input/event5> [INFO ] [Base ] Start application main loop [INFO ] [MTD ] </dev/input/event5> range position X is 0 - 4008 [INFO ] [MTD ] </dev/input/event5> range position Y is 0 - 2266 [INFO ] [MTD ] </dev/input/event5> range touch major is 0 - 15 [INFO ] [MTD ] </dev/input/event5> range touch minor is 0 - 15 [INFO ] [MTD ] </dev/input/event5> range pressure is 0 - 255 [INFO ] [MTD ] </dev/input/event5> axes invertion: X is 0, Y is 0 [INFO ] [MTD ] </dev/input/event5> rotation set to 0 [INFO ] [Base ] Leaving application in progress... Traceback (most recent call last): File "main.py", line 192, in <module> KivyCatalogApp().run() File "/usr/lib/python3/dist-packages/kivy/app.py", line 826, in run runTouchApp() File "/usr/lib/python3/dist-packages/kivy/base.py", line 502, in runTouchApp EventLoop.window.mainloop() File "/usr/lib/python3/dist-packages/kivy/core/window/window_sdl2.py", line 727, in mainloop self._mainloop() File "/usr/lib/python3/dist-packages/kivy/core/window/window_sdl2.py", line 460, in _mainloop EventLoop.idle() File "/usr/lib/python3/dist-packages/kivy/base.py", line 337, in idle Clock.tick() File "/usr/lib/python3/dist-packages/kivy/clock.py", line 581, in tick self._process_events() File "kivy/_clock.pyx", line 384, in kivy._clock.CyClockBase._process_events File "kivy/_clock.pyx", line 414, in kivy._clock.CyClockBase._process_events File "kivy/_clock.pyx", line 412, in kivy._clock.CyClockBase._process_events File "kivy/_clock.pyx", line 167, in kivy._clock.ClockEvent.tick File "/usr/lib/python3/dist-packages/kivy/uix/label.py", line 368, in texture_update self._label.texture.bind() File "kivy/graphics/texture.pyx", line 764, in kivy.graphics.texture.Texture.bind File "kivy/graphics/texture.pyx", line 789, in kivy.graphics.texture.Texture.bind File "/usr/lib/python3/dist-packages/kivy/core/text/__init__.py", line 662, in _texture_fill self.render(real=True) File "/usr/lib/python3/dist-packages/kivy/core/text/markup.py", line 123, in render ret = self._render_real() File "/usr/lib/python3/dist-packages/kivy/core/text/__init__.py", line 586, in _render_real self.render_lines(lines, options, self._render_text, y, size) File "/usr/lib/python3/dist-packages/kivy/core/text/markup.py", line 427, in render_lines script_pos = max(0, psp if psp else self.get_descent())


I tried installing gstreamer, etc as was suggested in some discussions, but it did not resolve the problem.

using apt, on trying to get the examples, i was not able to locate the directory, so i downloaded the examples from git-hub manually and placed the folder in /usr/lib/python3/dist-packages/kivy. That is probably why it is not working.
How can i get it to run?

Is there some other way i can reder files like that example does, in order to practice?
Thank you.
Reply


Messages In This Thread
Unable to load kivy examples - by test - Nov-11-2018, 01:05 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Unsolved import App .Unable to import Kivy bharath1991 2 6,057 Aug-15-2017, 02:09 PM
Last Post: bharath1991

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020