sono nuovo di OpenERP e mi sono deciso ad installarlo dopo aver visto il progetto "Medical"
Per i miei test ho usato un server dedicato ed ho scaricato Ubuntu 10.4 Server seguendo questa guida :
Tutto è andato liscio, ho avviato il server (openerp-server.py -s) ed anche la parte web (openerp-web.py).
Mi sono quindi collegato via browser(mozilla) al mio server [http://ipserveropenerp:8080]
Ho effettuato il login ed ed ecco l'errore riferito alla mappa dei caratteri :
<type 'exceptions.TypeError'> Python 2.6.5: /usr/bin/python
Tue May 17 14:52:22 2011
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/home/openerp/lp/openerp/web/lib/cherrypy/_cprequest.py in respond(self=<cherrypy._cprequest.Request object>, path_info='/openerp/execute')
643 if self.handler:
644 self.stage = 'handler'
645 response.body = self.handler()
646
647 # Finalize
response = <cherrypy._cprequest.Response object>, response.body = [], self = <cherrypy._cprequest.Request object>, self.handler = <cherrypy._cpdispatch.LateParamPageHandler object>
/home/openerp/lp/openerp/web/lib/cherrypy/lib/encoding.py in __call__(self=<cherrypy.lib.encoding.ResponseEncoder instance>, *args=(), **kwargs={})
186 def __call__(self, *args, **kwargs):
187 response = cherrypy.serving.response
188 self.body = self.oldhandler(*args, **kwargs)
189
190 if isinstance(self.body, basestring):
self = <cherrypy.lib.encoding.ResponseEncoder instance>, self.body undefined, self.oldhandler = <cherrypy._cpdispatch.LateParamPageHandler object>, args = (), kwargs = {}
/home/openerp/lp/openerp/web/lib/cherrypy/_cpdispatch.py in __call__(self=<cherrypy._cpdispatch.LateParamPageHandler object>)
27 def __call__(self):
28 try:
29 return self.callable(*self.args, **self.kwargs)
30 except TypeError:
31 x = sys.exc_info()[1]
self = <cherrypy._cpdispatch.LateParamPageHandler object>, self.callable = <bound method Root.default of <openobject.controllers._root.Root object>>, self.args = ('openerp', 'execute'), self.kwargs = {'payload': u'eJxdkstqwzAQRX_Fu2nAhHZRGrotFLpudqUIxR47Ar3Qo25i...Cdt-XG29FzCC5HotZYB9HwnVSoKZHmPBEhXCt8GVZ_gBxjMxI'}
/home/openerp/lp/openerp/web/openobject/tools/_expose.py in func_wrapper(*args=(<openobject.controllers._root.Root object>, 'openerp', 'execute'), **kw={'payload': u'eJxdkstqwzAQRX_Fu2nAhHZRGrotFLpudqUIxR47Ar3Qo25i...Cdt-XG29FzCC5HotZYB9HwnVSoKZHmPBEhXCt8GVZ_gBxjMxI'})
180 raise cherrypy.HTTPError(405)
181
182 res = func(*args, **kw)
183 if format == 'json' or (allow_json and 'allow_json' in cherrypy.request.params):
184 cherrypy.response.headers['Content-Type'] = 'text/javascript'
global res = '/home/openerp/lp/openerp/web/doc/openerp-web.cfg', func = <function default>, args = (<openobject.controllers._root.Root object>, 'openerp', 'execute'), kw = {'payload': u'eJxdkstqwzAQRX_Fu2nAhHZRGrotFLpudqUIxR47Ar3Qo25i...Cdt-XG29FzCC5HotZYB9HwnVSoKZHmPBEhXCt8GVZ_gBxjMxI'}
/home/openerp/lp/openerp/web/openobject/controllers/_root.py in default(self=<openobject.controllers._root.Root object>, *args=('openerp', 'execute'), **kw={'payload': u'eJxdkstqwzAQRX_Fu2nAhHZRGrotFLpudqUIxR47Ar3Qo25i...Cdt-XG29FzCC5HotZYB9HwnVSoKZHmPBEhXCt8GVZ_gBxjMxI'})
88 request.handler = cherrypy.NotFound()
89
90 return request.handler()
91
92 def find_handler(self):
request = <cherrypy._ThreadLocalProxy object>, request.handler = <cherrypy._cpdispatch.LateParamPageHandler object>
/home/openerp/lp/openerp/web/lib/cherrypy/_cpdispatch.py in __call__(self=<cherrypy._cpdispatch.LateParamPageHandler object>)
27 def __call__(self):
28 try:
29 return self.callable(*self.args, **self.kwargs)
30 except TypeError:
31 x = sys.exc_info()[1]
self = <cherrypy._cpdispatch.LateParamPageHandler object>, self.callable = <function index>, self.args = (), self.kwargs = {'payload': u'eJxdkstqwzAQRX_Fu2nAhHZRGrotFLpudqUIxR47Ar3Qo25i...Cdt-XG29FzCC5HotZYB9HwnVSoKZHmPBEhXCt8GVZ_gBxjMxI'}
/home/openerp/lp/openerp/web/addons/openerp/controllers/utils.py in wrapper(*args=(), **kw={'payload': u'eJxdkstqwzAQRX_Fu2nAhHZRGrotFLpudqUIxR47Ar3Qo25i...Cdt-XG29FzCC5HotZYB9HwnVSoKZHmPBEhXCt8GVZ_gBxjMxI'})
110 # User is logged in; allow access
111 clear_login_fields(kw)
112 return fn(*args, **kw)
113 else:
114 action = kw.get('login_action', '')
fn = <bound method Execute.index of <openerp.controllers.execute.Execute object>>, args = (), kw = {'payload': u'eJxdkstqwzAQRX_Fu2nAhHZRGrotFLpudqUIxR47Ar3Qo25i...Cdt-XG29FzCC5HotZYB9HwnVSoKZHmPBEhXCt8GVZ_gBxjMxI'}
/home/openerp/lp/openerp/web/openobject/tools/_expose.py in func_wrapper(*args=(<openerp.controllers.execute.Execute object>,), **kw={'payload': u'eJxdkstqwzAQRX_Fu2nAhHZRGrotFLpudqUIxR47Ar3Qo25i...Cdt-XG29FzCC5HotZYB9HwnVSoKZHmPBEhXCt8GVZ_gBxjMxI'})
180 raise cherrypy.HTTPError(405)
181
182 res = func(*args, **kw)
183 if format == 'json' or (allow_json and 'allow_json' in cherrypy.request.params):
184 cherrypy.response.headers['Content-Type'] = 'text/javascript'
global res = '/home/openerp/lp/openerp/web/doc/openerp-web.cfg', func = <function index>, args = (<openerp.controllers.execute.Execute object>,), kw = {'payload': u'eJxdkstqwzAQRX_Fu2nAhHZRGrotFLpudqUIxR47Ar3Qo25i...Cdt-XG29FzCC5HotZYB9HwnVSoKZHmPBEhXCt8GVZ_gBxjMxI'}
/home/openerp/lp/openerp/web/addons/openerp/controllers/execute.py in index(self=<openerp.controllers.execute.Execute object>, payload=u'eJxdkstqwzAQRX_Fu2nAhHZRGrotFLpudqUIxR47Ar3Qo25i...Cdt-XG29FzCC5HotZYB9HwnVSoKZHmPBEhXCt8GVZ_gBxjMxI')
16 decoded_payload = ast.literal_eval(
17 zlib.decompress(
18 base64.urlsafe_b64decode(payload)))
19 action, data = decoded_payload['action'], decoded_payload['data']
20 cherrypy.request.params.update(decoded_payload)
global base64 = <module 'base64' from '/usr/lib/python2.6/base64.pyc'>, base64.urlsafe_b64decode = <function urlsafe_b64decode>, payload = u'eJxdkstqwzAQRX_Fu2nAhHZRGrotFLpudqUIxR47Ar3Qo25i...Cdt-XG29FzCC5HotZYB9HwnVSoKZHmPBEhXCt8GVZ_gBxjMxI'
/usr/lib/python2.6/base64.py in urlsafe_b64decode(s=u'eJxdkstqwzAQRX_Fu2nAhHZRGrotFLpudqUIxR47Ar3Qo25i...Cdt-XG29FzCC5HotZYB9HwnVSoKZHmPBEhXCt8GVZ_gBxjMxI')
110 The alphabet uses '-' instead of '+' and '_' instead of '/'.
111 """
112 return b64decode(s, '-_')
113
114
global b64decode = <function b64decode>, s = u'eJxdkstqwzAQRX_Fu2nAhHZRGrotFLpudqUIxR47Ar3Qo25i...Cdt-XG29FzCC5HotZYB9HwnVSoKZHmPBEhXCt8GVZ_gBxjMxI'
/usr/lib/python2.6/base64.py in b64decode(s=u'eJxdkstqwzAQRX_Fu2nAhHZRGrotFLpudqUIxR47Ar3Qo25i...Cdt-XG29FzCC5HotZYB9HwnVSoKZHmPBEhXCt8GVZ_gBxjMxI', altchars='-_')
69 """
70 if altchars is not None:
71 s = _translate(s, {altchars[0]: '+', altchars[1]: '/'})
72 try:
73 return binascii.a2b_base64(s)
s = u'eJxdkstqwzAQRX_Fu2nAhHZRGrotFLpudqUIxR47Ar3Qo25i...Cdt-XG29FzCC5HotZYB9HwnVSoKZHmPBEhXCt8GVZ_gBxjMxI', global _translate = <function _translate>, altchars = '-_'
/usr/lib/python2.6/base64.py in _translate(s=u'eJxdkstqwzAQRX_Fu2nAhHZRGrotFLpudqUIxR47Ar3Qo25i...Cdt-XG29FzCC5HotZYB9HwnVSoKZHmPBEhXCt8GVZ_gBxjMxI', altchars={'-': '+', '_': '/'})
34 for k, v in altchars.items():
35 translation[ord(k)] = v
36 return s.translate(''.join(translation))
37
38
s = u'eJxdkstqwzAQRX_Fu2nAhHZRGrotFLpudqUIxR47Ar3Qo25i...Cdt-XG29FzCC5HotZYB9HwnVSoKZHmPBEhXCt8GVZ_gBxjMxI', s.translate = <built-in method translate of unicode object>, ''.join undefined, translation = ['x00', 'x01', 'x02', 'x03', 'x04', 'x05', 'x06', 'x07', 'x08', 't', 'n', 'x0b', 'x0c', 'r', 'x0e', 'x0f', 'x10', 'x11', 'x12', 'x13', ...]
<type 'exceptions.TypeError'>: character mapping must return integer, None or unicode
args = ('character mapping must return integer, None or unicode',)
message = 'character mapping must return integer, None or unicode'
Grazie per l'attenzione.