Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


can't install on ubuntu 12.04 #719

mherweg opened this Issue · 4 comments

2 participants

easy_install --upgrade kivy
Searching for kivy
Best match: Kivy 1.4.1
Processing Kivy-1.4.1.tar.gz
Running Kivy-1.4.1/ -q bdist_egg --dist-dir /tmp/easy_install-HcKmmp/Kivy-1.4.1/egg-dist-tmp-PgCDwY
[INFO   ] Kivy v1.4.1
 Traceback (most recent call last):
   File "/usr/bin/easy_install", line 9, in <module>
     load_entry_point('distribute==0.6.24dev-r0', 'console_scripts', 'easy_install')()
   File "/usr/lib/python2.7/dist-packages/setuptools/command/", line 1931, in main 
   File "/usr/lib/python2.7/dist-packages/setuptools/command/", line 1912, in with_ei_usage
     return f()
   File "/usr/lib/python2.7/dist-packages/setuptools/command/", line 1935, in <lambda>
     distclass=DistributionWithoutHelpCommands, **kw
   File "/usr/lib/python2.7/distutils/", line 152, in setup
   File "/usr/lib/python2.7/distutils/", line 953, in run_commands
   File "/usr/lib/python2.7/distutils/", line 972, in run_command
   File "/usr/lib/python2.7/dist-packages/setuptools/command/", line 368, in run
     self.easy_install(spec, not self.no_deps)
   File "/usr/lib/python2.7/dist-packages/setuptools/command/", line 608, in easy_install
     return self.install_item(spec, dist.location, tmpdir, deps)
   File "/usr/lib/python2.7/dist-packages/setuptools/command/", line 638, in install_item
     dists = self.install_eggs(spec, download, tmpdir)
   File "/usr/lib/python2.7/dist-packages/setuptools/command/", line 828, in install_eggs
     return self.build_and_install(setup_script, setup_base)
   File "/usr/lib/python2.7/dist-packages/setuptools/command/", line 1105, in build_and_install
     self.run_setup(setup_script, setup_base, args)
   File "/usr/lib/python2.7/dist-packages/setuptools/command/", line 1094, in run_setup
     run_setup(setup_script, args)
   File "/usr/lib/python2.7/dist-packages/setuptools/", line 30, in run_setup
     lambda: execfile(
   File "/usr/lib/python2.7/dist-packages/setuptools/", line 72, in run
     return func()
  File "/usr/lib/python2.7/dist-packages/setuptools/", line 32, in <lambda>
     {'__file__':setup_script, '__name__':'__main__'}
   File "", line 75, in <module>
   File "/tmp/easy_install-HcKmmp/Kivy-1.4.1/kivy/", line 375, in <module>

 AttributeError: 'NoneType' object has no attribute 'set'

I retested on 2 Ubuntu 12.04 (one clean, and one used for dev), i got no error. What bothering me a lot is the line 375:
1. it's inside a platform() == 'android': how this part of the code can be executed on your computer ? Do you have an "android" python module ? (ie python -c 'import android')
2. Config is None, the only way to get it is to have an environment KIVY_DOC_INCLUDE set. Do you have one ?


Wait, what is your "android" module ? Could you show me a link to it ?
Ok for the 2. with doc include. Still, the configuration should not be set at all, but i don't know what is your android module.


Ok, i just found at about it at

Will fix the __init__ part, for the moment, remove the from your PYTHONPATH just for the installation, or wait the next commit :)

@tito tito closed this issue from a commit
@tito tito init: don't set configuration from android if we are in the "document…
…ation" mode

+ use ANDROID_ARGUMENT availability in environ instead of "import android" for detecting the android platform: sl4a have their own too. Closes #719
@tito tito closed this in 7c96bfa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.