Package: gramps
Version: 4.2.2~dfsg-1
Severity: important
Dear Maintainer,
Gramps is unable to open the family tree and so it offers to back-up then
upgrade it. Family free is report to be version 17 and needs to upgrade to 18.
1. When I try to back-up I get the error:
25663: ERROR: grampsapp.py: line 107: Unhandled exception
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/gramps/gui/viewmanager.py", line 1273,
in quick_backup
for media in self.dbstate.db.iter_media_objects():
File "/usr/lib/python3/dist-packages/gramps/gen/db/read.py", line 1216, in g
with curs_(self) as cursor:
File "/usr/lib/python3/dist-packages/gramps/gen/db/read.py", line 523, in
get_media_cursor
return self.get_cursor(self.media_map, *args, **kwargs)
File "/usr/lib/python3/dist-packages/gramps/gen/db/read.py", line 495, in
get_cursor
return DbReadCursor(table, self.txn)
File "/usr/lib/python3/dist-packages/gramps/gen/db/read.py", line 182, in
__init__
self.cursor = source.db.cursor(txn)
AttributeError: 'dict' object has no attribute 'db'
System Information:
===================
Python version: 3.5.1+ (default, Feb 21 2016, 23:11:32) [GCC 5.3.1 20160220]
BSDDB version: 6.1.0 (5, 3, 28)
Gramps version: 4.2.2
LANG: en_GB.UTF-8
OS: Linux
Distribution: 4.3.0-1-amd64
GTK version : 3.18.7
gobject version: 3.18.2
cairo version : (1, 10, 0)
2. When I try to upgrade (after the back-up failed) I get:
411130: ERROR: dbloader.py: line 104: 'ascii' codec can't encode character
'\u0103' in position 20: ordinal not in range(128)
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/gramps/gui/dbloader.py", line 325, in
read_file
force_python_upgrade)
File "/usr/lib/python3/dist-packages/gramps/gen/db/write.py", line 399, in
try_
return func(self, *args, **kwargs)
File "/usr/lib/python3/dist-packages/gramps/gen/db/write.py", line 744, in
load
self.__make_zip_backup(name)
File "/usr/lib/python3/dist-packages/gramps/gen/db/write.py", line 540, in
__make_zip_backup
myzip = zipfile.ZipFile(zippath, 'w')
File "/usr/lib/python3.5/zipfile.py", line 1009, in __init__
self.fp = io.open(file, filemode)
UnicodeEncodeError: 'ascii' codec can't encode character '\u0103' in position
20: ordinal not in range(128)
3. Other information:
Pressing Import and Export buttons has not effect (no new window opens, nothing
is logged).
The program hasn't been used in a while, most files have modification date
2015-04-20, and only "log", "meta_data.db" and "lock" have modification date
today:
~/.gramps/grampsdb/497c7dd7$ ls -ltr
-rw-r----- 1 alex alex 20480 Jan 25 2009 name_group.db
-rw-r--r-- 1 alex alex 8 Oct 18 2009 name.txt
-rw-r----- 1 alex alex 20480 Apr 20 2012 source_id.db
-rw-r--r-- 1 alex alex 10 Jul 18 2014 bdbversion.txt
-rw-r--r-- 1 alex alex 1 Apr 8 2015 pythonversion.txt
-rw-r--r-- 1 alex alex 3 Apr 8 2015 pickleupgrade.txt
-rw-r--r-- 1 alex alex 24576 Apr 8 2015 tag_name.db
-rw-r----- 1 alex alex 24576 Apr 8 2015 repo_id.db
-rw-r--r-- 1 alex alex 24576 Apr 8 2015 place_parent.db
-rw-r----- 1 alex alex 24576 Apr 8 2015 place_id.db
-rw-r----- 1 alex alex 24576 Apr 8 2015 person_id.db
-rw-r----- 1 alex alex 24576 Apr 8 2015 note_id.db
-rw-r----- 1 alex alex 24576 Apr 8 2015 media_id.db
-rw-r----- 1 alex alex 24576 Apr 8 2015 family_id.db
-rw-r--r-- 1 alex alex 24576 Apr 8 2015 citation_id.db
-rw-r--r-- 1 alex alex 2 Apr 8 2015 schemaversion.txt
-rw-r--r-- 1 alex alex 38306 Apr 20 2015 person.gbkp
-rw-r--r-- 1 alex alex 0 Apr 20 2015 tag.gbkp
-rw-r--r-- 1 alex alex 0 Apr 20 2015 source.gbkp
-rw-r--r-- 1 alex alex 0 Apr 20 2015 repo.gbkp
-rw-r--r-- 1 alex alex 0 Apr 20 2015 place.gbkp
-rw-r--r-- 1 alex alex 0 Apr 20 2015 note.gbkp
-rw-r--r-- 1 alex alex 5390 Apr 20 2015 meta_data.gbkp
-rw-r--r-- 1 alex alex 0 Apr 20 2015 media.gbkp
-rw-r--r-- 1 alex alex 12205 Apr 20 2015 family.gbkp
-rw-r--r-- 1 alex alex 17118 Apr 20 2015 event.gbkp
-rw-r--r-- 1 alex alex 0 Apr 20 2015 citation.gbkp
-rw-r--r-- 1 alex alex 20480 Apr 20 2015 tag.db
-rw-r----- 1 alex alex 16384 Apr 20 2015 surnames.db
-rw-r--r-- 1 alex alex 81920 Apr 20 2015 source.db
-rw-r--r-- 1 alex alex 81920 Apr 20 2015 repo.db
-rw-r----- 1 alex alex 57344 Apr 20 2015 referenced_map.db
-rw-r--r-- 1 alex alex 147456 Apr 20 2015 reference_map.db
-rw-r----- 1 alex alex 53248 Apr 20 2015 primary_map.db
-rw-r--r-- 1 alex alex 81920 Apr 20 2015 place.db
-rw-r--r-- 1 alex alex 131072 Apr 20 2015 person.db
-rw-r--r-- 1 alex alex 81920 Apr 20 2015 note.db
-rw-r--r-- 1 alex alex 81920 Apr 20 2015 media.db
-rw-r--r-- 1 alex alex 81920 Apr 20 2015 family.db
-rw-r----- 1 alex alex 24576 Apr 20 2015 event_id.db
-rw-r--r-- 1 alex alex 81920 Apr 20 2015 event.db
-rw-r--r-- 1 alex alex 20480 Apr 20 2015 citation.db
-rw-r--r-- 1 alex alex 81920 Feb 27 13:24 meta_data.db
-rw-r----- 1 alex alex 10485759 Feb 27 13:24 log.0000000003
-rw-r--r-- 1 alex alex 11 Feb 27 13:24 lock
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (900, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.3.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=locale: Cannot set
LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages gramps depends on:
ii gir1.2-gtk-3.0 3.18.7-1
ii librsvg2-2 2.40.13-3
ii python3-bsddb3 6.1.0-1+b1
ii python3-gi 3.18.2-2
ii python3-gi-cairo 3.18.2-2
pn python3:any <none>
ii xdg-utils 1.1.1-1
Versions of packages gramps recommends:
ii gir1.2-gexiv2-0.10 0.10.3-2
ii gir1.2-osmgpsmap-1.0 1.1.0-1
ii graphviz 2.38.0-12+b1
ii python3-icu 1.9.2-2+b1
Versions of packages gramps suggests:
ii fonts-freefont-ttf 20120503-4
pn gir1.2-goocanvas-2.0 <none>
pn gir1.2-gtkspell3-3.0 <none>
pn python3-pil <none>
pn rcs <none>
-- debconf information:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_GB",
LC_ALL = (unset),
LANG = "en_GB.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory