Re: [Tutor] module paths

2008-07-06 Thread Kent Johnson
On Sat, Jul 5, 2008 at 6:37 PM, Gonzalo Garcia-Perate <[EMAIL PROTECTED]> wrote: > I'm looking at python after a long time. I wanted to build a quick > parser for some rss feeds and have started using feedparser. > > When I test my code on the python interactive shell things work fine > but when I

Re: [Tutor] module paths

2008-07-06 Thread Gonzalo Garcia-Perate
ok I fixed it. I removed 2.4 and re-linked /usr/local/bin/python to /Library/Frameworks/Python.framework/Versions/Current/bin/python thanks! 2008/7/6 Gonzalo Garcia-Perate <[EMAIL PROTECTED]>: > That's what I thought but no. There is an install of 2.4 but not in > use. /usr/local/bin/Python point

Re: [Tutor] module paths

2008-07-05 Thread Gonzalo Garcia-Perate
That's what I thought but no. There is an install of 2.4 but not in use. /usr/local/bin/Python points to -> /Library/Frameworks/Python.framework/Versions/2.5/bin/python feedparser is installed in /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages both the interactive in

Re: [Tutor] module paths

2008-07-05 Thread arsyed
I copy/pasted your script and it ran fine on my end. Is it possible that you've got more than one installation of python and the feedparser module is installed somewhere other than for the python interpreter at /usr/local/bin/python (since that's what your script references)? Perhaps trying "python

[Tutor] module paths

2008-07-05 Thread Gonzalo Garcia-Perate
I'm looking at python after a long time. I wanted to build a quick parser for some rss feeds and have started using feedparser. When I test my code on the python interactive shell things work fine but when I try to write it into a file I get the following error: AttributeError: 'module' object has