tinyerp-client failure : sig_login

Bug #224897 reported by Schmirrwurst
4
Affects Status Importance Assigned to Milestone
tinyerp-client (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: tinyerp-client

I've installed tinyerp client and server 4.2.0-1 from ubuntu hardy package directory.
(Ubuntu 8.04)

 Users are created, and terp user owns the terp database.
 When I launch tinyerp-client the first time (no .terp conf file present), I've got the following output :

Code:

   $ tinyerp-client
 Traceback (most recent call last):
   File "/usr/lib/tinyerp-client/modules/gui/main.py", line 704, in sig_login
     id = self.sig_win_menu(quiet=False)
   File "/usr/lib/tinyerp-client/modules/gui/main.py", line 795, in sig_win_menu
     res = self.sig_win_new(widget, type='menu_id', quiet=quiet)
   File "/usr/lib/tinyerp-client/modules/gui/main.py", line 822, in sig_win_new
     win = obj.execute(act_id, {'window':self.window})
   File "/usr/lib/tinyerp-client/modules/action/main.py", line 83, in execute
     self._exec_action(res,datas)
   File "/usr/lib/tinyerp-client/modules/action/main.py", line 131, in _exec_action
     wizard.execute(action['wiz_name'], datas, parent=win, context=context)
   File "/usr/lib/tinyerp-client/modules/action/wizard.py", line 208, in execute
     dia = dialog(res['arch'], res['fields'], res['state'], action, parent)
   File "/usr/lib/tinyerp-client/modules/action/wizard.py", line 73, in __init__
     self.screen.add_view_custom(arch, fields, display=True)
   File "/usr/lib/tinyerp-client/widget/screen/screen.py", line 229, in add_view_custom
     return self.add_view(arch, fields, display, True, toolbar=toolbar)
   File "/usr/lib/tinyerp-client/widget/screen/screen.py", line 266, in add_view
     from widget.view.widget_parse import widget_parse
   File "/usr/lib/tinyerp-client/widget/view/widget_parse.py", line 34, in <module>
     import form_gtk
   File "/usr/lib/tinyerp-client/widget/view/form_gtk/__init__.py", line 1, in <module>
     from parser import *
   File "/usr/lib/tinyerp-client/widget/view/form_gtk/parser.py", line 675, in <module>
     import image
   File "/usr/lib/tinyerp-client/widget/view/form_gtk/image.py", line 40, in <module>
     NOIMAGE = file(common.terp_path_pixmaps("noimage.png"), 'rb').read()
 TypeError: coercing to Unicode: need string or buffer, bool found

 I can access my db, the client itself, doesn't bring back an error, but I can do nothing, I have no menus and so on...
 Then when I close the client and reopen it (this time a .terp conf file has been created), the client crash with following output :

Code:

   $ tinyerp-client
 Traceback (most recent call last):
   File "./tinyerp-client.py", line 129, in <module>
     win.sig_login()
   File "/usr/lib/tinyerp-client/modules/gui/main.py", line 704, in sig_login
     id = self.sig_win_menu(quiet=False)
   File "/usr/lib/tinyerp-client/modules/gui/main.py", line 795, in sig_win_menu
     res = self.sig_win_new(widget, type='menu_id', quiet=quiet)
   File "/usr/lib/tinyerp-client/modules/gui/main.py", line 822, in sig_win_new
     win = obj.execute(act_id, {'window':self.window})
   File "/usr/lib/tinyerp-client/modules/action/main.py", line 83, in execute
     self._exec_action(res,datas)
   File "/usr/lib/tinyerp-client/modules/action/main.py", line 131, in _exec_action
     wizard.execute(action['wiz_name'], datas, parent=win, context=context)
   File "/usr/lib/tinyerp-client/modules/action/wizard.py", line 208, in execute
     dia = dialog(res['arch'], res['fields'], res['state'], action, parent)
   File "/usr/lib/tinyerp-client/modules/action/wizard.py", line 73, in __init__
     self.screen.add_view_custom(arch, fields, display=True)
   File "/usr/lib/tinyerp-client/widget/screen/screen.py", line 229, in add_view_custom
     return self.add_view(arch, fields, display, True, toolbar=toolbar)
   File "/usr/lib/tinyerp-client/widget/screen/screen.py", line 266, in add_view
     from widget.view.widget_parse import widget_parse
   File "/usr/lib/tinyerp-client/widget/view/widget_parse.py", line 34, in <module>
     import form_gtk
   File "/usr/lib/tinyerp-client/widget/view/form_gtk/__init__.py", line 1, in <module>
     from parser import *
   File "/usr/lib/tinyerp-client/widget/view/form_gtk/parser.py", line 675, in <module>
     import image
   File "/usr/lib/tinyerp-client/widget/view/form_gtk/image.py", line 40, in <module>
     NOIMAGE = file(common.terp_path_pixmaps("noimage.png"), 'rb').read()
 TypeError: coercing to Unicode: need string or buffer, bool found

 Here is the corresponding .terprc conf file :

Code:

   [printer]
 path = none
 softpath_html = none
 preview = True
 softpath = none

 [logging]
 output = stdout
 logger =
 verbose = False
 level = ERROR

 [form]
 autosave = False
 toolbar = True

 [support]
 recipient = <email address hidden>
 support_id =

 [tip]
 position = 0
 autostart = False

 [client]
 lang = fr_FR
 modepda = False
 default_path = /home/wsb
 theme = none
 toolbar = both
 form_tab_orientation = 0
 form_tab = left

 [survey]
 position = 3

 [path]
 pixmaps = /usr/share/pixmaps/tinyerp-client/
 share = /usr/share/tinyerp-client/

 [login]
 db = chevrerie
 login = admin
 protocol = http://
 port = 8069
 server = localhost

Revision history for this message
Ccedric (cedric-castanet) wrote :

I have the same.
workaround : just copy a noimage.png file in /usr/share/pixmaps/tinyerp-client/noimage.png and /usr/share/pixmaps/noimage.png
(don't know which target is the good one :-) )
can find a noimage.png file at : http://upload.wikimedia.org/wikipedia/en/7/7c/Noimage.png

Changed in tinyerp-client (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.