[Distutils] [issue136] Exception AttributeError: 'NoneType' raised when package is not found on Python 2.5 only

Sorin Sbarnea setuptools at bugs.python.org
Thu Nov 10 16:35:22 CET 2011


New submission from Sorin Sbarnea <sorin.sbarnea at gmail.com>:

Windows, Python 2.5

easy_install image

Output:
Searching for image
Reading http://pypi.python.org/simple/image/
Reading https://github.com/francescortiz/image
Reading https://github.com/francescortiz/image/tarball/master
No local packages or download links found for image
Best match: None
Traceback (most recent call last):
  File "C:\Program Files\JetBrains\PyCharm 110.303\helpers\pydev\pydevd.py", line 1281, in <module>
    debugger.run(setup['file'], None, None)
  File "C:\Program Files\JetBrains\PyCharm 110.303\helpers\pydev\pydevd.py", line 1010, in run
    pydev_imports.execfile(file, globals, locals) #execute the script
  File "C:/Python25/Scripts/easy_install-2.5-script.py", line 8, in <module>
    load_entry_point('setuptools==0.6c11', 'console_scripts', 'easy_install-2.5')()
  File "C:\Python25\lib\site-packages\setuptools\command\easy_install.py", line 1712, in main
    with_ei_usage(lambda:
  File "C:\Python25\lib\site-packages\setuptools\command\easy_install.py", line 1700, in with_ei_usage
    return f()
  File "C:\Python25\lib\site-packages\setuptools\command\easy_install.py", line 1716, in <lambda>
    distclass=DistributionWithoutHelpCommands, **kw
  File "C:\Python25\lib\distutils\core.py", line 151, in setup
    dist.run_commands()
  File "C:\Python25\lib\distutils\dist.py", line 974, in run_commands
    self.run_command(cmd)
  File "C:\Python25\lib\distutils\dist.py", line 994, in run_command
    cmd_obj.run()
  File "C:\Python25\lib\site-packages\setuptools\command\easy_install.py", line 211, in run
    self.easy_install(spec, not self.no_deps)
  File "C:\Python25\lib\site-packages\setuptools\command\easy_install.py", line 434, in easy_install
    self.local_index
  File "C:\Python25\lib\site-packages\setuptools\package_index.py", line 475, in fetch_distribution
    return dist.clone(location=self.download(dist.location, tmpdir))
AttributeError: 'NoneType' object has no attribute 'clone'

----------
messages: 648
nosy: sorin
priority: bug
status: unread
title: Exception AttributeError: 'NoneType' raised when package is not found on Python 2.5 only

_______________________________________________
Setuptools tracker <setuptools at bugs.python.org>
<http://bugs.python.org/setuptools/issue136>
_______________________________________________


More information about the Distutils-SIG mailing list