http://bugs.gpodder.org/show_bug.cgi?id=375
Summary: "sqlite3.ProgrammingError: You must not use 8-bit
bytestrings ..." error
Product: gPodder
Version: unspecified
Platform: PC
OS/Version: Linux
Status: UNCONFIRMED
Severity: major
Priority: low
Component: Application
AssignedTo: [email protected]
ReportedBy: [email protected]
A week or two ago, I updated/installed some package on my system and now
gpodder will now no longer start.
Instead, it dies with this error (and warnings):
./bin/gpodder --local
/home/tyler/dev/inactive/media_players/gpodder/src/gpodder/libconverter.py:29:
DeprecationWarning: The popen2 module is deprecated. Use the subprocess
module.
import popen2
/var/lib/python-support/python2.6/dbus/connection.py:242: DeprecationWarning:
object.__init__() takes no parameters
super(Connection, self).__init__(*args, **kwargs)
Traceback (most recent call last):
File "./bin/gpodder", line 185, in <module>
sys.exit( main())
File "./bin/gpodder", line 182, in main
gui.main()
File "src/gpodder/gui.py", line 4579, in main
gp = gPodder(bus_name)
File "src/gpodder/gui.py", line 353, in __init__
GladeWidget.__init__(self)
File "src/gpodder/gui.py", line 140, in __init__
SimpleGladeApp.SimpleGladeApp.__init__( self, path, root, domain, **kwargs)
File "src/gpodder/SimpleGladeApp.py", line 110, in __init__
self.new()
File "src/gpodder/gui.py", line 745, in new
gl.clean_up_downloads(delete_partial=True)
File "src/gpodder/libgpodder.py", line 306, in clean_up_downloads
if os.path.isdir(ddir) and not
db.channel_foldername_exists(os.path.basename(ddir)):
File "src/gpodder/dbsqlite.py", line 560, in channel_foldername_exists
return self.__get__("SELECT id FROM channels WHERE foldername = ?",
(foldername,)) is not None
File "src/gpodder/dbsqlite.py", line 526, in __get__
cur.execute(sql, params)
sqlite3.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.
I was hoping the problem would just go away on its own but unfortunately that
is not the case and I am missing my gPodder.
I am running Ubuntu 9.04 (beta) and I believe it was after I installed
python2.6, although I'm afraid I don't remember that for certain.
My hunch is that gPodder was only tested with 2.5 and when I installed 2.6 it
started using that instead? Or maybe I upgraded sqlite3 to a version that is
more Unicode-happy? I don't know.
Apparently the solution is to "switch your application to Unicode strings." I'd
be happy to help do that if someone could me some pointers on how to get
started... (my knowledge of Python is pretty basic).
Some version information in case it might be helpful:
> python --version
Python 2.6.1+
python2.5 install
python2.5-dev install
python2.5-minimal install
python2.6 install
python2.6-minimal install
python3-minimal install
python3.0 install
python3.0-minimal install
libsqlite3-0 install
python-pysqlite2 install (2.5.0-2ubuntu1)
sqlite install
sqlite3 install
I am running the very latest gpodder from git
(ec0f1922f0dafa1e31eaf2ae4e175a0056c9bc7e).
Any ideas?
--
Configure bugmail: http://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