Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Python + Newspipe

Reply
Thread Tools

Python + Newspipe

 
 
kael
Guest
Posts: n/a
 
      12-10-2004
Hello,

I'm trying to run _Newspipe_ but Python returns an error :

-----------------------------------------------------------------------
[root@kael root]# python2.3 /home/kael/newspipe/newspipe.py
newspipe.py - version 1.1.1 revision 1.42, Copyright (C) 2003-2004
Ricardo M. Reyes <>

Traceback (most recent call last):
File "/home/kael/newspipe/newspipe.py", line 1484, in ?
MainLoop()
File "/home/kael/newspipe/newspipe.py", line 1323, in MainLoop
config = LeerConfig()
File "/home/kael/newspipe/newspipe.py", line 895, in LeerConfig
for attr in ini.options('NewsPipe'):
File "/usr/local/lib/python2.3/ConfigParser.py", line 240, in options
raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'NewsPipe'
-----------------------------------------------------------------------

Unfortunately, I'm new to Linux (RedHat9) and to Python (2.3) and I'm
not able to understand this error message.

Could someone enlighten me ? O

Thank you very much.

--
kael
 
Reply With Quote
 
 
 
 
Dave Kuhlman
Guest
Posts: n/a
 
      12-10-2004
kael wrote:

> Hello,
>
> I'm trying to run _Newspipe_ but Python returns an error :
>
> -----------------------------------------------------------------------
> [root@kael root]# python2.3 /home/kael/newspipe/newspipe.py
> newspipe.py - version 1.1.1 revision 1.42, Copyright (C) 2003-2004
> Ricardo M. Reyes <>
>
> Traceback (most recent call last):
> File "/home/kael/newspipe/newspipe.py", line 1484, in ?
> MainLoop()
> File "/home/kael/newspipe/newspipe.py", line 1323, in MainLoop
> config = LeerConfig()
> File "/home/kael/newspipe/newspipe.py", line 895, in LeerConfig
> for attr in ini.options('NewsPipe'):
> File "/usr/local/lib/python2.3/ConfigParser.py", line 240, in
> options
> raise NoSectionError(section)
> ConfigParser.NoSectionError: No section: 'NewsPipe'
> -----------------------------------------------------------------------
>
> Unfortunately, I'm new to Linux (RedHat9) and to Python (2.3) and
> I'm not able to understand this error message.
>
> Could someone enlighten me ? O
>


1. Read about ConfigParser here:

http://docs.python.org/lib/module-ConfigParser.html

2. Read the traceback from the bottom up: (1) The exception is
raised in ConfigParser.py on line 240 in function/method options.
(2) This was called from newspipe.py on line 895 in
function/method LeerConfig.

3. It's looking for a section named "NewsPipe" in your
options/config file. Check your config file. Is that
section name misspelled? Is the section missing? Does
the NewsPipe documentation tell you where the config file
should be and what it's name is? If not, look in newspipe.py.

Hope this helps.

Dave

--
Dave Kuhlman
http://www.rexx.com/~dkuhlman

 
Reply With Quote
 
 
 
 
kael
Guest
Posts: n/a
 
      12-10-2004
Dave Kuhlman wrote:
> 1. Read about ConfigParser here:
>
> http://docs.python.org/lib/module-ConfigParser.html


Thank you very for this link.

> 2. Read the traceback from the bottom up: (1) The exception is
> raised in ConfigParser.py on line 240 in function/method options.
> (2) This was called from newspipe.py on line 895 in
> function/method LeerConfig.


Should the changes be made in the newspipe/* directory only ? Or should
I manage the ConfigParser.py ?

> 3. It's looking for a section named "NewsPipe" in your
> options/config file. Check your config file. Is that
> section name misspelled? Is the section missing? Does
> the NewsPipe documentation tell you where the config file
> should be and what it's name is? If not, look in newspipe.py.


According to the Newspipe documentation
http://newspipe.sourceforge.net/#configuration, only the 'smtp_server'
and 'opml' lines are absolutely needed in newspipe.py.

Please, see newspipe.py below:
----------------------------------
[NewsPipe]
log_console=1
smtp_server=smtp.free.fr
opml=test.opml
sleep_time=30
check_online=http://www.google.com
----------------------------------

Do you think any lines are missing ?

Unless, it could come from the OPML file ?

> Hope this helps.


Yes. But, unfortunately, not enough - it's hard to be a newbie. :-/

I thank you very much for your help.

--
kael

@759 .beats, 2004-12-10
 
Reply With Quote
 
Peter Hansen
Guest
Posts: n/a
 
      12-10-2004
kael wrote:
> Dave Kuhlman wrote:
>> 3. It's looking for a section named "NewsPipe" in your
>> options/config file. Check your config file. Is that
>> section name misspelled? Is the section missing? Does
>> the NewsPipe documentation tell you where the config file
>> should be and what it's name is? If not, look in newspipe.py.

>
> According to the Newspipe documentation
> http://newspipe.sourceforge.net/#configuration, only the 'smtp_server'
> and 'opml' lines are absolutely needed in newspipe.py.
>
> Please, see newspipe.py below:
> ----------------------------------
> [NewsPipe]
> log_console=1
> smtp_server=smtp.free.fr
> opml=test.opml
> sleep_time=30
> check_online=http://www.google.com
> ----------------------------------


You are misreading something. On the page you referenced above,
it clearly states in "Installation" that the file in question
is named "newspipe.ini", not "newspipe.py". You are confusing
the two, since what you show above is not "newspipe.py" or,
if it is, somebody has messed up...

newspipe.py should contain Python code, newspipe.ini should
contain configuration info like you show above.

If you *have* a newspipe.ini file that contains the above,
but are still getting the error message you reported earlier,
then the program is not *finding* your newspipe.ini file and
you should probably contact the author(s) for assistance,
since this is not a Python issue.

-Peter
 
Reply With Quote
 
kael
Guest
Posts: n/a
 
      12-10-2004
Peter Hansen wrote:
> kael wrote
>>Dave Kuhlman wrote:
>>>3. It's looking for a section named "NewsPipe" in your
>>> options/config file. Check your config file. Is that
>>> section name misspelled? Is the section missing? Does
>>> the NewsPipe documentation tell you where the config file
>>> should be and what it's name is? If not, look in newspipe.py.

>>According to the Newspipe documentation
>>http://newspipe.sourceforge.net/#configuration, only the 'smtp_server'
>>and 'opml' lines are absolutely needed in newspipe.py.
>>
>>Please, see newspipe.py below:
>>----------------------------------
>>[NewsPipe]
>>log_console=1
>>smtp_server=smtp.free.fr
>>opml=test.opml
>>sleep_time=30
>>check_online=http://www.google.com
>>----------------------------------

> You are misreading something. On the page you referenced above,
> it clearly states in "Installation" that the file in question
> is named "newspipe.ini", not "newspipe.py". You are confusing
> the two, since what you show above is not "newspipe.py" or,
> if it is, somebody has messed up...


Sorry. The lines above are from *newspipe.ini* not newspipe.py. Thanks
for pointing the confusion.

> newspipe.py should contain Python code, newspipe.ini should
> contain configuration info like you show above.
>
> If you *have* a newspipe.ini file that contains the above,
> but are still getting the error message you reported earlier,
> then the program is not *finding* your newspipe.ini file and
> you should probably contact the author(s) for assistance,
> since this is not a Python issue.


I'm going to contact him. Thank you very much for your reply.

Cheers.

--
kael

@829 .beats, 2004-12-10
 
Reply With Quote
 
kael
Guest
Posts: n/a
 
      12-12-2004
Peter Hansen wrote:
> you should probably contact the author(s) for assistance since this is not a Python issue.


I contact the author and there is a bug in the version I'm using.

Now it works by running

$ cd /newspipe
$ python ./newspipe.py

Instead of

$ python /newspipe/newspipe.py

Thanks for your help.

--
kael
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: [Python-Dev] [python-committers] [RELEASED] Python 3.2 rc 1 Senthil Kumaran Python 0 01-17-2011 10:31 AM
python-2.6.6 coredump running newspipe Thomas Klausner Python 0 10-06-2010 06:53 PM
Re: [Python-Dev] [Python-3000] RELEASED Python 2.6a1 and 3.0a3 Martin v. Löwis Python 0 03-01-2008 10:51 PM
Re: [Python-Dev] [Python-3000] RELEASED Python 2.6a1 and 3.0a3 Paul Moore Python 0 03-01-2008 10:39 PM
Searching comp.lang.python/python-list@python.org (was: UTF-8) skip@pobox.com Python 0 03-10-2007 02:50 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57