← Back to team overview

zeitgeist team mailing list archive

[Bug 497316] [NEW] TypeError: get_most_used_with_subjects() takes exactly 5 arguments (2 given)

 

Public bug reported:

I just added a new testcase to tests/remote-test.py, which is
unfortunatly failing:

markus@thekorn ~/devel/zeitgeist/trunk % python test/remote-test.py ZeitgeistRemoteAPITest.testGetMostUsedWithSubjects                                  :(
DEBUG:zeitgeist.engine:Creating engine 'resonance'
INFO:zeitgeist.engine:Using database: :memory:
DEBUG:root:Checking for another running instance...
DEBUG:root:No running instances found.
INFO:root:Starting Zeitgeist service...
DEBUG:zeitgeist.engine:Inserted 23 events in 0.010520s
E
======================================================================
ERROR: testGetMostUsedWithSubjects (__main__.ZeitgeistRemoteAPITest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/remote-test.py", line 200, in testGetMostUsedWithSubjects
    result = self.client._iface.GetMostUsedWithSubjects(["i4"])
  File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 140, in __call__
    **keywords)
  File "/usr/lib/pymodules/python2.6/dbus/connection.py", line 620, in call_blocking
    message, timeout)
DBusException: org.freedesktop.DBus.Python.TypeError: Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/dbus/service.py", line 702, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/media/devel/zeitgeist/trunk/_zeitgeist/engine/remote.py", line 88, in GetMostUsedWithSubjects
    return _engine.get_most_used_with_subjects(uris)
TypeError: get_most_used_with_subjects() takes exactly 5 arguments (2 given)


----------------------------------------------------------------------
Ran 1 test in 3.032s

FAILED (errors=1)

So either make all argument accessible via the DBus API or choose
reasonable defaults

** Affects: zeitgeist
     Importance: Critical
         Status: Confirmed

** Changed in: zeitgeist
       Status: New => Confirmed

** Changed in: zeitgeist
   Importance: Undecided => Critical

-- 
TypeError: get_most_used_with_subjects() takes exactly 5 arguments (2 given)
https://bugs.launchpad.net/bugs/497316
You received this bug notification because you are a member of Zeitgeist
Developers, which is the registrant for Zeitgeist Framework.

Status in Zeitgeist Framework: Confirmed

Bug description:
I just added a new testcase to tests/remote-test.py, which is unfortunatly failing:

markus@thekorn ~/devel/zeitgeist/trunk % python test/remote-test.py ZeitgeistRemoteAPITest.testGetMostUsedWithSubjects                                  :(
DEBUG:zeitgeist.engine:Creating engine 'resonance'
INFO:zeitgeist.engine:Using database: :memory:
DEBUG:root:Checking for another running instance...
DEBUG:root:No running instances found.
INFO:root:Starting Zeitgeist service...
DEBUG:zeitgeist.engine:Inserted 23 events in 0.010520s
E
======================================================================
ERROR: testGetMostUsedWithSubjects (__main__.ZeitgeistRemoteAPITest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/remote-test.py", line 200, in testGetMostUsedWithSubjects
    result = self.client._iface.GetMostUsedWithSubjects(["i4"])
  File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 140, in __call__
    **keywords)
  File "/usr/lib/pymodules/python2.6/dbus/connection.py", line 620, in call_blocking
    message, timeout)
DBusException: org.freedesktop.DBus.Python.TypeError: Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/dbus/service.py", line 702, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/media/devel/zeitgeist/trunk/_zeitgeist/engine/remote.py", line 88, in GetMostUsedWithSubjects
    return _engine.get_most_used_with_subjects(uris)
TypeError: get_most_used_with_subjects() takes exactly 5 arguments (2 given)


----------------------------------------------------------------------
Ran 1 test in 3.032s

FAILED (errors=1)

So either make all argument accessible via the DBus API or choose reasonable defaults





Follow ups

References