moriarty4
unread,Oct 31, 2009, 5:10:53 PM10/31/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to wikidpad-devel
Hi
There is a bug in lib/pwiki/SqliteThin3.py.
At line 97, the statement
pyver = tuple((int(s) for s in platform.python_version_tuple()))
Assumes that python versions are always integers. Unfortunately this
is wrong. The most recent version of Ubuntu linux, 9.10, uses python
version 2.6.4rc2. The tuple returned by python_version_tuple() is
("2", "6", "4rc2"). This breaks wikidpad.
I have made a quick fix by changing the line to read:
pyver = tuple((4 if s == "4rc2" else int(s) for s in
platform.python_version_tuple()))
However you probably want to make a better fix that removes the
assumption that python versions are always integers.
Cheers
Paul