Path: csiph.com!usenet.pasdenom.info!news.franciliens.net!fdn.fr!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed3.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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'important,': 0.07; 'parser': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'run,': 0.09; 'python': 0.11; 'jan': 0.12; 'windows': 0.15; '__init__.py': 0.16; 'effect.': 0.16; 'folder.': 0.16; 'presume': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'recognise': 0.16; 'reedy': 0.16; 'subject: \n ': 0.16; 'subject:accessing': 0.16; 'appropriate': 0.16; 'wrote:': 0.18; 'library': 0.18; 'input': 0.22; 'install': 0.23; 'header:User- Agent:1': 0.23; 'question': 0.24; 'sort': 0.25; 'suggested': 0.26; 'post': 0.26; 'subject:/': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'words': 0.29; "doesn't": 0.30; 'code': 0.31; "skip:' 10": 0.31; 'python2.7': 0.31; 'subject:these': 0.31; 'says': 0.33; 'running': 0.33; 'maybe': 0.34; 'subject:from': 0.34; "can't": 0.35; 'but': 0.35; 'really': 0.36; 'module.': 0.36; 'should': 0.36; 'operating': 0.37; 'feedback': 0.38; 'to:addr:python-list': 0.38; 'does': 0.39; 'itself': 0.39; 'to:addr:python.org': 0.39; 'skip:p 20': 0.39; 'received:org': 0.40; 'how': 0.40; 'read': 0.60; 'subject: ': 0.61; 'dear': 0.65; 'difficulty': 0.68; 'equals': 0.68; 'pasting': 0.84; 'received:fios.verizon.net': 0.84; 'working,': 0.84; 'cutting': 0.91; 'received:108': 0.93; 'fight': 0.97 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: Installing Parsers/Tree Builders to, and accessing these packages from Python2.7 Date: Sun, 02 Nov 2014 15:08:48 -0500 References: <9580043d-a75b-4b87-9a21-1b9c0347671f@googlegroups.com> <1f3c5d34-b5d1-4ede-952b-fed54b817fd7@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-108-16-203-145.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: <1f3c5d34-b5d1-4ede-952b-fed54b817fd7@googlegroups.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 40 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1414958940 news.xs4all.nl 2967 [2001:888:2000:d::a6]:54925 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:80134 On 11/2/2014 9:58 AM, Simon Evans wrote: > Dear Terry Reedy I am using operating system Windows 7. I put the > HTML TreeBuilder / htm5 library into the Python2.7 folder. Both packages should go in python27/Lib/site-packages, where a 'package' equals a directory with a __init__.py module. > I read > that the LXML Treebuilder /lmxl installs itself automatically to the > Python2.7 installation, so that is why I am not having difficulty > with that installation. I presume it put itself in site-packages, where it belongs. > I don't think it really matters where the > lxml download ended up necessarily, all I want is to know how I can > install it so it works, I cannot get any feedback because it isn't > working, all I get is the automated inbuilt response about 'Do I want > a treebuilder/ parser that is appropriate to the input' or words to > that effect. What I want to know is how to get this lxml > treebuilder/parser to run, ie: what is the protocol for running the > lxml download so's it'll run, or what sort of code to I put to my > python console in order to get it to run, seeing as the input > suggested by the download site does not get it to run. Maybe I > should rephrase my question : how do I install LXMLTreeBuilder/lxml, > and how do I download and install HTMLParserTreeBuilder and > LXMLTreeBuilderForXML to my Python2.7, please ? > I can post the > Traceback but all it says is that it doesn't recognise any input with > 'html5lib' in it. I will post the console response if it is > important, but I can't see how it is relevan t to my request - which > is how do I get these 'treebuilder/ parsers' to install and run. Why do newbies like you fight so hard against cutting and pasting a trackback? -- Terry Jan Reedy