[Python-modules-team] Bug#799833: python3-kivy: I can't run kivy example code using python3
Thanathip Limna
boatkrap at gmail.com
Wed Sep 23 04:22:08 UTC 2015
Package: python3-kivy
Version: 1.9.0-3
Severity: important
Dear Maintainer,
I can't run kivy example code using python3, and got errors as below:
python3 test.py
[INFO ] [Logger ] Record log in
/home/boatkrap/.kivy/logs/kivy_15-09-23_7.txt
[INFO ] [Kivy ] v1.9.0
[INFO ] [Python ] v3.4.3+ (default, Jul 28 2015, 13:17:50)
[GCC 4.9.3]
[INFO ] [Factory ] 173 symbols loaded
[INFO ] [Image ] Providers: img_tex, img_dds, img_gif, img_sdl2,
img_pil (img_ffpyplayer ignored)
[INFO ] [Text ] Provider: sdl2
[INFO ] [OSC ] using <multiprocessing> for socket
[INFO ] [Window ] Provider: sdl2(['window_egl_rpi'] ignored)
[CRITICAL] [Window ] Unable to find any valuable Window provider at
all!
egl_rpi - ImportError: cannot import name 'bcm'
File "/usr/lib/python3/dist-packages/kivy/core/__init__.py", line 57, in
core_select_lib
fromlist=[modulename], level=0)
File "/usr/lib/python3/dist-packages/kivy/core/window/window_egl_rpi.py",
line 12, in <module>
from kivy.lib.vidcore_lite import bcm, egl
sdl2 - TypeError: expected bytes, str found
File "/usr/lib/python3/dist-packages/kivy/core/__init__.py", line 65, in
core_select_lib
cls = cls()
File "/usr/lib/python3/dist-packages/kivy/core/window/window_sdl2.py",
line 121, in __init__
super(WindowSDL, self).__init__()
File "/usr/lib/python3/dist-packages/kivy/core/window/__init__.py", line
616, in __init__
self.create_window()
File "/usr/lib/python3/dist-packages/kivy/core/window/window_sdl2.py",
line 171, in create_window
self.fullscreen, resizable, state)
File "kivy/core/window/_window_sdl2.pyx", line 60, in
kivy.core.window._window_sdl2._WindowSDL2Storage.setup_window
(kivy/core/window/_window_sdl2.c:1447)
x11 - ImportError: No module named 'kivy.core.window.window_x11'
File "/usr/lib/python3/dist-packages/kivy/core/__init__.py", line 57, in
core_select_lib
fromlist=[modulename], level=0)
[CRITICAL] [App ] Unable to get a Window, abort.
Exception ignored in: 'kivy.properties.dpi2px'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/kivy/utils.py", line 360, in __get__
retval = self.func(inst)
File "/usr/lib/python3/dist-packages/kivy/metrics.py", line 169, in dpi
EventLoop.ensure_window()
File "/usr/lib/python3/dist-packages/kivy/base.py", line 126, in
ensure_window
sys.exit(1)
SystemExit: 1
[CRITICAL] [App ] Unable to get a Window, abort.
The example code is
----------------------------------------------
from kivy.app import App
from kivy.uix.button import Button
class TestApp(App):
def build(self):
return Button(text='Hello World')
TestApp().run()
------------------------------------------------
I run same code on python 2.7, it worked as well.
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.1.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages python3-kivy depends on:
ii libc6 2.21-0experimental1
ii libgl1-mesa-glx [libgl1] 10.6.8-1
ii libglib2.0-0 2.45.7-1
ii libgstreamer1.0-0 1.5.90-1
ii libsdl2-2.0-0 2.0.2+dfsg1-7
ii libsdl2-image-2.0-0 2.0.0+dfsg-3+b4
ii libsdl2-mixer-2.0-0 2.0.0+dfsg1-5
ii libsdl2-ttf-2.0-0 2.0.12+dfsg1-2
ii python3 3.4.3-5
ii python3-gst-1.0 1.5.2-1
python3-kivy recommends no packages.
python3-kivy suggests no packages.
-- no debconf information
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20150923/98ff018e/attachment-0001.html>
More information about the Python-modules-team
mailing list