Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

can't install on ubuntu 12.04 #719

Closed
mherweg opened this Issue · 4 comments

2 participants

@mherweg
easy_install --upgrade kivy
Searching for kivy
Reading http://pypi.python.org/simple/kivy/
Best match: Kivy 1.4.1
Downloading http://pypi.python.org/packages/source/K/Kivy/Kivy-1.4.1.tar.gz#md5=94bba894269e4bdecc7881f256367e01
Processing Kivy-1.4.1.tar.gz
Running Kivy-1.4.1/setup.py -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/easy_install.py", line 1931, in main 
      with_ei_usage(lambda:
   File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1912, in with_ei_usage
     return f()
   File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1935, in <lambda>
     distclass=DistributionWithoutHelpCommands, **kw
   File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
     dist.run_commands()
   File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
     self.run_command(cmd)
   File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
     cmd_obj.run()
   File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 368, in run
     self.easy_install(spec, not self.no_deps)
   File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 608, in easy_install
     return self.install_item(spec, dist.location, tmpdir, deps)
   File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 638, in install_item
     dists = self.install_eggs(spec, download, tmpdir)
   File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 828, in install_eggs
     return self.build_and_install(setup_script, setup_base)
   File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1105, in build_and_install
     self.run_setup(setup_script, setup_base, args)
   File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1094, in run_setup
     run_setup(setup_script, args)
   File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 30, in run_setup
     lambda: execfile(
   File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 72, in run
     return func()
  File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 32, in <lambda>
     {'__file__':setup_script, '__name__':'__main__'}
   File "setup.py", line 75, in <module>
   File "/tmp/easy_install-HcKmmp/Kivy-1.4.1/kivy/__init__.py", line 375, in <module>

 AttributeError: 'NoneType' object has no attribute 'set'
@tito
Owner

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 ?

@mherweg
@tito
Owner

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.

@tito
Owner

Ok, i just found at about it at http://code.google.com/p/android-scripting/wiki/RemoteControl

Will fix the __init__ part, for the moment, remove the android.py 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 android.py too. Closes #719
7c96bfa
@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.