On Android, using QPython, when either running Kivy sample code or attempting interactive entry, importing kivy resulted in this error:
uu0_a96@RCT6203W46:/ $ /data/data/com.hipipal.qpyplus/files/bin/qpython.sh && exit
Python 2.7.2 (default, Oct 25 2014, 20:52:15)
[GCC 4.9 20140827 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import kivy
[INFO ] Kivy v1.8.0
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/QPython/core/build/python-install/lib/python2.7/site-packages/kivy/__init__.py", line 254, in <module>
File "/QPython/core/build/python-install/lib/python2.7/UserDict.py", line 23, in __getitem__
KeyError: 'ANDROID_APP_PATH'
I tried adding the key to os.environ
, with the path to the directory containing the .py files with kivy calls, and the import works.