You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/lib/python2.6/site-packages/s3cache/__init__.py", line 98, in get
return pickle.load(f)
File "lib/python2.6/site-packages/chartit/utils.py", line 24, in __init__
self.update(self.data)
File "lib/python2.6/site-packages/chartit/utils.py", line 40, in update
TypeError: ("descriptor 'keys' of 'dict' object needs an argument", <class 'chartit.highcharts.hcoptions.HCOptions'>, (<class 'chartit.highcharts.hcoptions.HCOptions'>,))
Don't use collections.defaultdict with a default_factory function
b/c that has problems with pickle.loads which triggers chartit#10. Instead
refactor __getitem__ and create the default values for missing keys
by hand.
cache.set works fine.
cache.get OTOH:
Where s3cache is a custom cache backend (https://github.com/atodorov/django-s3-cache) similar to the filesystem cache backend but stores data in Amazon S3.
The text was updated successfully, but these errors were encountered: