Trying to Install Kivy + Python for Android to eventually make Android Mobile Apps

296 views
Skip to first unread message

Redbird90

unread,
Mar 26, 2014, 2:31:44 PM3/26/14
to python-...@googlegroups.com
I have installed Kivy, cloned python for android from github, but when I try to run one of the kivy android examples, specifically the compass, I receive this error:

botstrapping Kivy @ C:\Kivy\
Setting Environment Variables:
#################################
GST_REGISTRY
C:\Kivy\gstreamer\registry.bin
---------------
GST_PLUGIN_PATH:
C:\Kivy\gstreamer\lib\gstreamer-1.0
---------------
PATH:
C:\Kivy\;C:\Kivy\Python27;C:\Kivy\tools;C:\Kivy\Python27\Scripts;C:\Kivy\gstream
er\bin;C:\Kivy\MinGW\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;
C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x8
6)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Intel\iCLS
Client\;C:\Program Files\Intel\iCLS Client\;C:\windows\system32;C:\windows;C:\wi
ndows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files
\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R)
 Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Manageme
nt Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine
 Components\IPT;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program F
iles (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\Intel\WiFi\bin\;C:\Prog
ram Files\Common Files\Intel\WirelessCommon\;C:\Program Files\Diskeeper Corporat
ion\ExpressCache\;C:\Program Files (x86)\Windows Live\Shared;C:\Kivy;C:\Kivy\Pyt
hon27;C:\Kivy\Python27\Scripts;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Pro
gram Files (x86)\Java\jdk1.8.0\jre\bin\server;C:\Kivy\pyjnius\docs
----------------------------------
PYTHONPATH:
C:\Kivy\kivy;C:\Kivy\kivyPYTHONPATH
----------------------------------
##################################
done bootstraping kivy...have fun!\n
running "python.exe C:\Kivy\kivy\examples\android\compass\main.py" \n
[INFO              ] Kivy v1.8.0
[ERROR             ] Error while activating FileHandler logger
Traceback (most recent call last):
  File "C:\Kivy\kivy\kivy\logger.py", line 201, in emit
    self._configure()
  File "C:\Kivy\kivy\kivy\logger.py", line 153, in _configure
    _dir = os.path.join(_dir, log_dir)
  File "C:\Kivy\Python27\lib\ntpath.py", line 108, in join
    path += "\\" + b
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe1 in position 13: ordinal
 not in range(128)
 Traceback (most recent call last):
   File "C:\Kivy\kivy\examples\android\compass\main.py", line 26, in <module>
     from jnius import autoclass
 ImportError: No module named jnius
Press any key to continue . . .

I then try to install pyjnius from http://pyjnius.readthedocs.org/en/latest/installation.html#installation-on-the-desktop and from github clone and am unable to run the setup.py file due to an error that says: command 'gcc' failed: No such file or directory.  I am also unable to use the make command from the kivy.bat program, I just get back:

-----------------------------------------------------------------------
- Running a shell, you can browse kivyexamples and launch apps with: -
- python app.py -
-----------------------------------------------------------------------

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Kivy>make
Please use `make <target>` where <target> is one of
  html       to make standalone HTML files
  dirhtml    to make HTML files named index.html in directories
  singlehtml to make a single large HTML file
  pickle     to make pickle files
  json       to make JSON files
  htmlhelp   to make HTML files and a HTML help project
  qthelp     to make HTML files and a qthelp project
  devhelp    to make HTML files and a Devhelp project
  epub       to make an epub
  latex      to make LaTeX files, you can set PAPER=a4 or PAPER=letter
  text       to make text files
  man        to make manual pages
  texinfo    to make Texinfo files
  gettext    to make PO message catalogs
  changes    to make an overview over all changed/added/deprecated items
  linkcheck  to check all external links for integrity
  doctest    to run all doctests embedded in the documentation if enabled

I have been trying to get this Kivy + Android to work for three days now, I have looked up every error I encunter, and every forum related to these issues.  I have added environment variables when recommended to.  The installation instructions + documentation for some of these applications is quite atrocious for any new programmer.

The other example programs I have tried to use that are not for Android seem to work.

I am using Windows 7, Python 2.7, jdk1.8.0, jre8.  Thanks for the help.

Ben Rousch

unread,
Mar 26, 2014, 2:33:26 PM3/26/14
to python-...@googlegroups.com
Android examples will only run on Android devices or in the Android emulator.


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



--
 Ben Rousch
   bro...@gmail.com
   http://clusterbleep.net/
Reply all
Reply to author
Forward
0 new messages