Completely reinstalling mnemosyne

37 views
Skip to first unread message

bitt...@gmail.com

unread,
Nov 24, 2019, 5:29:53 PM11/24/19
to mnemosyne-proj-users
I was messing around with Mnemosyne, and now it opens a dB in a folder on a USB that I no longer have, so Mnemosyne looks for that folder, and gives me errors when picking another DB. Luckily, I have a back up of my db on my main disk, so I can use the -d feature to open that specific folder, and all my cards are restored. This is a minor hassle, so is there a way to fix this and get it to work again? I've tried deleting Mnemosyne and reinstalling it.

Peter Bienstman (UGent-imec)

unread,
Nov 25, 2019, 3:58:57 AM11/25/19
to mnemosyne-...@googlegroups.com
The location of the last saved file is in 'config.db', so deleting (or editing as an sql database) should work.

Recent versions of Mnemosyne shouldn't give problems to open a different database if the old one is no longer there, though.

Cheers,

Peter
--
You received this message because you are subscribed to the Google Groups "mnemosyne-proj-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mnemosyne-proj-u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mnemosyne-proj-users/c5946216-a9a4-480c-8132-a968aa09cbb3%40googlegroups.com.

vi...@calday.co.uk

unread,
Nov 25, 2019, 2:34:46 PM11/25/19
to mnemosyne-proj-users
Hi Peter:

I can't delete the config.db because I don't have the drive with the original db on it. I have ran mnemosyne with -d option, with my newdatabase. This gives me a config.db, but deleting it does nothing. Here's the error that I got:

Traceback (innermost last):

File "/usr/bin/mnemosyne", line 262, in <module>

debug_file=options.debug_file)

File "/usr/lib/python3/dist-packages/mnemosyne/libmnemosyne/__init__.py", line 227, in initialise

raise e

File "/usr/lib/python3/dist-packages/mnemosyne/libmnemosyne/__init__.py", line 218, in initialise

self.log().started_program()

File "/usr/lib/python3/dist-packages/mnemosyne/libmnemosyne/loggers/database_logger.py", line 26, in started_program

self.database().log_started_program(self.timestamp, version_string)

File "/usr/lib/python3/dist-packages/mnemosyne/libmnemosyne/databases/SQLite_logging.py", line 32, in log_started_program

(EventTypes.STARTED_PROGRAM, int(timestamp), version_string))

File "/usr/lib/python3/dist-packages/mnemosyne/libmnemosyne/databases/_sqlite3.py", line 72, in execute

self._cursor = self.connection.execute(sql, *args)

sqlite3.OperationalError: attempt to write a readonly database


Thank you.

On Sunday, 24 November 2019 22:29:53 UTC, bitt...@gmail.com wrote:
I was messing around with Mnemosyne, and now it opens a dB in a folder on a USB that I no longer have, so Mnemosyne looks for that folder, and gives me errors when picking another DB. Luckily, I have a back up of my db on my main disk, so I can use the -d feature to open that specific folder, and all my cards are restored. This is a minor hassle, so is there a way to fix this and get it to work again? I've tried deleting Mnemosyne and reinstalling it.

Student Account
Calday Grange Grammar School is a charitable company limited by guarantee and registered in England and Wales with company number 8332696.
The Registered Office is at Grammar School Lane, West Kirby, Wirral, CH48 8GG

Peter Bienstman

unread,
Nov 25, 2019, 4:05:32 PM11/25/19
to mnemosyne-proj-users
On linux, the default config.db that is used when you just type "Mnemosyne" should be under ~/.config/mnemosyne/. It is there that the last saved database is encoded.

If you get 'permission denied' when using the -d option, that seems to suggest you don't have permission to create new files in that location.

Also make sure you are using the latest Mnemosyne version.

Cheers,

Peter
Reply all
Reply to author
Forward
0 new messages