Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!eweka.nl!hq-usenetpeers.eweka.nl!xlned.com!feeder7.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.86.MISMATCH!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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'url:pypi': 0.03; 'importing': 0.04; 'beginner': 0.05; 'error:': 0.05; 'importerror:': 0.05; '"the': 0.07; '64-bit': 0.07; 'pypi': 0.07; 'referring': 0.07; 'python': 0.09; 'friday,': 0.09; 'interpreter,': 0.09; 'subject:modules': 0.09; 'cc:addr:python- list': 0.10; 'subject:python': 0.11; 'dec': 0.15; "(i'm": 0.16; '.py': 0.16; 'easy_install': 0.16; 'ez_setup.py': 0.16; 'setuptools': 0.16; 'started:': 0.16; 'subject:install': 0.16; 'url:setuptools': 0.16; 'urllib': 0.16; 'wrote:': 0.17; 'shell': 0.18; '>>>': 0.18; 'windows': 0.19; 'module': 0.19; 'email addr:gmail.com>': 0.20; 'trying': 0.21; 'import': 0.21; '>>>': 0.22; '(by': 0.22; 'installation': 0.23; 'cc:2**0': 0.23; '>': 0.23; "i've": 0.23; 'seems': 0.23; 'downloaded': 0.24; 'somewhere': 0.24; 'command': 0.24; 'script': 0.24; 'tried': 0.25; 'cc:addr:python.org': 0.25; 'header:In-Reply- To:1': 0.25; 'looks': 0.26; 'wrote': 0.26; 'used,': 0.27; 'to?': 0.27; 'message-id:@mail.gmail.com': 0.27; 'subject:/': 0.28; 'run': 0.28; "d'aprano": 0.29; 'installed,': 0.29; 'steven': 0.29; 'url:software': 0.29; 'url:mailman': 0.29; '"the': 0.29; 'skip:& 10': 0.29; 'usually': 0.30; 'worked': 0.30; 'folder': 0.30; 'fri,': 0.30; 'error': 0.30; 'december': 0.32; 'url:python': 0.32; 'file': 0.32; 'running': 0.32; 'url:listinfo': 0.32; 'message.': 0.33; 'received:74.125.82': 0.33; 'anywhere': 0.33; 'directory,': 0.33; 'problem': 0.33; 'tutorial': 0.33; 'another': 0.33; 'that,': 0.34; 'skip:b 20': 0.34; 'received:google.com': 0.34; 'thanks': 0.34; 'pm,': 0.35; 'something': 0.35; 'there': 0.35; 'but': 0.36; 'received:74.125': 0.36; 'url:org': 0.36; 'modules': 0.36; "wasn't": 0.36; 'should': 0.36; 'problems': 0.36; 'correctly': 0.37; 'rather': 0.37; 'subject:: ': 0.38; 'gives': 0.39; 'skip:" 10': 0.40; 'header:Received:5': 0.40; 'url:mail': 0.40; 'your': 0.60; 'accounts': 0.63; 'details': 0.63; 'more': 0.63; 'else.': 0.65; 'talking': 0.66; 'clicking': 0.75; 'autodesk': 0.84; 'download?': 0.84; 'joel': 0.91; 'mistake': 0.91; 'to:none': 0.93; 'online,': 0.98 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=PrHkW+hzoJs0JzPl4/15k5m5ymA6omszlrWS5ZTew84=; b=X5Osct33yQi7bd0msd/0CHiSlqvdz1jOqrj+xYnFbbmKlcWh6g2yX7skn+r8/naWO9 zkeJ4aW5vQ6wvrqGs8VWPextePWzo6CrS0dxxBZYIqbAJmQlhjqSq1F9nfW3zRgIUuYg TKtAPtTiqW4QB/Kie5xUUk0NF/gct6k1+kUO0FnWPC3mFyXEMMppD1qmOV1tkDlHZJ58 F6f/bvpamyKh8Iubaly+hR45end2muo63TVTmQnePYnOGFhMVt0qbsf8DFWc1fZ70Tol 9SQcNriDaEe3wxgINeL7MXepBQhQ011a3qEFE+cg1HZmb7Iaah5LEvP/AfF1huGZlQHI Mn7Q== MIME-Version: 1.0 In-Reply-To: References: <4165a2a8-6960-4d6f-a033-07d34b78efcf@googlegroups.com> <50de6da2$0$29967$c3e8da3$5496439d@news.astraweb.com> Date: Sat, 29 Dec 2012 09:33:59 -0500 Subject: Re: noob can't install python modules/scripts From: Joel Goldstick Cc: "python-list@python.org" Content-Type: multipart/alternative; boundary=f46d04388e1bbb402904d1feab83 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: 173 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1356791647 news.xs4all.nl 6850 [2001:888:2000:d::a6]:50512 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:35749 --f46d04388e1bbb402904d1feab83 Content-Type: text/plain; charset=UTF-8 On Fri, Dec 28, 2012 at 11:40 PM, lostguru wrote: > On Friday, December 28, 2012 11:12:19 PM UTC-5, Steven D'Aprano wrote: > > "The website"? There's more than one website on the Internet. Which > > > > website are you referring to? What .py script did you download? How did > > > > you run it? Details are important! > > > sorry about that; I was using the setuptools package from pypi python [ > http://pypi.python.org/pypi/setuptools ]; I downloaded the ez_setup.py > file from under the 64-bit windows installation section and ran that (by > double clicking on it, I hope this wasn't another noob mistake lol) > > > > It looks like you tried to run the easy_install command from inside the > > > > Python interactive interpreter, rather than from your system shell. > > > > > > > > The system shell (command.com or cmd.exe I guess) will have a $ or % > sign > > > > as the prompt. Python usually has >>> as the prompt, although if you are > > > > running ActivePython it may be something else. You need to run the > > > > "easy_install BeautifulSoup4" command from the system shell, not Python. > > > > > > > > > > > > Try that, and if there's another error, please copy and paste the exact > > > > command you used, and the full error message. > > > running easy_install from the command line worked and BeautifulSoup4 seems > to have installed, thanks for pointing out my mistake > > the only problem I have now is that importing beautifulsoup into a .py > file I wrote generates an error (I'm using ActiveState Komodo Edit 7, is > there another program you would recommend to a beginner like me?) > > trying to run the script gives an import error: > ImportError: No module named BeautifulSoup > You should read the BeautifulSoup tutorial/documentation. If I remember correctly you do from bs4 import BeautifulSoup Look at this tutorial to get started: http://www.crummy.com/software/BeautifulSoup/bs4/doc/ > importing other modules like os and urllib that came with the python > installation work without problems > > looking online, all I've found were other accounts talking about a > beautifulsoup.py that should be in the C:\Python27\Lib\site-packages > directory, but I've found no such thing from the installation anywhere in > the Python folder (funnily enough, I did a drive search with Everything and > found a BeautifulSoup.py in my autodesk maya installation) > > am I somewhere near the mark? or am I off completely? > -- > http://mail.python.org/mailman/listinfo/python-list > -- Joel Goldstick --f46d04388e1bbb402904d1feab83 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable



On Fri, Dec 28, 2012 at 11:40 PM, lostguru <aznjedi585@gmail.co= m> wrote:
On Frid= ay, December 28, 2012 11:12:19 PM UTC-5, Steven D'Aprano wrote:
> "The website"? There's more than one website on the Inte= rnet. Which
>
> website are you referring to? What .py script did you download? How di= d
>
> you run it? Details are important!
>
sorry about that; I was using the setuptools package from pypi python= [ htt= p://pypi.python.org/pypi/setuptools ]; I downloaded the ez_setup.py fil= e from under the 64-bit windows installation section and ran that (by doubl= e clicking on it, I hope this wasn't another noob mistake lol)
>
> It looks like you tried to run the easy_install command from inside th= e
>
> Python interactive interpreter, rather than from your system shell. >
>
>
> The system shell (com= mand.com or cmd.exe I guess) will have a $ or % sign
>
> as the prompt. Python usually has >>> as the prompt, although= if you are
>
> running ActivePython it may be something else. You need to run the
>
> "easy_install BeautifulSoup4" command from the system shell,= not Python.
>
>
>
>
>
> Try that, and if there's another error, please copy and paste the = exact
>
> command you used, and the full error message.
>
running easy_install from the command line worked and BeautifulSoup4 = seems to have installed, thanks for pointing out my mistake

the only problem I have now is that importing beautifulsoup into a .py file= I wrote generates an error (I'm using ActiveState Komodo Edit 7, is th= ere another program you would recommend to a beginner like me?)

trying to run the script gives an import error:
ImportError: No module named BeautifulSoup

<= div>You should read the BeautifulSoup tutorial/documentation.=C2=A0 If I re= member correctly you do=C2=A0
from bs4 import Beauti=
fulSoup

Look at this tutorial to get started:  http://www.crummy.com/softwa=
re/BeautifulSoup/bs4/doc/


importing other modules like os and urllib that came with the python instal= lation work without problems

looking online, all I've found were other accounts talking about a beau= tifulsoup.py that should be in the C:\Python27\Lib\site-packages directory,= but I've found no such thing from the installation anywhere in the Pyt= hon folder (funnily enough, I did a drive search with Everything and found = a BeautifulSoup.py in my autodesk maya installation)

am I somewhere near the mark? or am I off completely?
--
http://mail.python.org/mailman/listinfo/python-list



--
Joel Gold= stick
--f46d04388e1bbb402904d1feab83--