#873313 mnemosyne: "NameError: name 'file' is not defined"

#873313#5
Date:
2017-08-26 12:49:23 UTC
From:
To:
Hi,

When trying to start mnemosyne, I'm getting/got the following error
message right at the beginning:

~~~~~~
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
An unexpected error has occurred.
Please forward the following info to the developers:

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 tried removing my old "~/.mnemosyne" config folder, but that did not
help. What did help though: Removing "~/.config/mnemosyne.

See the attachment, mnemosyne.tar.xz, for a copy of the
~/.config/mnemosyne causing the crash.

I hadn't used mnemosyne for quite a while. In fact, the configs were
probably from back when I had them on an x86 machine (now it's armhf).

Regards, Linus

#873313#10
Date:
2018-05-12 13:50:31 UTC
From:
To:
Dear Maintainer,


   I can't start mnemosyne, when I try from either the application launcher or from the command line I get the following error

An unexpected error has occurred.
Please forward the following info to the developers:

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


  Removing .config/mnemosyne doesn't help.

#873313#15
Date:
2022-07-14 09:36:42 UTC
From:
To:
Hi,

this bug report looks like it's for a long-gone mnemosyne version ;
it's probably obsolete now.

Thanks for the report,

J.Puydt