Bug#368862: gaupol: Should depend on Enchant

2006-05-25 Thread Ryan Hayle
Package: gaupol
Version: 0.4.1-1
Severity: important

After installing gaupol, I would get the error below.  Installing
python2.4-enchant fixed the problem.  Either this is a bug or gaupol should
depend on enchant, not recommend it.

INFO: Psyco not found.
INFO: PyEnchant 1.1.3 or greater not found. Spell-checking not possible.
INFO: Failed to read settings from file /home/hackel/.gaupol/gaupol.gtk.conf. 
Using default settings.
/usr/lib/python2.4/site-packages/gaupol/gtk/delegates/guiinit.py:95: 
GtkWarning: new: missing action
  menubar = self.uim.get_widget('/ui/menubar')
/usr/lib/python2.4/site-packages/gaupol/gtk/delegates/guiinit.py:95: 
GtkWarning: open: missing action
  menubar = self.uim.get_widget('/ui/menubar')
/usr/lib/python2.4/site-packages/gaupol/gtk/delegates/guiinit.py:95: 
GtkWarning: open_translation: missing action
  menubar = self.uim.get_widget('/ui/menubar')
/usr/lib/python2.4/site-packages/gaupol/gtk/delegates/guiinit.py:95: 
GtkWarning: find_menu_position: assertion `GTK_IS_WIDGET (prev_child)' failed
  menubar = self.uim.get_widget('/ui/menubar')
/usr/lib/python2.4/site-packages/gaupol/gtk/delegates/guiinit.py:95: 
GtkWarning: select_video: missing action
  menubar = self.uim.get_widget('/ui/menubar')
/usr/lib/python2.4/site-packages/gaupol/gtk/delegates/guiinit.py:95: Warning: 
invalid (NULL) pointer instance
  menubar = self.uim.get_widget('/ui/menubar')
/usr/lib/python2.4/site-packages/gaupol/gtk/delegates/guiinit.py:95: Warning: 
g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
  menubar = self.uim.get_widget('/ui/menubar')
Traceback (most recent call last):
  File /usr/bin/gaupol, line 274, in ?
main.main(args[1:])
  File /usr/lib/python2.4/site-packages/gaupol/gtk/main.py, line 48, in main
application = Application()
  File /usr/lib/python2.4/site-packages/gaupol/gtk/application.py, line 82, 
in __init__
self.init_gui()
  File /usr/lib/python2.4/site-packages/gaupol/gtk/delegates/guiinit.py, line 
63, in init_gui
main_toolbar = self._init_menubar_and_main_toolbar(vbox)
  File /usr/lib/python2.4/site-packages/gaupol/gtk/delegates/guiinit.py, line 
104, in _init_menubar_and_main_toolbar
self._init_open_button()
  File /usr/lib/python2.4/site-packages/gaupol/gtk/delegates/guiinit.py, line 
138, in _init_open_button
self.open_button.connect('clicked'  , self.on_open_main_file_activated)
  File /usr/lib/python2.4/site-packages/gaupol/gtk/delegates/__init__.py, 
line 74, in __getattr__
return getattr(self.master, name)
  File /usr/lib/python2.4/site-packages/gaupol/gtk/application.py, line 102, 
in __getattr__
return self._delegations[name].__getattribute__(name)
KeyError: 'on_open_main_file_activated'
Traceback (most recent call last):
  File /usr/lib/python2.4/site-packages/gaupol/gtk/dialogs/debug.py, line 
340, in show
dialog.set_text(exctype, value, tb)
  File /usr/lib/python2.4/site-packages/gaupol/gtk/dialogs/debug.py, line 
305, in set_text
self._print_system_information()
  File /usr/lib/python2.4/site-packages/gaupol/gtk/dialogs/debug.py, line 
236, in _print_system_information
except (ImportError, enchant.Error):
UnboundLocalError: local variable 'enchant' referenced before assignment


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-1-k7
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages gaupol depends on:
ii  python2.4 2.4.3-3An interactive high-level object-o
ii  python2.4-glade2  2.8.2-3GTK+ bindings: Glade support
ii  python2.4-gtk22.8.2-3Python bindings for the GTK+ widge

Versions of packages gaupol recommends:
pn  iso-codes none (no description available)
ii  python2.4-enchant 1.1.5-1spellchecking library for Python
pn  python2.4-psyco   none (no description available)

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#368862: gaupol: Should depend on Enchant

2006-05-25 Thread Piotr Ozarowski
Ryan Hayle ([EMAIL PROTECTED]):
 KeyError: 'on_open_main_file_activated'
[...]
 UnboundLocalError: local variable 'enchant' referenced before assignment

I think it's two different bugs. Unfortunately I can't reproduce none of
them. After removing python2.4-enchant, spellchecker is disabled but
everything else seems to work fine (I'm not getting python exceptions).

Can you write more about what were you doing, just before you get this
exception?
-- 
-=[ Piotr Ozarowski ]=-
-=[ http://www.ozarowski.pl ]=-


pgpKZt5yBPSql.pgp
Description: PGP signature


Bug#368862: gaupol: Should depend on Enchant

2006-05-25 Thread Ryan Hayle

On 25/05/06 11:13, Piotr Ozarowski wrote:

I think it's two different bugs. Unfortunately I can't reproduce none of
them. After removing python2.4-enchant, spellchecker is disabled but
everything else seems to work fine (I'm not getting python exceptions).

Can you write more about what were you doing, just before you get this
exception?
  
Hmm, I guess I should have tested this further.  I removed 
python2.4-enchant and can't reproduce it either.  All I did originally 
was apt-get install gaupol, then run gaupol file.srt (as user) and got 
the error immediately.  No UI appeared at all.  I didn't try it a second 
time, I just installed python2.4-enchant after that and it worked.  I 
tried removing my ~/.gaupol directory but this didn't help.  I don't 
know what else could have changed, it's rather odd!


Ryan

--
Ryan Hayle [EMAIL PROTECTED]



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#368862: gaupol: Should depend on Enchant

2006-05-25 Thread Piotr Ozarowski
tags 368862 + unreproducible
thanks


pgp26ApL3wuSj.pgp
Description: PGP signature