473,386 Members | 1,828 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Python + Newspipe

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 <re******@ufasta.edu.ar>

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
Jul 18 '05 #1
5 1298
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 <re******@ufasta.edu.ar>

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

Jul 18 '05 #2
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
Jul 18 '05 #3
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
Jul 18 '05 #4
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
Jul 18 '05 #5
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
Jul 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Emile van Sebille | last post by:
QOTW: "If we get 2.3.3c1 out in early December, we could release 2.3.3 final before the end of the year, and start 2004 with a 100% bug-free codebase <wink>." -- Tim Peters "cjOr proWe vbCould...
0
by: Emile van Sebille | last post by:
QOTW: "Have you ever used the copy module? I am *not* a beginner, and have used it *once* (and I can't remember what for, either)." -- Michael Hudson "It will likely take a little practice...
0
by: Emile van Sebille | last post by:
QOTW (in the OS agnostic category): "There is a (very popular) Python package out there which exposes the win32 api. I'm not sure what it's called. (win32api? pythonwin? win32all?)" -- Francis...
0
by: Emile van Sebille | last post by:
QOTW (advanced interfaces track): "I'm firmly in favour of any language that can DWIMNWIS." -- Tim Delaney QOTW (MS roadkill track): "Underestimate MS at your own risk. It is one thing to not...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.