FS#21355 - [hamster-applet] ceased functioning

Attached to Project: Arch Linux
Opened by Ayr0 (ayr0) - Tuesday, 19 October 2010, 22:35 GMT
Last edited by Ionut Biru (wonder) - Thursday, 04 November 2010, 08:43 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Architecture i686
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 5
Private No

Details

Description:
After doing a system update to python3 as the default python, hamster-applet ceased functioning.


Additional info:
* hamster-applet will not allow the stopping of a task
Traceback (most recent call last):
File "/usr/bin/hamster-cli", line 275, in <module>
hamster_client.stop_tracking()
File "/usr/bin/hamster-cli", line 52, in stop_tracking
self.storage.stop_tracking()
File "/usr/lib/python2.7/site-packages/hamster/client.py", line 196, in stop_tracking
return self.conn.StopTracking(end_time)
File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 68, in __call__
return self._proxy_method(*args, **keywords)
File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 140, in __call__
**keywords)
File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 630, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.sqlite3.ProgrammingError: Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/dbus/service.py", line 702, in _message_cb
retval = candidate_method(self, *args, **keywords)
File "/usr/lib/python2.7/site-packages/hamster/storage.py", line 172, in StopTracking
self.__touch_fact(facts[-1], end_time)
File "/usr/lib/python2.7/site-packages/hamster/db.py", line 380, in __touch_fact
self.__remove_fact(fact['id'])
File "/usr/lib/python2.7/site-packages/hamster/db.py", line 736, in __remove_fact
self.execute(statements, [(fact_id,)] * 2)
File "/usr/lib/python2.7/site-packages/hamster/db.py", line 921, in execute
cur.execute(state, param)
ProgrammingError: Cannot operate on a closed cursor.


Steps to reproduce:
pacman -Syu
hamster-cli start test_action
hamster-cli stop
[error produced]
This task depends upon

Closed by  Ionut Biru (wonder)
Thursday, 04 November 2010, 08:43 GMT
Reason for closing:  Fixed
Additional comments about closing:  hamster-applet-2.32.0-4-
Comment by andres (kovtunos) - Wednesday, 20 October 2010, 09:45 GMT
After last major python updating I have this bug too.
Architecture x86_64
Comment by Ayr0 (ayr0) - Friday, 22 October 2010, 23:00 GMT
I get the same error when using the hamster-applet-git package in AUR.
I'm convinced it has something to do with sqlite (or the python interface to sqlite).
Comment by Segey Tereschenko (partizan) - Tuesday, 26 October 2010, 09:17 GMT
hmmm, database cursor is closed? we just try open it again :)
i don't know why it closed, but if we open it again, all works. attached patch
Comment by Some Guy (Stoerenfried) - Tuesday, 02 November 2010, 10:36 GMT
Unfortunatly the patch does not solve the problem for me.
Hitting the "stop tracking" button still produces the error so that it is impossible to stop tracking.
Comment by Some Guy (Stoerenfried) - Tuesday, 02 November 2010, 11:08 GMT
Sorry. The patch works fine. I had to restart the computer for some reason.
Maybe db.py was cached or something like that.
Comment by Ayr0 (ayr0) - Thursday, 04 November 2010, 02:22 GMT
This bug is now apparently fixed upstream. Next version due out middle of this month.

https://bugzilla.gnome.org/show_bug.cgi?id=633103

Loading...