https://bugs.gpodder.org/show_bug.cgi?id=1088
Summary: ProgrammingError in minidb.py Store.remove
Product: gPodder
Version: 2.7
Platform: PC
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: low
Component: Application
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Created an attachment (id=523)
--> (https://bugs.gpodder.org/attachment.cgi?id=523)
Make convert an instance method an convert the values in remove too
We received the following bug report for Fedora:
https://bugzilla.redhat.com/show_bug.cgi?id=619295
minidb.py:140:remove:ProgrammingError: You must not use 8-bit bytestrings
unless you use a text_factory that can interpret 8-bit bytestrings (like
text_factory = str). It is highly recommended that you instead just switch your
application to Unicode strings.
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/gpodder/gtkui/desktop/preferences.py",
line 211, in on_dialog_destroy
self.mygpo_client.create_device()
File "/usr/lib/python2.6/site-packages/gpodder/my.py", line 193, in
create_device
self._store.remove(self._store.load(UpdateDeviceAction))
File "/usr/lib/python2.6/site-packages/gpodder/minidb.py", line 128, in
remove
self.remove(child)
File "/usr/lib/python2.6/site-packages/gpodder/minidb.py", line 140, in
remove
' AND '.join('%s=?'%s for s in slots)), values)
ProgrammingError: You must not use 8-bit bytestrings unless you use a
text_factory that can interpret 8-bit bytestrings (like text_factory = str). It
is highly recommended that you instead just switch your application to Unicode
strings.
Local variables in innermost frame:
slot: 'device_type'
self: <gpodder.minidb.Store object at 0x26fb110>
o: <gpodder.my.UpdateDeviceAction object at 0x7f289c2bc908>
s: 'device_type'
values: ['gPodder p\xc3\xa5 Laptor', 'Laptor', 'laptop']
table: 'UpdateDeviceAction'
slots: ['caption', 'device_id', 'device_type']
--
Configure bugmail: https://bugs.gpodder.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
_______________________________________________
gPodder-Bugs mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/gpodder-bugs