Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #87555 > unrolled thread

Re: Setuptools: no module named 'html.entities'

Started byJason Friedman <jsf80238@gmail.com>
First post2015-03-16 07:23 -0600
Last post2015-03-16 07:23 -0600
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Setuptools: no module named 'html.entities' Jason Friedman <jsf80238@gmail.com> - 2015-03-16 07:23 -0600

#87555 — Re: Setuptools: no module named 'html.entities'

FromJason Friedman <jsf80238@gmail.com>
Date2015-03-16 07:23 -0600
SubjectRe: Setuptools: no module named 'html.entities'
Message-ID<mailman.444.1426512198.21433.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

On Mon, Mar 16, 2015 at 7:10 AM, Wolfgang Maier <
wolfgang.maier@biologie.uni-freiburg.de> wrote:

> On 03/16/2015 12:53 AM, Jason Friedman wrote:
>
>> Hello,
>>
>> This is Python 3.3.2 on Linux.
>> I downloaded Setuptools
>> (https://pypi.python.org/packages/source/s/setuptools/
>> setuptools-14.3.tar.gz),
>> exploded the tarball, and I get:
>>
>> python setup.py build
>> Traceback (most recent call last):
>>    File "<frozen importlib._bootstrap>", line 1521, in
>> _find_and_load_unlocked
>> AttributeError: 'module' object has no attribute '__path__'
>>
>> During handling of the above exception, another exception occurred:
>> Traceback (most recent call last):
>>    File "setup.py", line 21, in <module>
>>      exec(init_file.read(), command_ns)
>>    File "<string>", line 11, in <module>
>>    File "/home/spjsf/setuptools-14.3/setuptools/__init__.py", line 11,
>> in <module>
>>      from setuptools.extension import Extension
>>    File "/home/spjsf/setuptools-14.3/setuptools/extension.py", line 8,
>> in <module>
>>      from .dist import _get_unpatched
>>    File "/home/spjsf/setuptools-14.3/setuptools/dist.py", line 16, in
>> <module>
>>      from setuptools.depends import Require
>>    File "/home/spjsf/setuptools-14.3/setuptools/depends.py", line 6, in
>> <module>
>>      from setuptools import compat
>>    File "/home/spjsf/setuptools-14.3/setuptools/compat.py", line 44, in
>> <module>
>>      from html.entities import name2codepoint
>> ImportError: No module named 'html.entities'; html is not a package
>>
>>
>>
> Not sure, but maybe you have a html.py somewhere in your module search
> path taking precedence over the stdlib html package ?
> Putting a dummy html.py file into the extracted setuptools folder, at
> least, lets me reproduce your exact error.
>
> What does
>
> python -c "import html; print(html)"
>
> tell you ?
>
> Bingo!  Much obliged.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web