[solved] Installation of Kivy on Mageia 6?

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

[solved] Installation of Kivy on Mageia 6?

Postby mzurhorst » Sep 9th, '17, 18:37

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
Last edited by mzurhorst on Sep 9th, '17, 21:08, edited 1 time in total.
mzurhorst
 
Posts: 21
Joined: Jun 3rd, '11, 20:25
Location: Germany

Re: Installation of Kivy on Mageia 6?

Postby doktor5000 » Sep 9th, '17, 19:11

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
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18018
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Installation of Kivy on Mageia 6?

Postby mzurhorst » Sep 9th, '17, 21:08

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
mzurhorst
 
Posts: 21
Joined: Jun 3rd, '11, 20:25
Location: Germany


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest