ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> distutils-sig
distutils-sig
[Distutils] [issue91] setuptools fails with non-ascii urls in pypi
by Sridhar Ratnakumar other posts by this author
Nov 6 2009 6:27AM messages near this date
Re: [Distutils] Looking for portable what to determine directory where extensions are installed? | [Distutils] distutils.core.setup --install-script option in Python 2.6 ?
New submission from Sridhar Ratnakumar <sridharr@[...].com> :

Calling `fetch_distribution` with req = "fl-gelform" and source = True results 
in the following traceback.

    sdist = pi.fetch_distribution(req, directory, source=True)
  File "/home/sridharr/.local/lib/python2.6/site-packages/setuptools/
package_index.py", line 465, in fetch_distribution
    self.find_packages(requirement)
  File "/home/sridharr/.local/lib/python2.6/site-packages/setuptools/
package_index.py", line 303, in find_packages
    self.scan_url(self.index_url + requirement.unsafe_name+'/')
  File "/home/sridharr/.local/lib/python2.6/site-packages/setuptools/
package_index.py", line 617, in scan_url
    self.process_url(url, True)
  File "/home/sridharr/.local/lib/python2.6/site-packages/setuptools/
package_index.py", line 190, in process_url
    f = self.open_url(url, "Download error: %s -- Some packages may not be 
found!")
  File "/home/sridharr/.local/lib/python2.6/site-packages/setuptools/
package_index.py", line 578, in open_url
    return open_with_auth(url)
  File "/home/sridharr/.local/lib/python2.6/site-packages/setuptools/
package_index.py", line 717, in open_with_auth
    fp = urllib2.urlopen(request)
  File "/opt/ActivePython-2.6/lib/python2.6/urllib2.py", line 124, in urlopen
    return _opener.open(url, data, timeout)
  File "/opt/ActivePython-2.6/lib/python2.6/urllib2.py", line 395, in open
    response = meth(req, response)
  File "/opt/ActivePython-2.6/lib/python2.6/urllib2.py", line 508, in 
http_response
    'http', request, response, code, msg, hdrs)
  File "/opt/ActivePython-2.6/lib/python2.6/urllib2.py", line 427, in error
    result = self._call_chain(*args)
  File "/opt/ActivePython-2.6/lib/python2.6/urllib2.py", line 367, in 
_call_chain
    result = func(*args)
  File "/opt/ActivePython-2.6/lib/python2.6/urllib2.py", line 577, in 
http_error_302
    newurl = urlparse.urljoin(req.get_full_url(), newurl)
  File "/opt/ActivePython-2.6/lib/python2.6/urlparse.py", line 219, in urljoin
    params, query, fragment))
  File "/opt/ActivePython-2.6/lib/python2.6/urlparse.py", line 184, in 
urlunparse
    return urlunsplit((scheme, netloc, url, query, fragment))
  File "/opt/ActivePython-2.6/lib/python2.6/urlparse.py", line 190, in 
urlunsplit
    url = '//' + (netloc or '') + url
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 10: 
ordinal not in range(128)

----------
messages: 450
nosy: srid
priority: bug
status: unread
title: setuptools fails with non-ascii urls in pypi

_______________________________________________
Setuptools tracker <setuptools@[...].org> 
<http://bugs.python.org/setuptools/issue91> 
_______________________________________________
_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG@[...].org
http://mail.python.org/mailman/listinfo/distutils-sig

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved