Gargoyle/Nexus - TypeError: get_db_prep_save() got an unexpected keyword argument 'connection'

250 views
Skip to first unread message

Victor Hooi

unread,
Sep 15, 2011, 6:01:25 PM9/15/11
to disqus-o...@googlegroups.com
heya,

I just downloaded the latest version of Nexus and Gargoyle from Github.

I then installed these both into my virtualenv.

I created a new Django project, and included both in my application, synced my DB, and started runserver.

The app loads up fine =), however, when I go into Gargoyle and attempt to add a switch, it seems to stall indefinitely, and I get an error on the console:

[15/Sep/2011 16:56:33] "GET /nexus/media/nexus/img/facebox/loading.gif HTTP/1.1" 304 0
Traceback (most recent call last):
  File "/Users/victorhooi/.virtualenvs/colloquium/lib/python2.7/site-packages/gargoyle-0.4.0-py2.7.egg/gargoyle/nexus_modules.py", line 42, in wrapper
    "data": func(self, request, *args, **kwargs)
  File "/Users/victorhooi/.virtualenvs/colloquium/lib/python2.7/site-packages/gargoyle-0.4.0-py2.7.egg/gargoyle/nexus_modules.py", line 126, in add
    description = request.POST.get("desc")
  File "/Users/victorhooi/.virtualenvs/colloquium/src/django/django/db/models/manager.py", line 134, in get_or_create
    return self.get_query_set().get_or_create(**kwargs)
  File "/Users/victorhooi/.virtualenvs/colloquium/src/django/django/db/models/query.py", line 377, in get_or_create
    obj.save(force_insert=True, using=self.db)
  File "/Users/victorhooi/.virtualenvs/colloquium/src/django/django/db/models/base.py", line 464, in save
    self.save_base(using=using, force_insert=force_insert, force_update=force_update)
  File "/Users/victorhooi/.virtualenvs/colloquium/src/django/django/db/models/base.py", line 550, in save_base
    for f in meta.local_fields]
TypeError: get_db_prep_save() got an unexpected keyword argument 'connection'
[15/Sep/2011 16:56:38] "POST /nexus/gargoyle/add/ HTTP/1.1" 500 112630

Any ideas why that is?

Also, I couldn't seem to find much documentation on Nexus - are there any good beginner's resources out there yet? Or is it still fairly undocumented?

Thanks,
Victor

David Cramer

unread,
Sep 15, 2011, 6:09:40 PM9/15/11
to disqus-o...@googlegroups.com
Nexus is mostly still undocumented (and draft-ish).

Regarding the error, what version of Django are you using? It may not work pre-Django 1.2.

Victor Hooi

unread,
Sep 15, 2011, 6:22:53 PM9/15/11
to disqus-o...@googlegroups.com

Heya,

Aha, it looks quite awesome even in draft status =). It'll be interesting to see where you guys take this.

I did notice there was a branch of Sentry that seemed to start porting it to Nexus - however, it hasn't had updates since January this year, I think. Is that effort on pause?

Finally, I'm actually on django-trunk - should I try with 1.3 stable?

Cheers,
Victor

David Cramer

unread,
Sep 15, 2011, 6:33:11 PM9/15/11
to disqus-o...@googlegroups.com
Ya I'd recommend 1.3 (unless you want to work on a compatibility patch). We only officially support 1.2 and 1.3 I believe.

Victor Hooi

unread,
Sep 17, 2011, 11:00:14 AM9/17/11
to disqus-o...@googlegroups.com
heya,

Just for closure, can confirm it works fine on 1.3.

So yes, my bad for trying to use 1.4.

Cheers,
Victor
Reply all
Reply to author
Forward
0 new messages