Thread View: news.software.readers
5 messages
5 total messages
Started by Patrick Lamaizière
Sun, 17 Apr 2005 12:46
[XPN 0.4.5] Type Error
Author: Patrick Lamaizière
Date: Sun, 17 Apr 2005 12:46
Date: Sun, 17 Apr 2005 12:46
27 lines
2304 bytes
2304 bytes
Hi,
I've got a "TypeError" with Xpn :
./xpn.py:2145: GtkDeprecationWarning: gtk.FALSE is deprecated, use False
instead
self.vbox1 = gtk.VBox(gtk.FALSE,0)
Traceback (most recent call last):
File "./xpn.py", line 2276, in ?
main=MainWin(options.use_home,options.custom_dir)
File "./xpn.py", line 2150, in __init__
self.menubar=MainMenuBar(self.window)
File "/home/patrick/xpn-0.4.5/xpn_src/MenuBar.py", line 80, in
__init__
self.menuitems["group"]=self.insert_menu_item(menu_subscribed,_("_View
Next Group"),"white.xpm",accel_group,"G",gtk.FALSE)
File "/home/patrick/xpn-0.4.5/xpn_src/MenuBar.py", line 23, in
insert_menu_item
menuitem.add_accelerator("activate",accel_group,ord(accel_key),
modifier, gtk.ACCEL_VISIBLE)
TypeError: flag values must be strings, ints or tuples
--------
I use gtk-2.6.7, py24-gtk-2.6.1, python-2.4.1 under FreeBSD (5.4RC2)
May be a version problem between py24-gtk-2.6.1 and gtk-2.6.7 ?
Thanks.
Re: [XPN 0.4.5] Type Error
Author: Nemesis
Date: Mon, 18 Apr 2005 19:13
Date: Mon, 18 Apr 2005 19:13
65 lines
4129 bytes
4129 bytes
Mentre io pensavo ad una intro simpatica "Patrick Lamaizière" scriveva:
[Error #1]
> I've got a "TypeError" with Xpn :
> ./xpn.py:2145: GtkDeprecationWarning: gtk.FALSE is deprecated, use False
[cut]
[Error #2]
> TypeError: flag values must be strings, ints or tuples
[cut]
> I use gtk-2.6.7, py24-gtk-2.6.1, python-2.4.1 under FreeBSD (5.4RC2)
> May be a version problem between py24-gtk-2.6.1 and gtk-2.6.7 ?
> Thanks.
Hi Patrick,
You these issues are related to pygtk2.6. Something changed passing from
pygtk2.4 to pygtk2.6, until now I wasn't able to try XPN with
pygtk2.6/gtk2.6, but now I got them working on Windows and I'm working
to solve these problems.
By the way, the former is only a deprecation warning it shouldn't
prevent XPN working.
The latter is a real error (caused by a change in the pygtk API), if you
want you can try to solve this problem modifying the "insert_menu_item"
method, you can find it in xpn_src/Menubar.py.
This is "insert_menu_item" before the change:
--------------------------------------------------------------------------------------------------------
def insert_menu_item(self,menu,name,image_name,accel_group,accel_key,modifier):
menuitem=gtk.ImageMenuItem(name)
image=gtk.Image()
image.set_from_file("pixmaps/"+image_name)
menuitem.set_image(image)
menuitem.set_border_width(2)
menu.append(menuitem)
if accel_key:
menuitem.add_accelerator("activate",accel_group,ord(accel_key), modifier, gtk.ACCEL_VISIBLE)
return menuitem
--------------------------------------------------------------------------------------------------------
and this is "insert_menu_item" after the change:
--------------------------------------------------------------------------------------------------------
def insert_menu_item(self,menu,name,image_name,accel_group,accel_key,modifier):
menuitem=gtk.ImageMenuItem(name)
image=gtk.Image()
image.set_from_file("pixmaps/"+image_name)
menuitem.set_image(image)
menuitem.set_border_width(2)
menu.append(menuitem)
if accel_key:
if modifier==gtk.FALSE: modifier=0
menuitem.add_accelerator("activate",accel_group,ord(accel_key), modifier, gtk.ACCEL_VISIBLE)
return menuitem
--------------------------------------------------------------------------------------------------------
This little change should solve the problem. If you can't get it working
contact me, I may send you a correct version I'm working on. I think
I'll release it in the next month with some little changes.
--
I've got to sit down and work out where I stand.
|\ | |HomePage : http://nem01.altervista.org
| \|emesis |XPN (my nr): http://xpn.altervista.org
Re: [XPN 0.4.5] Type Error
Author: Patrick Lamaizière
Date: Mon, 18 Apr 2005 22:22
Date: Mon, 18 Apr 2005 22:22
23 lines
2145 bytes
2145 bytes
Nemesis écrivait : > This little change should solve the problem. Yes it's work, thanks. I've got another problem, when i want to suscribe to a group (by sample fr.test), there is an error "le fichier fr.test est manquant" (file fr.test is missing). Server's log (server_logs.dat): ... Tue Apr 19 00:08:58 2005 :: << 200 news8-e.free.fr NNRP Service Ready - newsmaster@proxad.net (posting ok). Tue Apr 19 00:08:58 2005 :: >> GROUP fr.test Tue Apr 19 00:08:58 2005 :: << 211 82 188682 188763 fr.test Tue Apr 19 00:08:58 2005 :: >> XOVER 188264-188763 Tue Apr 19 00:08:59 2005 :: << 224 data follows I've got a file ft.test.db in ./groups_info I will try to look more this week-end. Regards.
Re: [XPN 0.4.5] Type Error
Author: Nemesis
Date: Wed, 20 Apr 2005 19:02
Date: Wed, 20 Apr 2005 19:02
35 lines
2533 bytes
2533 bytes
Mentre io pensavo ad una intro simpatica "Patrick Lamaizière" scriveva: >> This little change should solve the problem. > Yes it's work, thanks. Good. > I've got another problem, when i want to suscribe to a group (by sample > fr.test), there is an error "le fichier fr.test est manquant" (file > fr.test is missing). > Server's log (server_logs.dat): > ... > Tue Apr 19 00:08:58 2005 :: << 200 news8-e.free.fr NNRP Service Ready - > newsmaster@proxad.net (posting ok). > Tue Apr 19 00:08:58 2005 :: >> GROUP fr.test > Tue Apr 19 00:08:58 2005 :: << 211 82 188682 188763 fr.test > Tue Apr 19 00:08:58 2005 :: >> XOVER 188264-188763 > Tue Apr 19 00:08:59 2005 :: << 224 data follows > > I've got a file ft.test.db in ./groups_info Hmm are you sure you have a "ft.test.db" file? I can figure out who created such a file. Anyway try deleting groups_info directory (or at least the whole files in it except groups.dat wich stores newsgroups list). > I will try to look more this week-end. Bye. -- Confucius say... Man who has woman on ground has piece on earth! |\ | |HomePage : http://nem01.altervista.org | \|emesis |XPN (my nr): http://xpn.altervista.org
Re: [XPN 0.4.5] Type Error
Author: Patrick Lamaizière
Date: Sat, 23 Apr 2005 12:28
Date: Sat, 23 Apr 2005 12:28
19 lines
2071 bytes
2071 bytes
Nemesis écrivait : >> I've got a file ft.test.db in ./groups_info > > Hmm are you sure you have a "ft.test.db" file? I made a typo, it is "fr.test.db". But yes i'm sure, the problem is here. Xpn creates a file named fr.test.db but it looks for "fr.test" in "show_subscribed (Groups_Win.py)". If i rename this file without ".db" it works (i mean the group is in the subscribed list and i can read articles). > I can figure out who created such a file. It is XPN :) But i don't find where it creates the file ? Feel free to reply by mail on my Reply-to:
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads