{"action":"created","issue":{"url":"https://api.github.com/repos/LEW21/pydbus/issues/25","repository_url":"https://api.github.com/repos/LEW21/pydbus","labels_url":"https://api.github.com/repos/LEW21/pydbus/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/LEW21/pydbus/issues/25/comments","events_url":"https://api.github.com/repos/LEW21/pydbus/issues/25/events","html_url":"https://github.com/LEW21/pydbus/issues/25","id":177788302,"number":25,"title":"cannot SessionBus().get(\".Flatpak\")","user":{"login":"muelli","id":322807,"avatar_url":"https://avatars.githubusercontent.com/u/322807?v=3","gravatar_id":"","url":"https://api.github.com/users/muelli","html_url":"https://github.com/muelli","followers_url":"https://api.github.com/users/muelli/followers","following_url":"https://api.github.com/users/muelli/following{/other_user}","gists_url":"https://api.github.com/users/muelli/gists{/gist_id}","starred_url":"https://api.github.com/users/muelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muelli/subscriptions","organizations_url":"https://api.github.com/users/muelli/orgs","repos_url":"https://api.github.com/users/muelli/repos","events_url":"https://api.github.com/users/muelli/events{/privacy}","received_events_url":"https://api.github.com/users/muelli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-19T13:44:24Z","updated_at":"2016-09-20T10:01:29Z","closed_at":null,"body":"```\r\nIn [18]: pydbus.SessionBus().get(\".Flatpak\")\r\n---------------------------------------------------------------------------\r\nTypeError                                 Traceback (most recent call last)\r\n<ipython-input-18-99fd72f277f3> in <module>()\r\n----> 1 pydbus.SessionBus().get(\".Flatpak\")\r\n\r\n/tmp/gks/local/lib/python2.7/site-packages/pydbus/proxy.pyc in get(self, bus_name, object_path)\r\n     45                         raise KeyError(\"no such object\")\r\n     46 \r\n---> 47                 return CompositeInterface(introspection)(self, bus_name, object_path)\r\n     48 \r\n     49 class ProxyObject(object):\r\n\r\n/tmp/gks/local/lib/python2.7/site-packages/pydbus/proxy.pyc in CompositeInterface(introspection)\r\n    102 \r\n    103         ifaces = sorted([x for x in introspection if x.tag == \"interface\"], key=lambda x: int(x.attrib[\"name\"].startswith(\"org.freedesktop.DBus.\")))\r\n--> 104         CompositeObject.__bases__ = tuple(Interface(iface) for iface in ifaces)\r\n    105         CompositeObject.__name__ = \"<CompositeObject>\"\r\n    106         CompositeObject.__qualname__ = \"<CompositeObject>(\" + \"+\".join(x.__name__ for x in CompositeObject.__bases__) + \")\"\r\n\r\nTypeError: can only assign non-empty tuple to CompositeObject.__bases__, not ()\r\n\r\nIn [19]:\r\n```\r\n\r\nGetting \".Notifications\" works, though.\r\n\r\nI expected to be able to talk the Flatpak service on the bus.\r\n\r\nIn any case, the error message is not helpful."},"comment":{"url":"https://api.github.com/repos/LEW21/pydbus/issues/comments/248257872","html_url":"https://github.com/LEW21/pydbus/issues/25#issuecomment-248257872","issue_url":"https://api.github.com/repos/LEW21/pydbus/issues/25","id":248257872,"user":{"login":"LEW21","id":9737,"avatar_url":"https://avatars.githubusercontent.com/u/9737?v=3","gravatar_id":"","url":"https://api.github.com/users/LEW21","html_url":"https://github.com/LEW21","followers_url":"https://api.github.com/users/LEW21/followers","following_url":"https://api.github.com/users/LEW21/following{/other_user}","gists_url":"https://api.github.com/users/LEW21/gists{/gist_id}","starred_url":"https://api.github.com/users/LEW21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LEW21/subscriptions","organizations_url":"https://api.github.com/users/LEW21/orgs","repos_url":"https://api.github.com/users/LEW21/repos","events_url":"https://api.github.com/users/LEW21/events{/privacy}","received_events_url":"https://api.github.com/users/LEW21/received_events","type":"User","site_admin":false},"created_at":"2016-09-20T10:01:29Z","updated_at":"2016-09-20T10:01:29Z","body":"You're trying to use /org/freedesktop/Flatpak object, and I don't think it exports any interfaces. Probably you should use .get(\".Flatpak\", \"SessionHelper\") - which is the /org/freedesktop/Flatpak/SessionHelper - or some other subobject (I can't find any Flatpak's API docs, so no idea if there are any other useful ones).\r\n\r\nOf course I should raise a more useful exception in this case."}}
{"actor":{"display_login":"LEW21"}}