mnemosyne crashes at start with "NameError: name 'file' is not defined"

Bug #1670903 reported by Paul
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
mnemosyne (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Running mnemosyne (with no arguments) fails with the following error:

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

ProblemType: Bug
DistroRelease: Ubuntu 17.04
Package: mnemosyne 2.4-0.1
ProcVersionSignature: Ubuntu 4.10.0-9.11-generic 4.10.0
Uname: Linux 4.10.0-9-generic x86_64
ApportVersion: 2.20.4-0ubuntu2
Architecture: amd64
CurrentDesktop: GNOME
Date: Wed Mar 8 11:24:43 2017
InstallationDate: Installed on 2016-12-02 (95 days ago)
InstallationMedia: Ubuntu-GNOME 16.10 "Yakkety Yak" - Release amd64 (20161012.1)
PackageArchitecture: all
SourcePackage: mnemosyne
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Paul (i41bktob-launchpad-net) wrote :
Revision history for this message
Peter Bienstman (peter-bienstman) wrote :

BTW, this bug was fixed in in 2.4.1, so the Ubuntu package needs updating. In the meantime, you can upgrade from source using Mnemosyne's released version.

Revision history for this message
Paul (i41bktob-launchpad-net) wrote :

Workaround (resets settings to defaults but keeps the card database and statistics):

mv ~/.config/mnemosyne /tmp

Is there any plan to include 2.4.1 in Zesty?

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mnemosyne (Ubuntu):
status: New → Confirmed
Changed in mnemosyne (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
themusicgod1 (themusicgod1) wrote :

zesty is no longer supported, and this is fixed in newer versions.

Changed in mnemosyne (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.