[Distutils] PEP 438 - Transition Phase 1

PJ Eby pje at telecommunity.com
Mon May 20 21:20:13 CEST 2013


On Mon, May 20, 2013 at 1:03 PM, Lennart Regebro <regebro at gmail.com> wrote:
> On Mon, May 20, 2013 at 6:05 PM, PJ Eby <pje at telecommunity.com> wrote:
>> On Sun, May 19, 2013 at 7:26 PM, Richard Jones <richard at python.org> wrote:
>>> Donald wrote a handy script to help make this easier:
>>>
>>> https://pypi.python.org/pypi/pypi-show-urls
>>
>> Doesn't seem to work for me:
>>
>> $ pypi-show-urls -u pje
>> Traceback (most recent call last):
>>   File "/usr/bin/pypi-show-urls", line 8, in <module>
>>     load_entry_point('pypi-show-urls==2.1.1', 'console_scripts',
>> 'pypi-show-urls')()
>>   File "build/bdist.linux-i686/egg/pkg_resources.py", line 318, in
>> load_entry_point
>>   File "build/bdist.linux-i686/egg/pkg_resources.py", line 2221, in
>> load_entry_point
>>   File "build/bdist.linux-i686/egg/pkg_resources.py", line 1954, in load
>>   File "build/bdist.cygwin-1.7.15-i686/egg/pypi_show_urls/__main__.py",
>> line 24, in <module>
>> ImportError: No module named pip.req
>
> Do you have pip installed?

No, but installing it didn't help; I got an ElementTree exception next:

$ pypi-show-urls -u pje

Download candidates for PEAK
============================
Traceback (most recent call last):
  File "/usr/bin/pypi-show-urls", line 8, in <module>
    load_entry_point('pypi-show-urls==2.1.1', 'console_scripts',
'pypi-show-urls')()
  File "build/bdist.cygwin-1.7.15-i686/egg/pypi_show_urls/__main__.py",
line 148, in main
  File "/usr/lib/python2.6/xml/etree/ElementPath.py", line 198, in findall
    return _compile(path).findall(element)
  File "/usr/lib/python2.6/xml/etree/ElementPath.py", line 176, in _compile
    p = Path(path)
  File "/usr/lib/python2.6/xml/etree/ElementPath.py", line 93, in __init__
    "expected path separator (%s)" % (op or tag)
SyntaxError: expected path separator ([)

(And of course the package should specify that it has an install-time
requirement for pip.)


More information about the Distutils-SIG mailing list