OnProd - PicklingError: Can't pickle <class 'django.utils.safestring.SafeUnicode'>

90 views
Skip to first unread message

Amine Azariz

unread,
May 31, 2012, 2:07:03 PM5/31/12
to google-a...@googlegroups.com
Hi guys,

Another issue (on prod) that appears on its own... How can I fix this one ?

----

deferred.defer(self.__function, *args, **kw)
  File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/deferred/deferred.py", line 254, in defer
    pickled = serialize(obj, *args, **kwargs)
  File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/deferred/deferred.py", line 225, in serialize
    return pickle.dumps(curried, protocol=pickle.HIGHEST_PROTOCOL)
  File "/base/python_runtime/python_dist/lib/python2.5/pickle.py", line 1359, in dumps
    Pickler(file, protocol).dump(obj)
  File "/base/python_runtime/python_dist/lib/python2.5/pickle.py", line 218, in dump
    self.save(obj)
  File "/base/python_runtime/python_dist/lib/python2.5/pickle.py", line 280, in save
    f(self, obj) # Call unbound method with explicit self
  File "/base/python_runtime/python_dist/lib/python2.5/pickle.py", line 542, in save_tuple
    save(element)
  File "/base/python_runtime/python_dist/lib/python2.5/pickle.py", line 280, in save
    f(self, obj) # Call unbound method with explicit self
  File "/base/python_runtime/python_dist/lib/python2.5/pickle.py", line 542, in save_tuple
    save(element)
  File "/base/python_runtime/python_dist/lib/python2.5/pickle.py", line 325, in save
    self.save_reduce(obj=obj, *rv)
  File "/base/python_runtime/python_dist/lib/python2.5/pickle.py", line 413, in save_reduce
    save(state)
  File "/base/python_runtime/python_dist/lib/python2.5/pickle.py", line 280, in save
    f(self, obj) # Call unbound method with explicit self
  File "/base/python_runtime/python_dist/lib/python2.5/pickle.py", line 643, in save_dict
    self._batch_setitems(obj.iteritems())
  File "/base/python_runtime/python_dist/lib/python2.5/pickle.py", line 675, in _batch_setitems
    save(v)
  File "/base/python_runtime/python_dist/lib/python2.5/pickle.py", line 325, in save
    self.save_reduce(obj=obj, *rv)
  File "/base/python_runtime/python_dist/lib/python2.5/pickle.py", line 390, in save_reduce
    save(cls)
  File "/base/python_runtime/python_dist/lib/python2.5/pickle.py", line 280, in save
    f(self, obj) # Call unbound method with explicit self
  File "/base/python_runtime/python_dist/lib/python2.5/pickle.py", line 747, in save_global
    (obj, module, name))
PicklingError: Can't pickle <class 'django.utils.safestring.SafeUnicode'>: it's not the same object as django.utils.safestring.SafeUnicode

Amine Azariz

unread,
Jun 1, 2012, 5:03:25 AM6/1/12
to google-a...@googlegroups.com
No one here ?

Amine Azariz

unread,
Jun 1, 2012, 1:11:06 PM6/1/12
to google-a...@googlegroups.com
UP.

Guys, I still have this issue in my application, defered Jobs fails because of this, this is very urgent.. Can I have at least a temporarily fix that I can push meanwhile this will be fixed ?

Iein Valdez

unread,
Jun 1, 2012, 3:07:42 PM6/1/12
to google-a...@googlegroups.com
Amine - try to post this question to Stack Overflow using the google-app-engine tag. 

Amine Azariz

unread,
Jun 1, 2012, 5:28:28 PM6/1/12
to google-a...@googlegroups.com
Thanks Lein
Reply all
Reply to author
Forward
0 new messages