c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #01331
Re: [Bug 664536] Re: v6 AttributeError: 'NoneType' object has no attribute 'locale'
I don't have too much experience with Openerp, linux and the works. Don't
know exactly what is going on. Probably Jeroen Vet is right. But if you
still have problems maybe you can check or try my install procedure:
1. Install Linux Ubuntu 10.04 LTS in a empty virtual box using the virtual
machine install mode. Perform a full system upgrade. (I guess this is not
required if you install a newer version).
2. Install dependencies with apt-get:
sudo apt-get -y update
sudo apt-get -y upgrade
sudo apt-get -y install postgresql wget bzr language-pack-es
language-support-es python python-dev build-essential python-setuptools
python-psycopg2 python-reportlab python-egenix-mxdatetime python-tz
python-pychart python-pydot python-lxml python-libxslt1 python-vobject
graphviz python-libxml2 python-imaging python-profiler python-openssl
python-matplotlib python-hippocanvas python-yaml python-mako
python-xlwt python-cherrypy3 python-formencode python-simplejson
python-pybabel
3. sudo easy_install -U setuptools (Don't thing this is really needed)
4. edit postgresql config files
5. reboot
6. Download the bzr sources. I prefer to do this inside the user folder
instead of /opt:
mkdir openerp
cd openerp
bzr branch lp:openerp openerp
mkdir trunk
cd trunk
python bzr_set.py -v trunk
(if you already have downloaded the branches, just perform un update)
7. Then try to execute the trunk/server/bin/./openerp-server.py with command
line arguments for database setup. Use -s to save the settings.
8. Then try to execute the trunk/web/.openerp-web.py without arguments.
9. If everything works, kill the servers and edit the config files created.
The web client's is in the doc folder.
Good luck!
On Wed, Oct 27, 2010 at 8:52 AM, Sam_inv <664536@xxxxxxxxxxxxxxxxxx>
wrote:
> Thx for the reply.
>
> I tried your solution and changed the file located at /etc/openerp-web.cfg
> Then restarted both server and web.
>
> But my output is still the same.
>
> Sam
>
> --
> v6 AttributeError: 'NoneType' object has no attribute 'locale'
> https://bugs.launchpad.net/bugs/664536
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in OpenObject Web Client: New
>
> 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
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/openobject-client-web/+bug/664536/+subscribe
>
--
v6 AttributeError: 'NoneType' object has no attribute 'locale'
https://bugs.launchpad.net/bugs/664536
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
Status in OpenObject Web Client: New
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