easy_install fails on python-magic

Discussion in 'Python' started by Daniel Fetchinson, Jan 11, 2010.

  1. 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
     
    Daniel Fetchinson, Jan 11, 2010
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Matt Mackal
    Replies:
    6
    Views:
    278
    Carl Banks
    Oct 11, 2007
  2. Ske
    Replies:
    2
    Views:
    10,375
  3. Guillermo
    Replies:
    1
    Views:
    341
    Michel Claveau - MVP
    Oct 26, 2009
  4. Replies:
    1
    Views:
    3,862
    Irmen de Jong
    Jun 12, 2011
  5. Giles Bowkett
    Replies:
    9
    Views:
    419
    Giles Bowkett
    Dec 17, 2007
Loading...

Share This Page