stack trace when starting mnemosyne : no history directory

Bug #1290470 reported by themusicgod1
2
Affects Status Importance Assigned to Milestone
The Mnemosyne Project
Fix Released
Undecided
Unassigned
mnemosyne (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

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

Traceback (innermost last):
  File "/usr/bin/mnemosyne", line 155, in <module>
    debug_file=options.debug_file)
  File "/usr/lib/python2.7/dist-packages/mnemosyne/libmnemosyne/__init__.py", line 200, in initialise
    Upgrade1(self.component_manager).run()
  File "/usr/lib/python2.7/dist-packages/mnemosyne/libmnemosyne/upgrades/upgrade1.py", line 37, in run
    self.upgrade_from_old_data_dir(old_data_dir)
  File "/usr/lib/python2.7/dist-packages/mnemosyne/libmnemosyne/upgrades/upgrade1.py", line 121, in upgrade_from_old_data_dir
    join(new_data_dir, "history"))
  File "/usr/lib/python2.7/shutil.py", line 171, in copytree
    names = os.listdir(src)
 OSError: [Errno 2] No such file or directory: '/home/themusicgod1/.mnemosyne/history'

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

Traceback (innermost last):
  File "/usr/bin/mnemosyne", line 155, in <module>
    debug_file=options.debug_file)
  File "/usr/lib/python2.7/dist-packages/mnemosyne/libmnemosyne/__init__.py", line 200, in initialise
    Upgrade1(self.component_manager).run()
  File "/usr/lib/python2.7/dist-packages/mnemosyne/libmnemosyne/upgrades/upgrade1.py", line 37, in run
    self.upgrade_from_old_data_dir(old_data_dir)
  File "/usr/lib/python2.7/dist-packages/mnemosyne/libmnemosyne/upgrades/upgrade1.py", line 121, in upgrade_from_old_data_dir
    join(new_data_dir, "history"))
  File "/usr/lib/python2.7/shutil.py", line 171, in copytree
    names = os.listdir(src)
 OSError: [Errno 2] No such file or directory: '/home/themusicgod1/.mnemosyne/history'

themusicgod1@snowden:~$ ls -lart .mnemosyne/
total 40
drwxr-xr-x 2 themusicgod1 themusicgod1 4096 Dec 17 15:17 backups
drwxr-xr-x 2 themusicgod1 themusicgod1 4096 Dec 17 15:17 latex
-rw-r--r-- 1 themusicgod1 themusicgod1 738 Dec 17 15:17 log.txt
-rw-r--r-- 1 themusicgod1 themusicgod1 1172 Dec 17 15:17 config
-rw-r--r-- 1 themusicgod1 themusicgod1 0 Dec 17 15:17 MNEMOSYNE_LOCK
-rw-r--r-- 1 themusicgod1 themusicgod1 199 Dec 17 15:17 default.mem
-rw-r--r-- 1 themusicgod1 themusicgod1 856 Dec 17 15:17 config.py
drwxr-xr-x 75 themusicgod1 themusicgod1 12288 Mar 10 13:19 ..
-rw-rw-r-- 1 themusicgod1 themusicgod1 0 Mar 10 13:34 DIRECTORY_NO_LONGER_USED_BY_MNEMOSYNE2
drwxr-xr-x 4 themusicgod1 themusicgod1 4096 Mar 10 13:34 .
themusicgod1@snowden:~$ ls .mnemosyne/backups/
memory-20111121.xml.bz2
themusicgod1@snowden:~$

I don't ever remember going into that directory, so not sure why there's no history.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: mnemosyne 2.2.1-2
ProcVersionSignature: Ubuntu 3.11.0-13.20-generic 3.11.6
Uname: Linux 3.11.0-13-generic i686
ApportVersion: 2.13.3-0ubuntu1
Architecture: i386
CurrentDesktop: GNOME
Date: Mon Mar 10 13:34:55 2014
InstallationDate: Installed on 2013-06-24 (259 days ago)
InstallationMedia: Edubuntu 12.04.2 LTS "Precise Pangolin" - Release i386 (20130214)
PackageArchitecture: all
SourcePackage: mnemosyne
UpgradeStatus: Upgraded to trusty on 2013-11-26 (104 days ago)

Revision history for this message
themusicgod1 (themusicgod1) wrote :
Revision history for this message
themusicgod1 (themusicgod1) wrote :

Seems to only happen when I run without arguments. If I run with the .db file as an argument, it runs correctly. However still -- it should run by default without any arguments.

Revision history for this message
Peter Bienstman (peter-bienstman) wrote :

You can work around this by creating a history directory in the old Mnemosyne 1.x directory.
Anyway, I've committed a fix which will be in the upcoming 2.3 release.

Changed in mnemosyne-proj:
status: New → Fix Committed
Changed in mnemosyne (Ubuntu):
status: New → Fix Committed
Changed in mnemosyne-proj:
status: Fix Committed → Fix Released
Revision history for this message
Scott Kitterman (kitterman) wrote :
Revision history for this message
Peter Bienstman (peter-bienstman) wrote :

That should be the one.

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.