Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!ecngs!feeder2.ecngs.de!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'jan': 0.12; '10:17': 0.16; '__init__.py': 0.16; 'carefully.': 0.16; 'latter,': 0.16; 'programmers,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'subject: \n ': 0.16; 'subject:accessing': 0.16; 'traceback.': 0.16; 'wrote:': 0.18; 'module': 0.19; 'unlike': 0.19; 'import': 0.22; 'header:User-Agent:1': 0.23; 'recognize': 0.24; 'post': 0.26; 'subject:/': 0.26; 'downloaded': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; "doesn't": 0.30; 'statement': 0.30; 'code': 0.31; 'directory,': 0.31; 'python2.7': 0.31; 'subject:these': 0.31; 'subject:from': 0.34; 'one,': 0.35; 'but': 0.35; 'there': 0.35; 'error.': 0.37; 'two': 0.37; 'to:addr:python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'even': 0.60; 'subject: ': 0.61; 'difference.': 0.84; 'received:fios.verizon.net': 0.84; 'suggests.': 0.84; 'received:108': 0.93 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: Sat, 01 Nov 2014 16:43:02 -0400 References: <9580043d-a75b-4b87-9a21-1b9c0347671f@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: <9580043d-a75b-4b87-9a21-1b9c0347671f@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: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1414874603 news.xs4all.nl 2914 [2001:888:2000:d::a6]:54188 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:80104 On 11/1/2014 10:17 AM, Simon Evans wrote: > Hi Programmers, I have downloaded, installed, and can access the > LXMLTreeBuilder/lxml, from Python2.7. however I have also downloaded > HTMLTreeBuilder/html5lib but cannot get console to recognize the > download, even using the code the download site suggests. I did put > it in the Python2.7 directory, What OS are you using. Exactly where dod you put each lib? Are each of the two installs a single module or a package directory? If the latter, does the directory contain __init__.py > but unlike the HTML one, it doesn't > recognize it, so the import statement returns an error. There must be some difference. Look carefully. And please post the traceback. -- Terry Jan Reedy