installing plyer on Ubuntu 12.04 LTS

734 views
Skip to first unread message

David A

unread,
May 22, 2014, 3:58:41 AM5/22/14
to kivy-...@googlegroups.com
I have downloaded plyer from GitHub, but need some help installing it on Ubuntu. I have Kivy installed, but when I try to import the plyer module into my 'py' file I get 'ImportError: No module named plyer'.

How do I install plyer?

Michael Bonfils

unread,
May 22, 2014, 4:37:50 AM5/22/14
to kivy-...@googlegroups.com
Append parent directory of plyer to sys.path, it should work


2014-05-22 9:58 GMT+02:00 David A <daveswa...@gmail.com>:
I have downloaded plyer from GitHub, but need some help installing it on Ubuntu. I have Kivy installed, but when I try to import the plyer module into my 'py' file I get 'ImportError: No module named plyer'.

How do I install plyer?

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Michael Bonfils ( http://www.murlock.org )

David A

unread,
May 22, 2014, 6:12:36 AM5/22/14
to kivy-...@googlegroups.com
Thank you for that. I am new to linux, and have no experience of appending to sys.path. I would be grateful if you give an example of adding the plyer directory. My plyer directory is in 'home'.

Many thanks.

Ben Rousch

unread,
May 22, 2014, 7:04:09 AM5/22/14
to kivy-...@googlegroups.com

The easiest way to install Plyer system-wide is to run:
sudo pip install git+https://github.com/kivy/plyer.git@master

David A

unread,
May 22, 2014, 7:14:39 AM5/22/14
to kivy-...@googlegroups.com
Thank you for that Ben, works perfectly.

It's a small world, I have just finished working through your 'Kivy - Creating Desktop and Mobile Apps with Python' on YouTube 'https://www.youtube.com/watch?v=8zSNzUAfohA', which is why I required Plyer. Very informative.

I only discovered kivy about 4 days ago, so exiting stuff.

Regards

David

Ben Rousch

unread,
May 22, 2014, 7:45:58 AM5/22/14
to kivy-...@googlegroups.com
I'm glad the talk helped you! Plyer had just been invented before that talk, and there have also been a lot of improvements in buildozer since then. I'm hoping to give a talk about these mobile stack improvements at this year's PyOhio.
Reply all
Reply to author
Forward
0 new messages