Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: No module named plyer with android_new as a target #379

Closed
mrhdias opened this issue Jul 18, 2016 · 4 comments
Closed

ImportError: No module named plyer with android_new as a target #379

mrhdias opened this issue Jul 18, 2016 · 4 comments

Comments

@mrhdias
Copy link

mrhdias commented Jul 18, 2016

I am not able to run the apk with "android_new" (new toolchain) as a target but work fine with "android" (old toolchain)

$ buildozer --verbose android_new debug deploy run logcat

buildozer.spec

# (list) Application requirements
# comma seperated e.g. requirements = sqlite3,kivy
requirements = pycrypto, plyer==master, kivy==master

Buildozer output:

07-18 17:03:10.056 4157 4203 I python : [INFO ] [Text ] Provider: sdl2
07-18 17:03:10.100 4157 4203 I python : Traceback (most recent call last):
07-18 17:03:10.101 4157 4203 I python : File "main.py", line 6, in
07-18 17:03:10.102 4157 4203 I python : from libs.pilot.Base import *
07-18 17:03:10.102 4157 4203 I python : File "/data/user/0/com.carvanetworks.pilothostel/$
07-18 17:03:10.103 4157 4203 I python : from plyer import gps
07-18 17:03:10.103 4157 4203 I python : ImportError: No module named plyer
07-18 17:03:10.145 4157 4203 I python : Python for android ended.
07-18 17:03:10.173 4157 4157 V SDL : onPause()
07-18 17:03:10.173 4157 4157 V SDL : nativePause()

@FluxIX
Copy link

FluxIX commented Jul 18, 2016

This sounds more like a Python for Android instead of a buildozer error. I've already filed an issue in the Python for Android project (kivy/python-for-android#840) which pertains to imports, although this specific error may not be related to the defect(s) I have filed the issue for.

@mrhdias
Copy link
Author

mrhdias commented Jul 18, 2016

If I copy the plyer module to the project root, I can run the apk with "android_new" as a target without problems.

cp -r ~/.local/lib/python3.5/site-packages/plyer ~/Work/pilothostel

@yanncarlier
Copy link

nice to see you here :)

@inclement
Copy link
Member

Closing as stale, plyer should currently be working fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants