Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'url:pypi': 0.03; '16,': 0.03; '21,': 0.07; 'attribute': 0.07; 'importerror:': 0.07; 'exception,': 0.09; 'extracted': 0.09; 'setup.py': 0.09; 'subject:module': 0.09; 'sure,': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'folder,': 0.16; 'precedence': 0.16; 'reproduce': 0.16; 'setuptools': 0.16; 'url:gz': 0.16; 'url:packages': 0.16; 'url:setuptools': 0.16; 'url:tar': 0.16; 'exception': 0.16; 'wrote:': 0.18; 'module': 0.19; 'import': 0.22; 'putting': 0.22; 'cc:addr:python.org': 0.22; 'lets': 0.24; 'mon,': 0.24; 'cc:2**0': 0.24; 'extension': 0.26; 'handling': 0.26; 'skip:" 40': 0.26; 'downloaded': 0.26; 'somewhere': 0.26; 'skip:_ 20': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'skip:& 60': 0.30; 'message-id:@mail.gmail.com': 0.30; "skip:' 10": 0.31; '"",': 0.31; 'linux.': 0.31; 'skip:( 50': 0.31; 'file': 0.32; 'another': 0.32; 'url:python': 0.33; '(most': 0.33; 'url:source': 0.33; 'skip:_ 10': 0.34; 'maybe': 0.34; 'but': 0.35; 'received:google.com': 0.35; 'skip:" 50': 0.36; 'url:org': 0.36; 'error.': 0.37; 'skip:& 10': 0.38; 'jason': 0.38; 'recent': 0.39; 'skip:& 20': 0.39; 'does': 0.39; 'tell': 0.60; 'url:3': 0.61; 'skip:n 10': 0.64; 'taking': 0.65; 'mar': 0.68; 'skip:w 40': 0.68; '2015': 0.84; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=A6xi6pPZjgSsidkhgbeXCKI06I7gw0Tfx/toInlTqJU=; b=eyHaxoXUm5zVIwEJY5yzHvD/7EKF+JqUkhIk4iBKEuuVVb3ACyHomrWk0FAkeFb3zN YGVUDvAfDZbCZEWQmICzTLy+tDSb2YVpaK5SCLwoJa8qVGKRz4DgbWjfW2AT+m/SUTU/ l27zM06uTkmEQ8dPcNm1knx+46hz8yvHnd/KZej8ud7bKdHWy/dPLFWu42ayOBk7qaVq Wcgqh3464nnBpIZ6kyjDi06tcElj3U+NFu/NkE0vsLIGwhg8zsbFf+IN8jjkU7CL61U1 05l+FZ2yjmeMgkdxc2Wv2FF0n22Po5uiWScNqImoJASDxDyMvMxmig+B/qN959i4Y/fD B9Dg== MIME-Version: 1.0 X-Received: by 10.181.13.82 with SMTP id ew18mr38326198wid.84.1426512190209; Mon, 16 Mar 2015 06:23:10 -0700 (PDT) In-Reply-To: References: Date: Mon, 16 Mar 2015 07:23:10 -0600 Subject: Re: Setuptools: no module named 'html.entities' From: Jason Friedman Cc: python-list Content-Type: multipart/alternative; boundary=f46d043c7ccc5d85ed051167c0b8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.19 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 136 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1426512198 news.xs4all.nl 2912 [2001:888:2000:d::a6]:51155 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:87555 --f46d043c7ccc5d85ed051167c0b8 Content-Type: text/plain; charset=UTF-8 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 "", 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 >> exec(init_file.read(), command_ns) >> File "", line 11, in >> File "/home/spjsf/setuptools-14.3/setuptools/__init__.py", line 11, >> in >> from setuptools.extension import Extension >> File "/home/spjsf/setuptools-14.3/setuptools/extension.py", line 8, >> in >> from .dist import _get_unpatched >> File "/home/spjsf/setuptools-14.3/setuptools/dist.py", line 16, in >> >> from setuptools.depends import Require >> File "/home/spjsf/setuptools-14.3/setuptools/depends.py", line 6, in >> >> from setuptools import compat >> File "/home/spjsf/setuptools-14.3/setuptools/compat.py", line 44, in >> >> 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. --f46d043c7ccc5d85ed051167c0b8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On M= on, Mar 16, 2015 at 7:10 AM, Wolfgang Maier <wolfg= ang.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/sou= rce/s/setuptools/setuptools-14.3.tar.gz),
exploded the tarball, and I get:

python setup.py build
Traceback (most recent call last):
=C2=A0 =C2=A0File "<frozen importlib._bootstrap>", line 152= 1, 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):
=C2=A0 =C2=A0File "setup.py", line 21, in <module>
=C2=A0 =C2=A0 =C2=A0exec(init_file.read(), command_ns)
=C2=A0 =C2=A0File "<string>", line 11, in <module> =C2=A0 =C2=A0File "/home/spjsf/setuptools-14.3/setuptools/__ini= t__.py", line 11,
in <module>
=C2=A0 =C2=A0 =C2=A0from setuptools.extension import Extension
=C2=A0 =C2=A0File "/home/spjsf/setuptools-14.3/setuptools/exten= sion.py", line 8,
in <module>
=C2=A0 =C2=A0 =C2=A0from .dist import _get_unpatched
=C2=A0 =C2=A0File "/home/spjsf/setuptools-14.3/setuptools/dist.= py", line 16, in
<module>
=C2=A0 =C2=A0 =C2=A0from setuptools.depends import Require
=C2=A0 =C2=A0File "/home/spjsf/setuptools-14.3/setuptools/depen= ds.py", line 6, in
<module>
=C2=A0 =C2=A0 =C2=A0from setuptools import compat
=C2=A0 =C2=A0File "/home/spjsf/setuptools-14.3/setuptools/compa= t.py", line 44, in
<module>
=C2=A0 =C2=A0 =C2=A0from 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!=C2=A0 Much obliged. =
--f46d043c7ccc5d85ed051167c0b8--