简体   繁体   English

Kivy ImportError:没有名为android.runnable的模块

[英]Kivy ImportError: No module named android.runnable

I was trying kivy google-maps implementation from https://github.com/tito/kivy-gmaps . 我正在尝试从https://github.com/tito/kivy-gmaps进行 kivy google-maps实现。 But when I execute main.py, I'm gettting error says 但是当我执行main.py时,我得到错误提示

ImportError: No module named android.runnable

How do I can install the module android.runnable in my Ubuntu 14.04 running Python2.7.6 ? 如何在运行Python2.7.6的Ubuntu 14.04中安装模块android.runnable?

You cannot run this directly on Ubuntu, the android module works only on android - its purpose is to interact with parts of the android api. 您不能直接在Ubuntu上运行它,android模块仅在android上起作用-其目的是与android api的各个部分进行交互。

Following the other answer, it exists in python-for-android, but only so it can be compiled into apks. 在其他答案之后,它存在于python-for-android中,但只有这样才能将其编译为apks。

Kivy-gmaps cannot run on anything but android anyway because it works by using a native android maps widget. Kivy-gmaps只能在android上运行,因为它可以通过使用本机android maps小部件运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM