← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 664536] Re: v6 AttributeError: 'NoneType' object has no attribute 'locale'

 

CentOs 5:
OpenERP Server V 6.0.0

I installed OpenERP Web 6.0.1,The problem was solved by re-installing
OpenERP Web Client with the version 6.0.0.

I think that the bug is related with the new package of sources of the
new version Web 6.0.1!

Thx
Med

-- 
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/664536

Title:
  v6 AttributeError: 'NoneType' object has no attribute 'locale'

Status in OpenERP Web Client:
  Fix Released

Bug description:
  Hi,

  ubuntu 
  revision rc1 and last revision :

  see topic on openerp forum (I have no ubuntu) :
  http://www.openerp.com/forum/post68229.html#p68229

  log :

  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/openerp-web/addons/openerp/utils/rpc_utils.py", line 36, in <module>
  init_rpc_session()
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/openerp-web/addons/openerp/utils/rpc_utils.py", line 34, in init_rpc_session
  rpc.initialize(host, port, protocol, storage=CPSessionWrapper())
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/openerp-web/addons/openerp/utils/rpc.py", line 374, in initialize
  session = RPCSession(host, port, protocol, storage=storage)
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/openerp-web/addons/openerp/utils/rpc.py", line 246, in __init__
  raise common.message(_("Unsupported protocol."))
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/openerp-web/openobject/i18n/_gettext.py", line 127, in gettext2
  value = gettext(key, locale, domain)
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/openerp-web/openobject/i18n/_gettext.py", line 123, in gettext
  return _gettext(key, locale, domain)
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/openerp-web/openobject/i18n/_gettext.py", line 70, in _gettext
  locale = get_locale()
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/openerp-web/openobject/i18n/utils.py", line 71, in get_locale
  locale = rpc.session.locale
  AttributeError: 'NoneType' object has no attribute 'locale'

  modify in openobject\i18n\utils.py line 70 
  from openerp.utils import rpc
  by
  from addons.openerp.utils import rpc

  
  and after this an other error comes (always in th log I gave before) :

  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/openerp-web/addons/openerp/utils/__init__.py", line 4, in <module>
  import rpc_utils
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/openerp-web/addons/openerp/utils/rpc_utils.py", line 36, in <module>
  init_rpc_session()
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/openerp-web/addons/openerp/utils/rpc_utils.py", line 34, in init_rpc_session
  rpc.initialize(host, port, protocol, storage=CPSessionWrapper())
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/openerp-web/addons/openerp/utils/rpc.py", line 374, in initialize
  session = RPCSession(host, port, protocol, storage=storage)
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/openerp-web/addons/openerp/utils/rpc.py", line 246, in __init__
  raise common.message(_("Unsupported protocol."))
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/openerp-web/addons/openerp/utils/common.py", line 78, in message
  raise TinyMessage(message=msg)
  TinyMessage: Unsupported protocol.

  Bye





References