Skip to content

Instantly share code, notes, and snippets.

@justquick
Created February 15, 2010 15:42
Show Gist options
  • Save justquick/304742 to your computer and use it in GitHub Desktop.
Save justquick/304742 to your computer and use it in GitHub Desktop.
INT1675:project jquick$ ./manage.py snag "http://news.google.com/news?ned=us&topic=w&output=rss"
Aggregating: http://news.google.com/news?ned=us&topic=w&output=rss
Traceback (most recent call last):
File "./manage.py", line 11, in <module>
execute_manager(settings)
File "/Users/jquick/Downloads/django/django/core/management/__init__.py", line 438, in execute_manager
utility.execute()
File "/Users/jquick/Downloads/django/django/core/management/__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/Users/jquick/Downloads/django/django/core/management/base.py", line 195, in run_from_argv
self.execute(*args, **options.__dict__)
File "/Users/jquick/Downloads/django/django/core/management/base.py", line 222, in execute
output = self.handle(*args, **options)
File "../synagg/management/commands/snag.py", line 21, in handle
Feed.objects.create(url=url)
File "/Users/jquick/Downloads/django/django/db/models/manager.py", line 140, in create
return self.get_query_set().create(**kwargs)
File "/Users/jquick/Downloads/django/django/db/models/query.py", line 348, in create
obj.save(force_insert=True, using=self.db)
File "../synagg/models.py", line 38, in save
super(Feed, self).save(*a, **kw)
File "/Users/jquick/Downloads/django/django/db/models/base.py", line 430, in save
self.save_base(using=using, force_insert=force_insert, force_update=force_update)
File "/Users/jquick/Downloads/django/django/db/models/base.py", line 506, in save_base
for f in meta.local_fields if not isinstance(f, AutoField)]
File "/Users/jquick/Downloads/django/django/db/models/fields/subclassing.py", line 28, in inner
return func(*args, **kwargs)
File "/Users/jquick/Downloads/django/django/db/models/fields/subclassing.py", line 28, in inner
return func(*args, **kwargs)
File "/Users/jquick/Downloads/django/django/db/models/fields/__init__.py", line 298, in get_db_prep_save
return self.get_db_prep_value(value, connection=connection, prepared=False)
File "/Users/jquick/Downloads/django/django/db/models/fields/subclassing.py", line 58, in inner
return func(*args, **kwargs)
File "/Library/Python/2.6/site-packages/picklefield/fields.py", line 134, in get_db_prep_value
value = force_unicode(dbsafe_encode(value, self.compress))
File "/Library/Python/2.6/site-packages/picklefield/fields.py", line 41, in dbsafe_encode
value = b64encode(dumps(deepcopy(value)))
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/copy.py", line 162, in deepcopy
y = copier(x, memo)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/copy.py", line 255, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/copy.py", line 189, in deepcopy
y = _reconstruct(x, rv, 1, memo)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/copy.py", line 323, in _reconstruct
y = callable(*args)
TypeError: __init__() takes exactly 4 arguments (2 given)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment