GTK 客户端出错
-
各位大大,
小弟新手,最近在测试openerp时遇到一个GTK客户端出错的问题, 具体如下:
服务器环境: LinuxMint 12 32bit(ubuntu 11.10), openerp版本6.1
客户端环境: Window XP SP3,gtk客户端版本6.1.
客户端可以正常连接,进入后点击左侧菜单里的组件很多都无法访问, 如销售线索, 商机等, 点击后没有任何反应。 做了下测试:
1. 服务器如果是linux, 客户端是windows, 就有这个问题,
2. 服务器windows,客户端windows, 没有问题,
3. 服务器linux, 客户端linux, 没有问题
4. 服务器windows,客户端linux, 也没有问题。
因此,貌似只有服务器是linux而客户端是windows下就会出错。 出错代码如下:Traceback (most recent call last):<br /> File "modules\gui\window\tree.pyo", line 212, in sig_open<br /> File "modules\gui\window\tree.pyo", line 201, in sig_action<br /> File "modules\action\main.pyo", line 206, in exec_keyword<br /> File "modules\action\main.pyo", line 147, in _exec_action<br /> File "modules\gui\window\__init__.pyo", line 48, in create<br /> File "modules\gui\window\form.pyo", line 75, in __init__<br /> File "widget\screen\screen.pyo", line 134, in __init__<br /> File "widget\screen\screen.pyo", line 594, in add_view_id<br /> File "widget\screen\screen.pyo", line 640, in add_view<br /> File "widget\view\widget_parse.pyo", line 53, in parse<br /> File "widget\view\tree_gtk\parser.pyo", line 161, in parse<br /> File "widget\view\tree_gtk\parser.pyo", line 449, in __init__<br />ValueError: Invalid format string<br />Traceback (most recent call last):<br /> File "modules\gui\window\tree.pyo", line 212, in sig_open<br /> File "modules\gui\window\tree.pyo", line 201, in sig_action<br /> File "modules\action\main.pyo", line 206, in exec_keyword<br /> File "modules\action\main.pyo", line 147, in _exec_action<br /> File "modules\gui\window\__init__.pyo", line 48, in create<br /> File "modules\gui\window\form.pyo", line 75, in __init__<br /> File "widget\screen\screen.pyo", line 134, in __init__<br /> File "widget\screen\screen.pyo", line 594, in add_view_id<br /> File "widget\screen\screen.pyo", line 640, in add_view<br /> File "widget\view\widget_parse.pyo", line 53, in parse<br /> File "widget\view\tree_gtk\parser.pyo", line 161, in parse<br /> File "widget\view\tree_gtk\parser.pyo", line 449, in __init__<br />ValueError: Invalid format string<br />Traceback (most recent call last):<br /> File "modules\gui\window\tree.pyo", line 212, in sig_open<br /> File "modules\gui\window\tree.pyo", line 201, in sig_action<br /> File "modules\action\main.pyo", line 206, in exec_keyword<br /> File "modules\action\main.pyo", line 147, in _exec_action<br /> File "modules\gui\window\__init__.pyo", line 48, in create<br /> File "modules\gui\window\form.pyo", line 75, in __init__<br /> File "widget\screen\screen.pyo", line 134, in __init__<br /> File "widget\screen\screen.pyo", line 594, in add_view_id<br /> File "widget\screen\screen.pyo", line 640, in add_view<br /> File "widget\view\widget_parse.pyo", line 53, in parse<br /> File "widget\view\tree_gtk\parser.pyo", line 161, in parse<br /> File "widget\view\tree_gtk\parser.pyo", line 449, in __init__<br />ValueError: Invalid format string<br />C:\Program Files\OpenERP 6.1\Client\openerp-client.exe:138: PangoWarning: couldn't load font "Times New Bold Not-Rotated 10", falling back to "Sans Bold Not-Rotated 10", expect ugly output.<br />C:\Program Files\OpenERP 6.1\Client\library.zip\widget\view\form_gtk\image.py:185: GtkWarning: GdkPixbufLoader finalized without calling gdk_pixbuf_loader_close() - this is not allowed. You must explicitly end the data stream to the loader before dropping the last reference.<br />Traceback (most recent call last):<br /> File "widget\view\form_gtk\parser.pyo", line 123, in button_clicked<br /> File "widget\model\record.pyo", line 382, in get_button_action<br /> File "modules\action\main.pyo", line 117, in _exec_action<br />TypeError: 'int' object is unsubscriptable<br />C:\Program Files\OpenERP 6.1\Client\library.zip\widget\view\form_gtk\image.py:185: GtkWarning: GdkPixbufLoader finalized without calling gdk_pixbuf_loader_close() - this is not allowed. You must explicitly end the data stream to the loader before dropping the last reference.<br />C:\Program Files\OpenERP 6.1\Client\library.zip\common\common.py:353: GtkWarning: Could not find the icon 'gtk-file'. The 'hicolor' theme<br />was not found either, perhaps you need to install it.<br />You can get a copy from:<br /> http://icon-theme.freedesktop.org/releases<br />Traceback (most recent call last):<br /> File "widget\view\form_gtk\many2one.pyo", line 279, in sig_edit<br /> File "widget\view\form_gtk\many2one.pyo", line 77, in __init__<br /> File "widget\screen\screen.pyo", line 134, in __init__<br /> File "widget\screen\screen.pyo", line 594, in add_view_id<br /> File "widget\screen\screen.pyo", line 640, in add_view<br /> File "widget\view\widget_parse.pyo", line 53, in parse<br /> File "widget\view\form_gtk\parser.pyo", line 488, in parse<br /> File "widget\view\form_gtk\one2many_list.pyo", line 174, in __init__<br /> File "widget\screen\screen.pyo", line 134, in __init__<br /> File "widget\screen\screen.pyo", line 588, in add_view_id<br /> File "widget\screen\screen.pyo", line 640, in add_view<br /> File "widget\view\widget_parse.pyo", line 53, in parse<br /> File "widget\view\tree_gtk\parser.pyo", line 161, in parse<br /> File "widget\view\tree_gtk\parser.pyo", line 449, in __init__<br />ValueError: Invalid format string<br />C:\Program Files\OpenERP 6.1\Client\library.zip\widget\view\form_gtk\many2one.py:246: Warning: gsignal.c:2392: instance `028794E8' has no handler with id `2942'<br />Traceback (most recent call last):<br /> File "widget\view\form_gtk\many2one.pyo", line 263, in sig_find<br /> File "modules\gui\window\win_search.pyo", line 122, in __init__<br /> File "widget\screen\screen.pyo", line 134, in __init__<br /> File "widget\screen\screen.pyo", line 594, in add_view_id<br /> File "widget\screen\screen.pyo", line 640, in add_view<br /> File "widget\view\widget_parse.pyo", line 53, in parse<br /> File "widget\view\tree_gtk\parser.pyo", line 161, in parse<br /> File "widget\view\tree_gtk\parser.pyo", line 449, in __init__<br />ValueError: Invalid format string<br />C:\Program Files\OpenERP 6.1\Client\library.zip\widget\view\form_gtk\many2one.py:275: Warning: gsignal.c:2392: instance `028794E8' has no handler with id `2942'<br />Traceback (most recent call last):<br /> File "widget\view\form_gtk\many2one.pyo", line 279, in sig_edit<br /> File "widget\view\form_gtk\many2one.pyo", line 77, in __init__<br /> File "widget\screen\screen.pyo", line 134, in __init__<br /> File "widget\screen\screen.pyo", line 594, in add_view_id<br /> File "widget\screen\screen.pyo", line 640, in add_view<br /> File "widget\view\widget_parse.pyo", line 53, in parse<br /> File "widget\view\form_gtk\parser.pyo", line 488, in parse<br /> File "widget\view\form_gtk\one2many_list.pyo", line 174, in __init__<br /> File "widget\screen\screen.pyo", line 134, in __init__<br /> File "widget\screen\screen.pyo", line 588, in add_view_id<br /> File "widget\screen\screen.pyo", line 640, in add_view<br /> File "widget\view\widget_parse.pyo", line 53, in parse<br /> File "widget\view\tree_gtk\parser.pyo", line 161, in parse<br /> File "widget\view\tree_gtk\parser.pyo", line 449, in __init__<br />ValueError: Invalid format string<br />Traceback (most recent call last):<br /> File "widget\view\form_gtk\many2one.pyo", line 279, in sig_edit<br /> File "widget\view\form_gtk\many2one.pyo", line 77, in __init__<br /> File "widget\screen\screen.pyo", line 134, in __init__<br /> File "widget\screen\screen.pyo", line 594, in add_view_id<br /> File "widget\screen\screen.pyo", line 640, in add_view<br /> File "widget\view\widget_parse.pyo", line 53, in parse<br /> File "widget\view\form_gtk\parser.pyo", line 488, in parse<br /> File "widget\view\form_gtk\one2many_list.pyo", line 174, in __init__<br /> File "widget\screen\screen.pyo", line 134, in __init__<br /> File "widget\screen\screen.pyo", line 588, in add_view_id<br /> File "widget\screen\screen.pyo", line 640, in add_view<br /> File "widget\view\widget_parse.pyo", line 53, in parse<br /> File "widget\view\tree_gtk\parser.pyo", line 161, in parse<br /> File "widget\view\tree_gtk\parser.pyo", line 449, in __init__<br />ValueError: Invalid format string<br />Traceback (most recent call last):<br /> File "widget\view\form_gtk\many2one.pyo", line 279, in sig_edit<br /> File "widget\view\form_gtk\many2one.pyo", line 77, in __init__<br /> File "widget\screen\screen.pyo", line 134, in __init__<br /> File "widget\screen\screen.pyo", line 594, in add_view_id<br /> File "widget\screen\screen.pyo", line 640, in add_view<br /> File "widget\view\widget_parse.pyo", line 53, in parse<br /> File "widget\view\form_gtk\parser.pyo", line 488, in parse<br /> File "widget\view\form_gtk\one2many_list.pyo", line 174, in __init__<br /> File "widget\screen\screen.pyo", line 134, in __init__<br /> File "widget\screen\screen.pyo", line 588, in add_view_id<br /> File "widget\screen\screen.pyo", line 640, in add_view<br /> File "widget\view\widget_parse.pyo", line 53, in parse<br /> File "widget\view\tree_gtk\parser.pyo", line 161, in parse<br /> File "widget\view\tree_gtk\parser.pyo", line 449, in __init__<br />ValueError: Invalid format string<br />Traceback (most recent call last):<br /> File "widget\view\form_gtk\many2one.pyo", line 279, in sig_edit<br /> File "widget\view\form_gtk\many2one.pyo", line 77, in __init__<br /> File "widget\screen\screen.pyo", line 134, in __init__<br /> File "widget\screen\screen.pyo", line 594, in add_view_id<br /> File "widget\screen\screen.pyo", line 640, in add_view<br /> File "widget\view\widget_parse.pyo", line 53, in parse<br /> File "widget\view\form_gtk\parser.pyo", line 488, in parse<br /> File "widget\view\form_gtk\one2many_list.pyo", line 174, in __init__<br /> File "widget\screen\screen.pyo", line 134, in __init__<br /> File "widget\screen\screen.pyo", line 588, in add_view_id<br /> File "widget\screen\screen.pyo", line 640, in add_view<br /> File "widget\view\widget_parse.pyo", line 53, in parse<br /> File "widget\view\tree_gtk\parser.pyo", line 161, in parse<br /> File "widget\view\tree_gtk\parser.pyo", line 449, in __init__<br />ValueError: Invalid format string<br />Traceback (most recent call last):<br /> File "widget\view\form_gtk\many2one.pyo", line 279, in sig_edit<br /> File "widget\view\form_gtk\many2one.pyo", line 77, in __init__<br /> File "widget\screen\screen.pyo", line 134, in __init__<br /> File "widget\screen\screen.pyo", line 594, in add_view_id<br /> File "widget\screen\screen.pyo", line 640, in add_view<br /> File "widget\view\widget_parse.pyo", line 53, in parse<br /> File "widget\view\form_gtk\parser.pyo", line 488, in parse<br /> File "widget\view\form_gtk\one2many_list.pyo", line 174, in __init__<br /> File "widget\screen\screen.pyo", line 134, in __init__<br /> File "widget\screen\screen.pyo", line 588, in add_view_id<br /> File "widget\screen\screen.pyo", line 640, in add_view<br /> File "widget\view\widget_parse.pyo", line 53, in parse<br /> File "widget\view\tree_gtk\parser.pyo", line 161, in parse<br /> File "widget\view\tree_gtk\parser.pyo", line 449, in __init__<br />ValueError: Invalid format string<br />C:\Program Files\OpenERP 6.1\Client\library.zip\widget\view\form_gtk\image.py:194: GtkWarning: GdkPixbufLoader finalized without calling gdk_pixbuf_loader_close() - this is not allowed. You must explicitly end the data stream to the loader before dropping the last reference.<br />Traceback (most recent call last):<br /> File "widget\view\form_gtk\many2one.pyo", line 279, in sig_edit<br /> File "widget\view\form_gtk\many2one.pyo", line 77, in __init__<br /> File "widget\screen\screen.pyo", line 134, in __init__<br /> File "widget\screen\screen.pyo", line 594, in add_view_id<br /> File "widget\screen\screen.pyo", line 640, in add_view<br /> File "widget\view\widget_parse.pyo", line 53, in parse<br /> File "widget\view\form_gtk\parser.pyo", line 488, in parse<br /> File "widget\view\form_gtk\one2many_list.pyo", line 174, in __init__<br /> File "widget\screen\screen.pyo", line 134, in __init__<br /> File "widget\screen\screen.pyo", line 588, in add_view_id<br /> File "widget\screen\screen.pyo", line 640, in add_view<br /> File "widget\view\widget_parse.pyo", line 53, in parse<br /> File "widget\view\tree_gtk\parser.pyo", line 161, in parse<br /> File "widget\view\tree_gtk\parser.pyo", line 449, in __init__<br />ValueError: Invalid format string<br />C:\Program Files\OpenERP 6.1\Client\library.zip\widget\view\form_gtk\many2one.py:275: Warning: gsignal.c:2392: instance `02879400' has no handler with id `6930'<br /><br />ValueError: Invalid format string<br />
字数限制,我把完整日志文件贴在附件中, 哪位大大能帮忙解决这个问题? 公司服务器必须是linux的, 而公司客户端大都是xp的系统的。 万分感谢! -
File "C:\Program Files\OpenERP 6.1\Client\widget\view\form_gtk\calendar.py", line 46, in init
self.fmt_length = len((DT.now()).strftime(self.format))
ValueError: Invalid format string
错误信息不需要贴那么长,最后几行就行
这个问题是GTK的日期控件有个Bug,只有在服务器是linux而gtk在Windows中文版时会遇到。