Page 1 of 1

[solved] Installation of Kivy on Mageia 6?

PostPosted: Sep 9th, '17, 18:37
by mzurhorst
Hello,

I started playing around with the Kivy cross platform GUI toolkit for Python. (https://kivy.org)
Sadly, I am hoping from one distribution to another in Virtualbox because I fail to resolve dependencies and get it properly installed.

I tried following the install instructions from here: https://kivy.org/docs/installation/inst ... linux.html
There is a section "installation in virtual environments", which lists dependencies. I did not really understand why this would be exclusive to virtual environments and tried it with these dependencies, but I was not able to identify all of them successfully.

I also tried "python3 -m pip install kivy" etc.
What I now have is a Python3 installation which accepts imports in the python code, but it fails at runtime. The mess starts with this error message:
Code: Select all
[CRITICAL] [Window      ] Unable to find any valuable Window provider.
egl_rpi - ImportError: cannot import name 'bcm'


Is there anybody who could provide a hint how to get Kivy working in Mageia?

Thanks a lot!

Kind regards,
Marcus

Re: Installation of Kivy on Mageia 6?

PostPosted: Sep 9th, '17, 19:11
by doktor5000
It seems the russian community at least offered kivy for mga5, see e.g. http://mirror.yandex.ru/mirrors/package ... x86_64.rpm
It might be possible to take the src.rpm and adapt it slightly to get it to build on mga6. I've described here viewtopic.php?f=4&t=5530 how to rebuild an src.rpm

Re: Installation of Kivy on Mageia 6?

PostPosted: Sep 9th, '17, 21:08
by mzurhorst
Hi Doktor5000,

thanks for your hint. Even when I solved it differently, this was the key.
I re-checked the dependencies that I have installed one after another. And I found that I have indeed installed "pygame", but I took the version from the repository, which still defaults to Python 2.7.

A brief "sudo python3 -m pip install pygame" installed pygame for Python3, and Kivy scripts are now indeed running flawlessly.

Thanks a lot.

Best regards,
Marcus