Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't install on ubuntu 12.04 #719

Closed
mherweg opened this issue Oct 5, 2012 · 4 comments
Closed

can't install on ubuntu 12.04 #719

mherweg opened this issue Oct 5, 2012 · 4 comments
Labels
Status: Incomplete Issue/PR is incomplete, but it's real

Comments

@mherweg
Copy link

mherweg commented Oct 5, 2012

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
Copy link
Member

tito commented Oct 8, 2012

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
Copy link
Author

mherweg commented Oct 8, 2012

thank you for your reply!

Am Sun, 7 Oct 2012 22:11:28 -0700
schrieb Mathieu Virbel notifications@github.com:

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 ?

yes. I need it.
I develop using the SL4A Server on android devices

  1. Config is None, the only way to get
    it is to have an environment KIVY_DOC_INCLUDE set.

no, but i found this:

extract version (simulate doc generation, kivy will be not imported)

environ['KIVY_DOC_INCLUDE'] = '1'

in setup.py

how can I use the ~/download/Kivy-1.4.1/setup.py

instead of easy-install ?

thank you !

Martin

@tito
Copy link
Member

tito commented Oct 9, 2012

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
Copy link
Member

tito commented Oct 9, 2012

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 as completed in 7c96bfa Oct 9, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Incomplete Issue/PR is incomplete, but it's real
Projects
None yet
Development

No branches or pull requests

2 participants