Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 555130 - dev-python/Kivy 1.9.0 unable to find Window provider, bogus dependencies in ebuild
Summary: dev-python/Kivy 1.9.0 unable to find Window provider, bogus dependencies in e...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sławek Lis (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-17 01:12 UTC by Brendan Jurd
Modified: 2015-07-18 09:12 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brendan Jurd 2015-07-17 01:12:53 UTC
After installing Kivy for the first time, I created and attempted to run the basic "first app" tutorial program, and got the following error:

8<---
[INFO   ] [Logger      ] Record log in /home/brendan.jurd/.kivy/logs/kivy_15-07-17_1.txt
[INFO   ] [Kivy        ] v1.9.0
[INFO   ] [Python      ] v2.7.9 (default, Mar 11 2015, 14:56:33) 
[GCC 4.8.3]
[INFO   ] [Factory     ] 173 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_gif, img_pil (img_pygame, img_ffpyplayer ignored)
[INFO   ] [Text        ] Provider: pil(['text_pygame'] ignored)
[CRITICAL] [Window      ] Unable to find any valuable Window provider at all!
egl_rpi - ImportError: cannot import name bcm
  File "/usr/lib64/python2.7/site-packages/kivy/core/__init__.py", line 57, in core_select_lib
    fromlist=[modulename], level=0)
  File "/usr/lib64/python2.7/site-packages/kivy/core/window/window_egl_rpi.py", line 12, in <module>
    from kivy.lib.vidcore_lite import bcm, egl

pygame - ImportError: No module named pygame
  File "/usr/lib64/python2.7/site-packages/kivy/core/__init__.py", line 57, in core_select_lib
    fromlist=[modulename], level=0)
  File "/usr/lib64/python2.7/site-packages/kivy/core/window/window_pygame.py", line 8, in <module>
    import pygame

x11 - ImportError: No module named window_x11
  File "/usr/lib64/python2.7/site-packages/kivy/core/__init__.py", line 57, in core_select_lib
    fromlist=[modulename], level=0)

[CRITICAL] [App         ] Unable to get a Window, abort.
 Exception SystemExit: 1 in 'kivy.properties.dpi2px' ignored
[CRITICAL] [App         ] Unable to get a Window, abort.
8<---

I had a look at the dependencies in the .ebuild, and they don't make a lot of sense:

RDEPEND="
	dev-python/pygame[${PYTHON_USEDEP}]
	virtual/python-imaging[${PYTHON_USEDEP}]
	cairo? ( dev-python/pycairo[${PYTHON_USEDEP}] )
	camera? ( media-libs/opencv )
	garden? ( dev-python/kivy-garden[${PYTHON_USEDEP}] )
	gstreamer? ( dev-python/gst-python:1.0[${PYTHON_USEDEP}] )
	spell? ( dev-python/pyenchant[${PYTHON_USEDEP}] )
	"
RDEPEND="${DEPEND}
	<dev-python/cython-0.22[${PYTHON_USEDEP}]
	dev-python/setuptools[${PYTHON_USEDEP}]
"

I'm no expert in writing ebuilds, but declaring RDEPEND and then immediately replacing it is probably not intentional.  It looks like the author meant for the first RDEPEND to be a DEPEND, although I think that wouldn't be quite right either, since pygame is a runtime dependency.

After installing dev-python/pygame, my app ran no problems.
Comment 1 Pacho Ramos gentoo-dev 2015-07-18 09:12:57 UTC
+  18 Jul 2015; Pacho Ramos <pacho@gentoo.org> Kivy-1.9.0.ebuild:
+  Fix typo in dependencies (#555130 by Brendan Jurd)
+