a class that defines __slots__ without defining __getstate__ cannot be pickled
Hi,
I have now an error message showing up when accessing the django admin
interface for some of my models. Fails already at the front page
The main problem, that I have is, that the stack trace does not relate
to any line of my code, so I'm alittle at a loss how to fix it.
The stack trace is:
Traceback (most recent call last):
File "/usr/lib/python2.6/logging/handlers.py", line 541, in emit
s = self.makePickle(record)
File "/usr/lib/python2.6/logging/handlers.py", line 511, in makePickle
s = cPickle.dumps(record.__dict__, 1)
File "/opt/mh_python/lib/python2.6/copy_reg.py", line 77, in _reduce_ex
raise TypeError("a class that defines __slots__ without "
TypeError: a class that defines __slots__ without defining __getstate__
cannot be pickled
I think the issue might be related to the fact, that I am using a socket
logger and that socket logging tries to pickle the log record.
Perhaps the admin interface adds args to a log record, that cannot be
pickled?
Ther admin interface seems to work, but I don't really like having back
traces, that I don't understand in my logs.
How to best continue locating the root cause?
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home