[issue17002] html.entities ImportError in distutils2/pypi/simple.py on Python2.7

2014-03-12 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- resolution: - out of date stage: test needed - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17002 ___

[issue17002] html.entities ImportError in distutils2/pypi/simple.py on Python2.7

2013-01-20 Thread Cillian de Róiste
New submission from Cillian de Róiste: 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

[issue17002] html.entities ImportError in distutils2/pypi/simple.py on Python2.7

2013-01-20 Thread Ezio Melotti
Ezio Melotti added the comment: htmlentitydefs was renamed to html.entities in Python 3. If this is supposed to run with Python 2 it should use the former, otherwise the latter (unless it has the same codebase on both). -- nosy: +ezio.melotti type: crash - behavior

[issue17002] html.entities ImportError in distutils2/pypi/simple.py on Python2.7

2013-01-20 Thread Éric Araujo
Éric Araujo added the comment: Good call. All function-level imports are avoided in d2 unless absolutely necessary, and this one slipped through the cracks. distutils2 went from Python 2 to 3 to 2 and 3 again, so these things happen (and it’s one of the reasons why I’ve always insisted on