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


Groups > comp.lang.python > #80134

Re: Installing Parsers/Tree Builders to, and accessing these packages from Python2.7

From Terry Reedy <tjreedy@udel.edu>
Subject Re: Installing Parsers/Tree Builders to, and accessing these packages from Python2.7
Date 2014-11-02 15:08 -0500
References <9580043d-a75b-4b87-9a21-1b9c0347671f@googlegroups.com> <1f3c5d34-b5d1-4ede-952b-fed54b817fd7@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.15415.1414958940.18130.python-list@python.org> (permalink)

Show all headers | View raw


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

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


Thread

Installing Parsers/Tree Builders to, and accessing these packages from  Python2.7 Simon Evans <musicalhacksaw@yahoo.co.uk> - 2014-11-01 07:17 -0700
  Re: Installing Parsers/Tree Builders to, and accessing these packages from  Python2.7 Terry Reedy <tjreedy@udel.edu> - 2014-11-01 16:43 -0400
  Re: Installing Parsers/Tree Builders to, and accessing these packages from  Python2.7 Simon Evans <musicalhacksaw@yahoo.co.uk> - 2014-11-02 06:58 -0800
    Re: Installing Parsers/Tree Builders to, and accessing these packages from  Python2.7 Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-11-02 15:27 +0000
    Re: Installing Parsers/Tree Builders to, and accessing these packages from  Python2.7 Terry Reedy <tjreedy@udel.edu> - 2014-11-02 15:08 -0500
    Re: Installing Parsers/Tree Builders to, and accessing these packages from  Python2.7 Ned Batchelder <ned@nedbatchelder.com> - 2014-11-02 15:43 -0500
  Re: Installing Parsers/Tree Builders to, and accessing these packages from  Python2.7 Simon Evans <musicalhacksaw@yahoo.co.uk> - 2014-11-02 07:23 -0800
    Re: Installing Parsers/Tree Builders to, and accessing these packages from  Python2.7 Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-11-02 15:30 +0000
  Re: Installing Parsers/Tree Builders to, and accessing these packages from  Python2.7 Simon Evans <musicalhacksaw@yahoo.co.uk> - 2014-11-02 09:51 -0800
  Re: Installing Parsers/Tree Builders to, and accessing these packages from  Python2.7 Simon Evans <musicalhacksaw@yahoo.co.uk> - 2014-11-02 11:22 -0800
    Re: Installing Parsers/Tree Builders to, and accessing these packages from  Python2.7 Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-11-02 19:39 +0000
  Re: Installing Parsers/Tree Builders to, and accessing these packages from  Python2.7 Simon Evans <musicalhacksaw@yahoo.co.uk> - 2014-11-02 13:59 -0800
    Re: Installing Parsers/Tree Builders to, and accessing these packages from  Python2.7 Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-11-02 22:31 +0000
    Re: Installing Parsers/Tree Builders to, and accessing these packages from Python2.7 Chris Angelico <rosuav@gmail.com> - 2014-11-03 10:33 +1100
  Re: Installing Parsers/Tree Builders to, and accessing these packages from  Python2.7 Simon Evans <musicalhacksaw@yahoo.co.uk> - 2014-11-02 14:20 -0800
    Re: Installing Parsers/Tree Builders to, and accessing these packages from  Python2.7 Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-11-02 22:34 +0000
  Re: Installing Parsers/Tree Builders to, and accessing these packages from  Python2.7 Simon Evans <musicalhacksaw@yahoo.co.uk> - 2014-11-03 08:27 -0800
    Re: Installing Parsers/Tree Builders to, and accessing these packages from Python2.7 Chris Angelico <rosuav@gmail.com> - 2014-11-04 03:41 +1100
  Re: Installing Parsers/Tree Builders to, and accessing these packages from  Python2.7 Simon Evans <musicalhacksaw@yahoo.co.uk> - 2014-11-03 13:28 -0800
    Re: Installing Parsers/Tree Builders to, and accessing these packages from  Python2.7 Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-11-03 21:42 +0000

csiph-web