Package: mnemosyne
Version: 2.4-0.1
Severity: important

Dear Maintainer,

after having upgraded mnemosyne from version 2.2.1-3 to 2.4-0.1 the
program refused to start and showed a python exception:

Traceback (innermost last):
  File "/usr/bin/mnemosyne", line 229, in <module>
    debug_file=options.debug_file)
  File
"/usr/lib/python3/dist-packages/mnemosyne/libmnemosyne/__init__.py",
line 190, in initialise
    Upgrade3(self.component_manager).run()
  File
"/usr/lib/python3/dist-packages/mnemosyne/libmnemosyne/upgrades/upgrade3.py",
line 21, in run
    file(os.path.join(self.config().config_dir, "config"), "rb")
 NameError: name 'file' is not defined

I started to debug the file
  /usr/lib/python3/dist-packages/mnemosyne/libmnemosyne/upgrades/upgrade3.py
where the excecption arose, and found a couple of issues:

* the upgrade mechanism used the python2-built-in "file" that was
  removed in python3 (I changed that to the replacement "open"): this was
  the original bug that I had observed.
* the encoding was set to the default "ASCII" but was unable to parse
  non-ASCII strings in my configuration file (I changed that to latin1)
* the configuration updater then wants to load pyqt4, which was not
  installed
* pyqt4 refused to load as pyqt5 was already loaded
(I stopped debugging here)

My workaround: I deleted the configuration diretory ~/.config/mnemosyne.
The database of mnemosyne was not affacted by this as it is stored in
~/.local/share/mnemosyne/. As far as I can tell, I did not lose any data
(except some minor important settings). All cards and also statistics
etc. seem to be intact, and there are no encoding errors.

Thanks!

-- System Information:
Debian Release: 9.0
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.8.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages mnemosyne depends on:
ii  libjs-sphinxdoc             1.4.9-2
ii  libqt5sql5-sqlite           5.7.1+dfsg-3
ii  python3                     3.5.1-4
ii  python3-cherrypy3           3.5.0-2
ii  python3-matplotlib          2.0.0~rc2-1
ii  python3-pyqt5               5.7+dfsg-4
ii  python3-pyqt5.qtsql         5.7+dfsg-4
ii  python3-pyqt5.qtwebchannel  5.7+dfsg-4
ii  python3-pyqt5.qtwebengine   5.7+dfsg-4
ii  python3-webob               1.6.2-1
pn  python3:any                 <none>

mnemosyne recommends no packages.

mnemosyne suggests no packages.

-- no debconf information

Reply via email to