Skip to content

Error with dbus type conversion on recent upgrade #477

@matclab

Description

@matclab

I just upgraded Arch linux with

  • python 3.8
  • pygtk 2.24.0
  • python-dbus 1.2.12

Running master I get the following errors:

  • in hamster-cli
Traceback (most recent call last):
  File "/home/clabaut/contrib/hamster/src/hamster/edit_activity.py", line 375, in on_save_button_clicked
    runtime.storage.update_fact(self.fact_id, self.fact)
  File "/home/clabaut/contrib/hamster/src/hamster/client.py", line 177, in update_fact
    new_id =  self.conn.UpdateFactVerbatim(fact_id, dbus_fact)
  File "/usr/lib/python3.8/site-packages/dbus/proxies.py", line 141, in __call__
    return self._connection.call_blocking(self._named_service,
  File "/usr/lib/python3.8/site-packages/dbus/connection.py", line 652, in call_blocking
    reply_message = self.send_message_with_reply_and_block(
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.sqlite3.OperationalError: Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/dbus/service.py", line 711, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "src/hamster-service", line 176, in UpdateFactVerbatim
    return self.update_fact(fact_id, fact) or 0
  File "/home/clabaut/contrib/hamster/src/hamster/storage/storage.py", line 76, in update_fact
    self.__remove_fact(fact_id)
  File "/home/clabaut/contrib/hamster/src/hamster/storage/db.py", line 722, in __remove_fact
    self.__remove_index([fact_id])
  File "/home/clabaut/contrib/hamster/src/hamster/storage/db.py", line 819, in __remove_index
    self.execute("DELETE FROM fact_index where id in (%s)" % ids)
  File "/home/clabaut/contrib/hamster/src/hamster/storage/db.py", line 911, in execute
    cur.
  • Where hamster-service logs
hamster.storage.db - INFO - removing fact #dbus.Int32(8432)

The same problem occurs with release v2.2.2.

I guess a conversion from dbus data went wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions