Ticket #13328: interacitve_output.txt

File interacitve_output.txt, 1.7 KB (added by Brandon Konkle, 11 years ago)

iPython interactive interpreter output, including traceback

Line 
1Python 2.6.1 (r261:67515, Feb 11 2010, 00:51:29)
2Type "copyright", "credits" or "license" for more information.
3
4IPython 0.9.1 -- An enhanced Interactive Python.
5
6In [1]: from myapp.blogs.models import Entry
7
8In [2]: from django.core.cache import cache
9
10In [3]: e = Entry.live.order_by('-release_date')[:10]
11
12In [4]: cache.set('temp', e, 10)
13---------------------------------------------------------------------------
14TypeError                                 Traceback (most recent call last)
15
16/path/to/myapp/<ipython console> in <module>()
17
18/path/to/django/core/cache/backends/memcached.pyc in set(self, key, value, timeout)
19     52
20     53     def set(self, key, value, timeout=0):
21---> 54         self._cache.set(smart_str(key), value, self._get_memcache_timeout(timeout))
22     55
23     56     def delete(self, key):
24
25/path/to/myvirtualenv/lib/python2.6/site-packages/memcache.pyc in set(self, key, val, time, min_compress_len)
26    513         indicating don't ever try to compress.
27    514         '''
28--> 515         return self._set("set", key, val, time, min_compress_len)
29    516
30    517
31
32/path/to/myvirtualenv/lib/python2.6/site-packages/memcache.pyc in _set(self, cmd, key, val, time, min_compress_len)
33    723         self._statlog(cmd)
34    724
35--> 725         store_info = self._val_to_store_info(val, min_compress_len)
36    726         if not store_info: return(0)
37    727
38
39/path/to/myvirtualenv/lib/python2.6/site-packages/memcache.pyc in _val_to_store_info(self, val, min_compress_len)
40    695             if self.persistent_id:
41    696                 pickler.persistent_id = self.persistent_id
42--> 697             pickler.dump(val)
43    698             val = file.getvalue()
44    699
45
46TypeError: expected string or Unicode object, NoneType found
47
Back to Top