Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Using easy_install, part of the python-setuptools, I get the following error:

$ sudo easy_install python-graph-core
[sudo] password for dan: 
Searching for python-graph-core
Best match: python-graph-core 1.7.0
Processing python-graph-core-1.7.0.tar.gz
Running python-graph-core-1.7.0/ -q bdist_egg --dist-dir /tmp/easy_install-GwpYiM/python-graph-core-1.7.0/egg-dist-tmp-1yqbyV Warning: 'as' will become a reserved keyword in Python 2.6
Traceback (most recent call last):
  File "/usr/bin/easy_install", line 8, in <module>
    load_entry_point('setuptools==0.6c9', 'console_scripts', 'easy_install')()
  File "/usr/lib/python2.5/site-packages/setuptools/command/", line 1671, in main
  File "/usr/lib/python2.5/site-packages/setuptools/command/", line 1659, in with_ei_usage
    return f()
  File "/usr/lib/python2.5/site-packages/setuptools/command/", line 1675, in <lambda>
    distclass=DistributionWithoutHelpCommands, **kw
  File "/usr/lib/python2.5/distutils/", line 151, in setup
  File "/usr/lib/python2.5/distutils/", line 974, in run_commands
  File "/usr/lib/python2.5/distutils/", line 994, in run_command
  File "/usr/lib/python2.5/site-packages/setuptools/command/", line 211, in run
    self.easy_install(spec, not self.no_deps)
  File "/usr/lib/python2.5/site-packages/setuptools/command/", line 446, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/usr/lib/python2.5/site-packages/setuptools/command/", line 476, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/usr/lib/python2.5/site-packages/setuptools/command/", line 655, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/usr/lib/python2.5/site-packages/setuptools/command/", line 930, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/usr/lib/python2.5/site-packages/setuptools/command/", line 919, in run_setup
    run_setup(setup_script, args)
  File "/usr/lib/python2.5/site-packages/setuptools/", line 27, in run_setup
    lambda: execfile(
  File "/usr/lib/python2.5/site-packages/setuptools/", line 63, in run
    return func()
  File "/usr/lib/python2.5/site-packages/setuptools/", line 29, in <lambda>
    {'__file__':setup_script, '__name__':'__main__'}
  File "", line 8
    except ImportError as ie:
SyntaxError: invalid syntax

Any suggestions to what I may be doing wrong?

Thanks, Dan

share|improve this question
just for info: ubuntu package page (karmic): .. ubuntu package buglist: – quack quixote Mar 26 '10 at 5:36
up vote 0 down vote accepted

Its not an issue with easy-install. This error is from having python 2.5 instead of python 2.6 which is required by python-graph.

share|improve this answer
since the python-setuptools package includes /usr/bin/easy-install-2.6 i presume you can install the ubuntu python2.6 packages to get this functionality. (a dpkg-reconfigure or update-alternatives may be necessary tho.) – quack quixote Mar 26 '10 at 6:04

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.