UnpicklingError: Global and instance pickles are not supported

Bug #733387 reported by Marco Pattaro
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web Client
Fix Released
Medium
OpenERP Publisher's Warranty Team

Bug Description

in object account.voucher, every time onchange_price() is called, this traceback pops up several times per call:

Traceback (most recent call last):
  File "/home/mpattaro/openerp/openerp-server-6.0.1-rev3341/bin/service/netrpc_server.py", line 69, in run
    msg = ts.myreceive()
  File "/home/mpattaro/openerp/openerp-server-6.0.1-rev3341/bin/tiny_socket.py", line 88, in myreceive
    res = unpickler.load()
UnpicklingError: Global and instance pickles are not supported.

This is not happening with GTK.
I'm using version 6.0.1

Regards
Marco

Tags: maintenance

Related branches

Revision history for this message
DBR (OpenERP) (dbr-openerp) wrote :

Hello ,

I have tested your scenario successfully at my end but did not face any problem.
Would you please provide more information or producible steps or Screenshots.

Thank you.

Changed in openobject-client-web:
status: New → Incomplete
Revision history for this message
Stephane Wirtel (OpenERP) (stephane-openerp) wrote :

1. Could you check if there is no problem with an Exception from the server to the client (gtk or web).
2. the problem is only with the net-rpc .

Changed in openobject-client-web:
status: Incomplete → Confirmed
milestone: none → 6.0.3
Revision history for this message
DBR (OpenERP) (dbr-openerp) wrote :

Thanks.

Changed in openobject-client-web:
assignee: nobody → OpenERP SA's Web Client R&D (openerp-dev-web)
importance: Undecided → Medium
Revision history for this message
Stephane Wirtel (OpenERP) (stephane-openerp) wrote :

Hi Devishree,

Do you have a fix for this bug ?

Regards,

Stéphane

Changed in openobject-client-web:
assignee: OpenERP SA's Web Client R&D (openerp-dev-web) → OpenERP Publisher's Warranty Team (openerp-opw)
Revision history for this message
Xavier ALT (dex-phx) wrote :

Hi,

I got this error on the web client this week, for me the web client is try to pickle TinyDict class instance without converting it to standard dict. (it got this when calling an on_change on a one2many field as parameter),

Cheers,

Revision history for this message
Cuong (bhcuong2008) wrote :

Hi,

I have the same issue with account.voucher. Click on menu Customer Payment, click New to create. Then click on Tree View, this error will occur.

===
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/netrpc_server.py", line 69, in run
    msg = ts.myreceive()
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/tiny_socket.py", line 88, in myreceive
    res = unpickler.load()
UnpicklingError: Global and instance pickles are not supported.
===

Thanks,

Revision history for this message
Xavier (Open ERP) (xmo-deactivatedaccount) wrote :

Cuong: tried reproducing this: created new database using latest 6.0 bzr (server, addons and client) went to Accounting > Customers > Customer Payment, clicked [New] (switched to form edit/create view) and back to the tree view (via the [Search View…] leftmost switcher button).

No error on either Firefox 5 or Webkit trunk, client is configured to use net-rpc on port 8070 (default).

Xavier: was your test on one of your own addons, or one available in a public repo?

Revision history for this message
Xavier (Open ERP) (xmo-deactivatedaccount) wrote :

Addendum: I also tried it on suppliers voucher, I get calls to onchange_price() (as hinted to by Marco Pattaro) but can not repro errors.

Revision history for this message
Olivier Le Thanh Duong (olethanh) wrote :

Got this error with a web addon I'm writting, adding more complete traceback. It seem to be triggered when trying to raise an exception

Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cprequest.py", line 606, in respond
    cherrypy.response.body = self.handler()
  File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cpdispatch.py", line 25, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/home/olivier/openerp/web/openobject/tools/_expose.py", line 182, in func_wrapper
    res = func(*args, **kw)
  File "/home/olivier/openerp/web/openobject/controllers/_root.py", line 87, in default
    return request.handler()
  File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cpdispatch.py", line 25, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/home/olivier/openerp/web/addons/openerp/controllers/utils.py", line 178, in wrapper
    return fn(*args, **kw)
  File "/home/olivier/openerp/web/openobject/tools/_expose.py", line 182, in func_wrapper
    res = func(*args, **kw)
  File "/home/olivier/openerp/web/addons/view_test/controllers/_popup.py", line 67, in get_new
    ids = proxy.search(['write_date', '>', fromdate], 0, 10, 0, ctx)
  File "/home/olivier/openerp/web/addons/openerp/utils/rpc.py", line 421, in search
    return self('search', criteria, offset, limit, order, context)
  File "/home/olivier/openerp/web/addons/openerp/utils/rpc.py", line 405, in __call__
    self._resource, *args)
  File "/home/olivier/openerp/web/addons/openerp/utils/rpc.py", line 357, in execute
    return self.gateway.execute(obj, method, *args)
  File "/home/olivier/openerp/web/addons/openerp/utils/rpc.py", line 147, in execute
    return self.__execute(obj, method, args)
  File "/home/olivier/openerp/web/addons/openerp/utils/rpc.py", line 133, in __execute
    common.error(_('Application Error'), err.backtrace)
  File "/home/olivier/openerp/web/addons/openerp/utils/common.py", line 24, in error
    raise openobject.errors.TinyError(message=msg, title=title or _("Error"))
TinyError: Traceback (most recent call last):
  File "/home/olivier/openerp/server/bin/service/netrpc_server.py", line 69, in run
    msg = ts.myreceive()
  File "/home/olivier/openerp/server/bin/tiny_socket.py", line 88, in myreceive
    res = unpickler.load()
UnpicklingError: Global and instance pickles are not supported.

Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) wrote :

This bug is being closed as Won't Fix in the OpenERP Web Client project, as it is not going to be developed further after the 6.0 series. It will be replaced in 6.1 by a newer and better web frontend known as the OpenERP Web project[1], so further R&D efforts on the 6.0 project would be wasted.
Bugs affecting customers in production of course continue to be handled via the OpenERP Enterprise (OPW) maintenance service.
You can find more details about this in the Bug Management FAQ[2].

Changed in openobject-client-web:
assignee: OpenERP Publisher's Warranty Team (openerp-opw) → nobody
importance: Medium → Undecided
milestone: 6.0.3 → none
status: Confirmed → Won't Fix
Changed in openobject-client-web:
status: Won't Fix → Confirmed
Changed in openobject-client-web:
status: Confirmed → In Progress
Revision history for this message
Sananaz (Open ERP) (sma-tiny) wrote :

Hello All,

The fix for web-client has been committed to lp:~openerp-dev/openobject-client-web/6.0-opw-4079-sma
with the following revision.
Revision-info:
4711 <email address hidden>

Soon it will be merged into Stable web-client.

Thank you for notifying.

Changed in openobject-client-web:
status: In Progress → Fix Committed
Amit Parik (amit-parik)
Changed in openobject-client-web:
assignee: nobody → OpenERP R&D Web Team (openerp-dev-web)
Changed in openobject-client-web:
assignee: OpenERP R&D Web Team (openerp-dev-web) → OpenERP Publisher's Warranty Team (openerp-opw)
importance: Undecided → Medium
tags: added: maintenance
Revision history for this message
Chirag Patel (OpenERP) (cpa-openerp) wrote :

Hello,

It has been fixed on http://bazaar.launchpad.net/~openerp/openobject-client-web/6.0/revision/4750
revision number-4750.

Thank you.

Changed in openobject-client-web:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.