Issue #16 resolved

ValueError: unknown url type: when easy_install'ing inquant.contentmirror.plone

Sridhar Ratnakumar
created an issue

{{{

!bash

$ easy_install inquant.contentmirror.plone Searching for inquant.contentmirror.plone Reading http://pypi.python.org/simple/inquant.contentmirror.plone/ Reading URL: Traceback (most recent call last): File "e/bin/easy_install", line 8, in <module> load_entry_point('setuptools==0.6c9', 'console_scripts', 'easy_install')() File "/private/tmp/i/e/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 1671, in main File "/private/tmp/i/e/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 1659, in with_ei_usage File "/private/tmp/i/e/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 1675, in <lambda> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/core.py", line 152, in setup dist.run_commands() File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py", line 975, in run_commands self.run_command(cmd) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py", line 995, in run_command cmd_obj.run() File "/private/tmp/i/e/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 211, in run File "/private/tmp/i/e/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 433, in easy_install File "/private/tmp/i/e/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/package_index.py", line 462, in fetch_distribution File "/private/tmp/i/e/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/package_index.py", line 303, in find_packages File "/private/tmp/i/e/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/package_index.py", line 617, in scan_url File "/private/tmp/i/e/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/package_index.py", line 201, in process_url File "/private/tmp/i/e/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/package_index.py", line 278, in process_index File "/private/tmp/i/e/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/package_index.py", line 617, in scan_url File "/private/tmp/i/e/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/package_index.py", line 189, in process_url File "/private/tmp/i/e/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/package_index.py", line 579, in open_url File "/private/tmp/i/e/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/package_index.py", line 717, in open_with_auth File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 124, in urlopen return _opener.open(url, data, timeout) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 375, in open protocol = req.get_type() File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 241, in get_type raise ValueError, "unknown url type: %s" % self.__original ValueError: unknown url type:

}}}

Comments (3)

  1. Sridhar Ratnakumar reporter

    The reason for this error is that the PyPI entry for this package has a malformed URL registered:

    url:%20https://svn.plone.org/svn/collective/inquant.contentmirror.plone/trunk

    Anyways, setuptools should be able to handle such invalid types .. and throw some custom exception that can be caught. (background: I'm using setuptools.package_index as an API in PyPM backend program .. if this is fixed, then this is another reason to move PyPM to distribute.

  2. Log in to comment