← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 693298] Re: [6.0-Rc1] Web client error on starting

 

I delete all these files sr.po and sr@xxxxxxxxx and restart the web client. This time, the web client doesn't crash as previously reported, but it generates different error "TypeError: sequence item 65: expected string or Unicode, bool found"
(see Screenshot-7.png).

$ bzr stat -S
?   access.log
?   error.log
?   messages.mo
?   openerp-web.cfg
 D  addons/openerp/po/javascript/sr.po
 D  addons/openerp/po/javascript/sr@xxxxxxxx
 D  addons/openerp/po/messages/sr.po
 D  addons/openerp/po/messages/sr@xxxxxxxx
 D  addons/view_calendar/po/javascript/sr.po
 D  addons/view_calendar/po/javascript/sr@xxxxxxxx
 D  addons/view_calendar/po/messages/sr.po
 D  addons/view_calendar/po/messages/sr@xxxxxxxx
 D  addons/view_diagram/po/javascript/sr.po
 D  addons/view_diagram/po/javascript/sr@xxxxxxxx
 D  addons/view_diagram/po/messages/sr.po
 D  addons/view_diagram/po/messages/sr@xxxxxxxx
 D  addons/view_graph/po/javascript/sr.po
 D  addons/view_graph/po/javascript/sr@xxxxxxxx
 D  addons/view_graph/po/messages/sr.po
 D  addons/view_graph/po/messages/sr@xxxxxxxx


$ ./openerp-web.py  --config=openerp-web.cfg
/home/phongnt/Documents/Projects/openerp-trunk/web/lib/formencode/api.py:10: UserWarning: Module formencode was already imported from /home/phongnt/Documents/Projects/openerp-trunk/web/lib/formencode/__init__.pyc, but /usr/lib/pymodules/python2.6 is being added to sys.path
  from pkg_resources import resource_filename
/home/phongnt/Documents/Projects/openerp-trunk/web/lib/formencode/api.py:10: UserWarning: Module cherrypy was already imported from /home/phongnt/Documents/Projects/openerp-trunk/web/lib/cherrypy/__init__.pyc, but /usr/lib/pymodules/python2.6 is being added to sys.path
  from pkg_resources import resource_filename
[27/Dec/2010:17:59:32] ENGINE Bus STARTING
[27/Dec/2010:17:59:32] ENGINE Started monitor thread '_TimeoutMonitor'.
[27/Dec/2010:17:59:32] ENGINE Started monitor thread 'Autoreloader'.
[27/Dec/2010:17:59:32] ENGINE Serving on 0.0.0.0:8080
[27/Dec/2010:17:59:32] ENGINE Bus STARTED

[27/Dec/2010:17:59:41] ENGINE Started monitor thread 'Monitor'.
[27/Dec/2010:17:59:41] INFO Loading module 'openerp'
[27/Dec/2010:17:59:42] INFO Loading module 'view_calendar'
[27/Dec/2010:17:59:43] INFO Loading module 'view_graph'
[27/Dec/2010:17:59:43] INFO Loading module 'view_diagram'
127.0.0.1 - - [27/Dec/2010:17:59:43] "GET / HTTP/1.1" 303 376 "" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.04 (lucid) Firefox/3.6.13"
[27/Dec/2010:17:59:43] HTTP Traceback (most recent call last):
  File "/home/phongnt/Documents/Projects/openerp-trunk/web/lib/cherrypy/_cprequest.py", line 606, in respond
    cherrypy.response.body = self.handler()
  File "/home/phongnt/Documents/Projects/openerp-trunk/web/lib/cherrypy/_cpdispatch.py", line 25, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/home/phongnt/Documents/Projects/openerp-trunk/web/openobject/tools/_expose.py", line 191, in func_wrapper
    res = func(*args, **kw)
  File "/home/phongnt/Documents/Projects/openerp-trunk/web/openobject/controllers/_root.py", line 85, in default
    return request.handler()
  File "/home/phongnt/Documents/Projects/openerp-trunk/web/lib/cherrypy/_cpdispatch.py", line 25, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/home/phongnt/Documents/Projects/openerp-trunk/web/openobject/tools/_expose.py", line 191, in func_wrapper
    res = func(*args, **kw)
  File "/home/phongnt/Documents/Projects/openerp-trunk/web/addons/openerp/controllers/utils.py", line 196, in wrapper
    return fn(*args, **kw)
  File "/home/phongnt/Documents/Projects/openerp-trunk/web/addons/openerp/controllers/root.py", line 167, in login
    return tiny_login(target=location, db=db, user=user, password=password, action="login", message=message)
  File "/home/phongnt/Documents/Projects/openerp-trunk/web/openobject/tools/_expose.py", line 231, in func_wrapper
    return render_template(_template, res).encode("utf-8")
  File "/home/phongnt/Documents/Projects/openerp-trunk/web/openobject/tools/_expose.py", line 150, in render_template
    return utils.NoEscape(template.render_unicode(**kw))
  File "/home/phongnt/Documents/Projects/openerp-trunk/web/lib/mako/template.py", line 292, in render_unicode
    as_unicode=True)
  File "/home/phongnt/Documents/Projects/openerp-trunk/web/lib/mako/runtime.py", line 576, in _render
    return context._pop_buffer().getvalue()
  File "/home/phongnt/Documents/Projects/openerp-trunk/web/lib/mako/util.py", line 124, in getvalue
    return self.delim.join(self.data)
TypeError: sequence item 65: expected string or Unicode, bool found

[27/Dec/2010:17:59:43] HTTP 
Request Headers:
  COOKIE: Session=10c07597cadb24b572fadba61c8077db3e; session_id=2cce5faed3f26b8760c2e4cdf86d96c01348c16b
  HOST: localhost:8080
  ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
  ACCEPT-CHARSET: ISO-8859-1,utf-8;q=0.7,*;q=0.7
  USER-AGENT: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.04 (lucid) Firefox/3.6.13
  CONNECTION: keep-alive
  Remote-Addr: 127.0.0.1
  ACCEPT-LANGUAGE: en-us,en;q=0.7,vi;q=0.3
  ACCEPT-ENCODING: gzip,deflate
  KEEP-ALIVE: 115
/usr/lib/python2.6/cgitb.py:173: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
  value = pydoc.html.repr(getattr(evalue, name))
127.0.0.1 - - [27/Dec/2010:17:59:44] "GET /openerp/login?db=&user= HTTP/1.1" 500 29780 "" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.04 (lucid) Firefox/3.6.13"

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/693298

Title:
  [6.0-Rc1] Web client error on starting

Status in OpenObject Web Client:
  Fix Released

Bug description:
  Hello,
I just updated the web client with the last revision. When I start a new session, here's the error displayed in the server (nothing at client's side) .


[22/Dec/2010:09:26:53]  Syntax error while loading translation for locale "sr@latin" from addon "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/view_diagram"
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/openobject/i18n/_gettext.py", line 78, in _load_translations
    tr = _load_translation(path, locale, domain)
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/openobject/i18n/_gettext.py", line 67, in _load_translation
    locale_path, [locale], domain)
  File "/usr/lib/pymodules/python2.6/babel/support.py", line 309, in load
    return cls(fileobj=open(filename, 'rb'), domain=domain)
  File "/usr/lib/pymodules/python2.6/babel/support.py", line 283, in __init__
    gettext.GNUTranslations.__init__(self, fp=fileobj)
  File "/usr/lib/python2.6/gettext.py", line 180, in __init__
    self._parse(fp)
  File "/usr/lib/python2.6/gettext.py", line 315, in _parse
    self.plural = c2py(plural)
  File "/usr/lib/python2.6/gettext.py", line 126, in c2py
    return eval('lambda n: int(%s)' % plural)
  File "<string>", line 1
    lambda n: int((test(n%10==1  and  n%100!=11 ,  0 , test( n%10>=2  and  n%10< =4  and  (n%100<10  or  n%100>=20) ,  1 ,  2))))
                                                                                 ^
SyntaxError: invalid syntax





References