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


Groups > comp.lang.python > #87555

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

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 <jsf80238@gmail.com>
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 <me6kp0$gnm$1@ger.gmane.org>
References <CANy1k1j9WV=BXaPmoWma--Phq+QFNETY-s2MUN0RuuEsc-j_Lg@mail.gmail.com> <me6kp0$gnm$1@ger.gmane.org>
Date Mon, 16 Mar 2015 07:23:10 -0600
Subject Re: Setuptools: no module named 'html.entities'
From Jason Friedman <jsf80238@gmail.com>
Cc python-list <python-list@python.org>
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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.444.1426512198.21433.python-list@python.org> (permalink)
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

Show key headers only | View raw


[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.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web