homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author goibhniu
Recipients alexis, eric.araujo, goibhniu, tarek
Date 2013年01月20日.10:53:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1358679241.64.0.323379841838.issue17002@psf.upfronthosting.co.za>
In-reply-to
Content
I guess it should be wrapped in a try, except:
try:
 from html.entities import name2codepoint
except ImportError:
 from htmlentitydefs import name2codepoint
This works locally
Here's a sample traceback:
Traceback (most recent call last):
 File "python2nix.py", line 119, in <module>
 egg_release = pypi.get_release(egg['name'] + '==' + version)
 File "/nix/var/nix/profiles/plone/lib/python2.7/site-packages/Distutils2-1.0a4-py2.7.egg/distutils2/pypi/simple.py", line 201, in get_release
 releases = self.get_releases(predicate, prefer_final)
 File "/nix/var/nix/profiles/plone/lib/python2.7/site-packages/Distutils2-1.0a4-py2.7.egg/distutils2/pypi/simple.py", line 189, in get_releases
 self._process_index_page(predicate.name)
 File "/nix/var/nix/profiles/plone/lib/python2.7/site-packages/Distutils2-1.0a4-py2.7.egg/distutils2/pypi/simple.py", line 75, in wrapped
 return func(self, *args, **kwargs)
 File "/nix/var/nix/profiles/plone/lib/python2.7/site-packages/Distutils2-1.0a4-py2.7.egg/distutils2/pypi/simple.py", line 397, in _process_index_page
 self._process_url(url, name)
 File "/nix/var/nix/profiles/plone/lib/python2.7/site-packages/Distutils2-1.0a4-py2.7.egg/distutils2/pypi/simple.py", line 320, in _process_url
 for link, is_download in link_matcher(f.read().decode(), base_url):
 File "/nix/var/nix/profiles/plone/lib/python2.7/site-packages/Distutils2-1.0a4-py2.7.egg/distutils2/pypi/simple.py", line 362, in _simple_link_matcher
 url = self._get_full_url(match.group(1), base_url)
 File "/nix/var/nix/profiles/plone/lib/python2.7/site-packages/Distutils2-1.0a4-py2.7.egg/distutils2/pypi/simple.py", line 349, in _get_full_url
 return urlparse.urljoin(base_url, self._htmldecode(url))
 File "/nix/var/nix/profiles/plone/lib/python2.7/site-packages/Distutils2-1.0a4-py2.7.egg/distutils2/pypi/simple.py", line 469, in _htmldecode
 return ENTITY_SUB(self._decode_entity, text)
 File "/nix/var/nix/profiles/plone/lib/python2.7/site-packages/Distutils2-1.0a4-py2.7.egg/distutils2/pypi/simple.py", line 463, in _decode_entity
 from html.entities import name2codepoint
ImportError: No module named html.entities
History
Date User Action Args
2013年01月20日 10:54:01goibhniusetrecipients: + goibhniu, tarek, eric.araujo, alexis
2013年01月20日 10:54:01goibhniusetmessageid: <1358679241.64.0.323379841838.issue17002@psf.upfronthosting.co.za>
2013年01月20日 10:54:00goibhniulinkissue17002 messages
2013年01月20日 10:53:55goibhniucreate

AltStyle によって変換されたページ (->オリジナル) /