I installed Gramps v5.2.2 on my Win10/64 bit machine with the goal to use PostgreSQL as database backend. So I selected the Shared PostgreSQL option in the settings and created a new database. No problem with that but when I tried to open this new database, I was welcomed with this window:
Sorry for the German, it basically says that the database is damaged “on a low level”. Clicking on the Schließen (Close) button brings up the next error message with the following details and my system information:
Error Details:
===================
893732: ERROR: dbloader.py: line 107: 'utf-8' codec can't decode byte 0xfc in position 97: invalid start byte
Traceback (most recent call last):
File "C:\Program Files\GrampsAIO64-5.2.2\gramps\gui\dbloader.py", line 198, in read_file
db.load(
File "C:\Program Files\GrampsAIO64-5.2.2\gramps\gen\db\generic.py", line 647, in load
self._initialize(directory, username, password)
File "C:\Users\Ulrich Demlehner\AppData\Roaming\gramps\gramps52\plugins\SharedPostgreSQL\sharedpostgresql.py", line 105, in _initialize
self.dbapi = Connection(uuid=uuid, **dbkwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Ulrich Demlehner\AppData\Roaming\gramps\gramps52\plugins\SharedPostgreSQL\sharedpostgresql.py", line 117, in __init__
self.__connection = psycopg2.connect(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "AIO/psycopg2/__init__.py", line 122, in connect
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfc in position 97: invalid start byte
1040140: ERROR: dbloader.py: line 107: 'utf-8' codec can't decode byte 0xbb in position 79: invalid start byte
Traceback (most recent call last):
File "C:\Program Files\GrampsAIO64-5.2.2\gramps\gui\dbloader.py", line 198, in read_file
db.load(
File "C:\Program Files\GrampsAIO64-5.2.2\gramps\gen\db\generic.py", line 647, in load
self._initialize(directory, username, password)
File "C:\Users\Ulrich Demlehner\AppData\Roaming\gramps\gramps52\plugins\SharedPostgreSQL\sharedpostgresql.py", line 105, in _initialize
self.dbapi = Connection(uuid=uuid, **dbkwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Ulrich Demlehner\AppData\Roaming\gramps\gramps52\plugins\SharedPostgreSQL\sharedpostgresql.py", line 117, in __init__
self.__connection = psycopg2.connect(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "AIO/psycopg2/__init__.py", line 122, in connect
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbb in position 79: invalid start byte
System Information:
===================
Gramps version: AIO64-5.2.2-r1-f905d14
Python version: 3.11.8
BSDDB version: 6.2.9 (6, 0, 30)
sqlite version: 3.45.2 (2.6.0)
LANG: de_DE.UTF-8
OS: Windows 10/64 bit
GTK version : 3.24.41
gobject version: 3.46.0
cairo version : (1, 26, 0)
As far as I understand it, it basically repeats the information in the message pop up with another byte (0xfc @ position 97 instead of 0xbb @ position 79). The following traceback messages appear to be a consequence of this “I cannot read the database” message.
What can I do? Thanks for your help!
Ulrich