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


Groups > comp.lang.python > #31741

Re: Python on Windows

Path csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.85.MISMATCH!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <mail@timgolden.me.uk>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'url:pypi': 0.03; 'subject:Python': 0.05; 'pypi': 0.07; 'setup.py': 0.07; 'subject:Windows': 0.09; 'python': 0.09; '(issue': 0.09; 'subdirectory': 0.09; 'cc:addr:python-list': 0.10; 'feedparser': 0.16; 'from:addr:timgolden.me.uk': 0.16; 'from:name:tim golden': 0.16; 'message-id:@timgolden.me.uk': 0.16; 'received:74.55.86': 0.16; 'received:74.55.86.74': 0.16; 'received:smtp.webfaction.com': 0.16; 'received:webfaction.com': 0.16; 'run:': 0.16; 'tjg': 0.16; 'wanted.': 0.16; 'wrote:': 0.17; '(in': 0.18; 'previously': 0.18; 'windows': 0.19; 'module': 0.19; 'variable': 0.20; 'trying': 0.21; 'import': 0.21; 'tells': 0.22; 'cc:2**0': 0.23; 'installed': 0.23; 'seems': 0.23; 'cc:no real name:2**0': 0.24; 'linux': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; '(which': 0.26; 'setting': 0.26; '[1]': 0.27; 'post': 0.28; 'environment': 0.29; '120': 0.29; 'surprised': 0.29; 'url:mailman': 0.29; "i'm": 0.29; 'install': 0.29; 'url:python': 0.32; 'file': 0.32; 'url:listinfo': 0.32; 'received:192.168.100': 0.33; 'everyone': 0.33; 'that,': 0.34; 'thanks': 0.34; 'list': 0.35; 'exist': 0.35; 'but': 0.36; 'url:org': 0.36; 'two': 0.37; 'subject:: ': 0.38; 'files': 0.38; 'sure': 0.38; 'page': 0.38; 'received:192': 0.39; 'little': 0.39; 'where': 0.40; 'received:192.168': 0.40; 'url:mail': 0.40; 'skip:u 10': 0.60; 'telling': 0.61; 'first': 0.61; 'free': 0.61; 'back': 0.62; 'helping': 0.63; 'more': 0.63; 'here': 0.65; 'charset:windows-1252': 0.65; 'from:addr:mail': 0.71; 'magazine': 0.71; 'unusual': 0.71; 'article': 0.78; 'confusing': 0.84; 'replied.': 0.91; 'to:none': 0.93; 'imagine': 0.96
Date Fri, 19 Oct 2012 14:44:34 +0100
From Tim Golden <mail@timgolden.me.uk>
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1
MIME-Version 1.0
CC python-list@python.org
Subject Re: Python on Windows
References <1pKdnT9EiNaO2ODNnZ2dnUVZ8rCdnZ2d@bt.com> <JY2dnYfmpcsEyRzNnZ2dnUVZ8vadnZ2d@bt.com>
In-Reply-To <JY2dnYfmpcsEyRzNnZ2dnUVZ8vadnZ2d@bt.com>
Content-Type text/plain; charset=windows-1252
Content-Transfer-Encoding 7bit
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 <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2506.1350654285.27098.python-list@python.org> (permalink)
Lines 45
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1350654285 news.xs4all.nl 6921 [2001:888:2000:d::a6]:59309
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:31741

Show key headers only | View raw


On 19/10/2012 14:24, graham wrote:
> Thanks to everyone who replied.
> 
> Python was installed in the subdirectory C:\Python27 with the file
> feedparser.py residing in C:\Python27\Lib\email.
> 
> Setting the Windows environment variable (which did not previously
> exist) to C:\Python27\Lib\email allowed me to import feedparser
> successfully.
> 
> However, it seems that this feedparser module is not the module I wanted.
> 
> I'm trying to follow an introductory Python course from the magazine
> Linux Format (issue number 120 I think). 


I'm very surprised that the article tells you to import a non-standard
module without telling you where to download it. I imagine that the
module is this one:

  http://pypi.python.org/pypi/feedparser/

(In general, PyPI is the first place to look for Python packages).

> This is all confusing and frustrating.

Understandably. It's not unknown, but it is unusual for two
identically-named packages to exist for Python. It's more
unfortunate when it's one used in a beginner's article.

If you understand how to download the .zip file from the page above and
unzip it then you need to go to the directory where the unzipped files
are and run:

  python setup.py install

If you're not sure how to do any of that, feel free to post back here or
to the python-tutor list [1] which is a little more experience in
helping newcomers.

TJG

[1] http://mail.python.org/mailman/listinfo/tutor

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


Thread

Python on Windows graham <grahams@tectime.com> - 2012-10-16 12:29 +0100
  Re: Python on Windows Marco Nawijn <nawijn@gmail.com> - 2012-10-16 04:35 -0700
    Re: Python on Windows Dwight Hutto <dwightdhutto@gmail.com> - 2012-10-16 07:56 -0400
  Re: Python on Windows Joel Goldstick <joel.goldstick@gmail.com> - 2012-10-16 07:44 -0400
  Re: Python on Windows graham <grahams@tectime.com> - 2012-10-19 14:24 +0100
    Re: Python on Windows Tim Golden <mail@timgolden.me.uk> - 2012-10-19 14:44 +0100
    Re: Python on Windows rusi <rustompmody@gmail.com> - 2012-10-19 06:48 -0700
    Re: Python on Windows Tim Golden <mail@timgolden.me.uk> - 2012-10-19 15:00 +0100
    Re: Python on Windows graham <grahams@tectime.com> - 2012-10-19 15:12 +0100
      Re: Python on Windows Tim Golden <mail@timgolden.me.uk> - 2012-10-19 15:24 +0100
    Re: Python on Windows Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-10-19 15:23 +0100
    Re: Python on Windows Tim Golden <mail@timgolden.me.uk> - 2012-10-19 15:40 +0100
    Re: Python on Windows Gisle Vanem <gvanem@broadpark.no> - 2012-10-20 14:47 +0200

csiph-web