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


Groups > comp.lang.python > #85882

Re: urgent help

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!bcyclone05.am1.xlned.com!bcyclone05.am1.xlned.com!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <davea@davea.name>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.024
X-Spam-Evidence '*H*': 0.95; '*S*': 0.00; 'importerror:': 0.07; 'subject:help': 0.08; 'answering': 0.09; 'url:software': 0.09; 'python': 0.11; 'codecs': 0.16; 'collections': 0.16; 'defaultdict': 0.16; 'sys.path': 0.16; 'using,': 0.16; 'demonstrate': 0.16; 'exception': 0.16; 'wrote:': 0.18; 'module': 0.19; 'seems': 0.21; 'code,': 0.22; 'import': 0.22; 'install': 0.23; 'header:User-Agent:1': 0.23; 'error': 0.23; 'specify': 0.24; 'versions': 0.24; "haven't": 0.24; 'looks': 0.24; "i've": 0.25; 'source': 0.25; 'skip:" 40': 0.26; 'header:In-Reply-To:1': 0.27; 'installed': 0.27; 'am,': 0.29; 'to?': 0.30; 'waste': 0.30; '(which': 0.31; 'lines': 0.31; 'yourself.': 0.31; 'file': 0.32; 'probably': 0.32; 'figure': 0.32; 'open': 0.33; 'says': 0.33; '(most': 0.33; 'problem': 0.35; 'but': 0.35; 'version': 0.36; 'library.': 0.36; 'to:addr:python-list': 0.38; 'recent': 0.39; 'to:addr:python.org': 0.39; 'called': 0.40; 'how': 0.40; 'read': 0.60; 'commands': 0.60; 'first': 0.61; 'our': 0.64; 'charset:windows-1252': 0.65; 'received:74.208': 0.68; 'to,': 0.72; 'details:': 0.80; 'directions,': 0.84; 'dozens': 0.84; 'received:74.208.4.194': 0.84; 'subject:urgent': 0.91; 'bandwidth': 0.96
Date Thu, 19 Feb 2015 04:00:50 -0500
From Dave Angel <davea@davea.name>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
MIME-Version 1.0
To python-list@python.org
Subject Re: urgent help
References <8fa27443-12f7-4ef6-ba6b-4af16abae29d@googlegroups.com>
In-Reply-To <8fa27443-12f7-4ef6-ba6b-4af16abae29d@googlegroups.com>
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 7bit
X-Provags-ID V02:K0:Olu9eEXm5H0GoAqMdkqpOgDZiQiC92BiQ11w6sF+Vk4 G2wxXIMCxkIbJveGsqaY4CN4m7EZMn+YNtf/FB1G2DJQouUi/E 68P4+UCl3+YFM5hXhDGawWP5HxMQGnVORO8cJRAcVYnYUIVaLU UPPS2Stleuk1TnHiAsQt4IOl0jWQ3hrZU9pFzHF3oHpAUCzlvc To1F7ew3lbyTrcl+s1H5BqJkuUK5S8J1K4ytOOzEM8DSy/Yvms i+DeiH+bNm5tFT6EVvKaIHb6jSdQ9J/jomOxKeESn4DpCugBLf xOyOzCbJXpLl3jgZSAdDPcegFtWP1OjCf43CaFL6z+I2Nthr+U BMKdKoS3Sc3lJAPZxOzg=
X-UI-Out-Filterresults notjunk:1;
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
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.18871.1424336461.18130.python-list@python.org> (permalink)
Lines 49
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1424336461 news.xs4all.nl 2856 [2001:888:2000:d::a6]:56125
X-Complaints-To abuse@xs4all.nl
X-Received-Bytes 5038
X-Received-Body-CRC 3900846459
Xref csiph.com comp.lang.python:85882

Show key headers only | View raw


On 02/19/2015 03:35 AM, ismahameed@gcuf.edu.pk wrote:
> this is the error in the following python code, can any one help me
> error{Traceback (most recent call last):
>    File "C:\Python27\Scripts\BeOk\getBeOKExperts.py", line 6, in <module>
>      from BeautifulSoup import BeautifulSoup
> ImportError: No module named BeautifulSoup}
>
>
>
> "#encoding=utf8
> from codecs import open
> from collections import defaultdict
> import re
>
> from BeautifulSoup import BeautifulSoup


When you can demonstrate a problem in a couple of lines of source code, 
why would you waste our bandwidth showing us dozens of unrelated  lines?

Since the error says there's no module named BeautifulSoup, perhaps 
that's because you haven't installed BeautifulSoup.  it's not in the 
standard library.

I've never used it, but a quick web search found me the page:

http://www.crummy.com/software/BeautifulSoup/bs4/doc/

And that seems to say the module is called bs4.

Anyway, if you did install it, and read the directions, and are still 
stumped, you probably need to supply many other details:

1) what version of Python are you using, and do you have multiple 
versions installed
2) what OS
3) where did you download it from, and what commands did you use to 
actually install it  How did you specify which Python version it would 
install to?
4) what your import line looks like (which you did specify)
5) and of course, what the exception is (which you did include)

Other things people may need to know include what directory the bs4.pyc 
file is installed to, what your sys.path is, and so on.  But just 
answering the first questions might let you figure it out for yourself.


-- 
DaveA

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


Thread

urgent help ismahameed@gcuf.edu.pk - 2015-02-19 00:35 -0800
  Re: urgent help Dave Angel <davea@davea.name> - 2015-02-19 04:00 -0500
    Re: urgent help Denis McMahon <denismfmcmahon@gmail.com> - 2015-02-19 14:08 +0000
  Re: urgent help ismahameed@gcuf.edu.pk - 2015-02-19 01:31 -0800
    Re: urgent help ismahameed@gcuf.edu.pk - 2015-02-19 01:46 -0800
      Re: urgent help ismahameed@gcuf.edu.pk - 2015-02-19 01:48 -0800
        Re: urgent help Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-02-19 10:49 +0000

csiph-web