easy_install fails on python-magic

Daniel Fetchinson fetchinson at googlemail.com
Mon Jan 11 05:46:07 EST 2010


I'm not sure whose fault this is, the author of python-magic or
easy_install (I'm guessing easy_install) but in any case

easy_install python-magic

(as root) fails with

Searching for python-magic
Reading http://pypi.python.org/simple/python-magic/
Reading http://hupp.org/adam/hg/python-magic
No local packages or download links found for python-magic
Best match: None
Traceback (most recent call last):
  File "/usr/bin/easy_install", line 8, in <module>
    load_entry_point('setuptools==0.6c11', 'console_scripts', 'easy_install')()
  File "/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/easy_install.py",
line 1712, in main

  File "/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/easy_install.py",
line 1700, in with_ei_usage

  File "/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/easy_install.py",
line 1716, in <lambda>

  File "/usr/lib64/python2.6/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib64/python2.6/distutils/dist.py", line 975, in run_commands
    self.run_command(cmd)
  File "/usr/lib64/python2.6/distutils/dist.py", line 995, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/easy_install.py",
line 211, in run

  File "/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/easy_install.py",
line 434, in easy_install

  File "/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/package_index.py",
line 475, in fetch_distribution
AttributeError: 'NoneType' object has no attribute 'clone'


As far as I can see the problem is that no version of python-magic has
been supplied for python 2.6 which is the version I'm using, only 2.4
and 2.5. Nevertheless easy_install should I think fail with a more
user friendly message, and definitely not with a long traceback. It
should I think just inform the user that no version has been found,
good bye. Or something like that.

Cheers,
Daniel


-- 
Psss, psss, put it down! - http://www.cafepress.com/putitdown



More information about the Python-list mailing list