[2.2.1] Error on Settings / Configure Mnemosyne

104 views
Skip to first unread message

mae...@free.fr

unread,
Sep 9, 2014, 5:25:00 PM9/9/14
to mnemosyne-...@googlegroups.com
Hi :)

I'm using Mnemosyne 2.2.1 version and when going in "Settings / Configure Mnemosyne...", I'm getting the following error :
===
An unexpected error has occurred.
Please forward the following info to the developers:

Traceback (innermost last):
  File "/usr/local/lib/python2.7/dist-packages/Mnemosyne-2.2.1-py2.7.egg/mnemosyne/pyqt_ui/main_wdgt.py", line 210, in configure
    self.controller().show_configuration_dialog()
  File "/usr/local/lib/python2.7/dist-packages/Mnemosyne-2.2.1-py2.7.egg/mnemosyne/libmnemosyne/controllers/default_controller.py", line 825, in show_configuration_dialog
    (self.component_manager).activate()
  File "/usr/local/lib/python2.7/dist-packages/Mnemosyne-2.2.1-py2.7.egg/mnemosyne/pyqt_ui/configuration_dlg.py", line 28, in __init__
    widget = widget(self.component_manager, parent=self)
  File "/usr/local/lib/python2.7/dist-packages/Mnemosyne-2.2.1-py2.7.egg/mnemosyne/pyqt_ui/configuration_wdgt_main.py", line 52, in __init__
    language_names.append(language_name_for_iso6931_code[language])
 KeyError: 'ca@valencia'
===
OS : Ubuntu 12.04 64 bits.

Any ideas ?

Many thanks.

Peter Bienstman

unread,
Sep 10, 2014, 3:21:14 AM9/10/14
to mnemosyne-...@googlegroups.com
Hi,

Please upgrade to 2.3.1, which you can download from our website.

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 post to this group, send email to mnemosyne-proj-
> us...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mnemosyne-proj-users/29880369-
> e085-43fb-ac24-e79e51a1891f%40googlegroups.com
> <https://groups.google.com/d/msgid/mnemosyne-proj-users/29880369-
> e085-43fb-ac24-
> e79e51a1891f%40googlegroups.com?utm_medium=email&utm_source=foo
> ter> .
> For more options, visit https://groups.google.com/d/optout.


mae...@free.fr

unread,
Sep 10, 2014, 5:08:09 AM9/10/14
to mnemosyne-...@googlegroups.com
Well, the last version 2.3.1 don't start at all, which is worst.
Here the log when starting 2.3.1 version :

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

Traceback (innermost last):
  File "/usr/local/bin/mnemosyne", line 5, in <module>
    pkg_resources.run_script('Mnemosyne==2.3.1', 'mnemosyne')
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 499, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1235, in run_script
    execfile(script_filename, namespace, namespace)
  File "/usr/local/lib/python2.7/dist-packages/Mnemosyne-2.3.1-py2.7.egg/EGG-INFO/scripts/mnemosyne", line 191, in <module>
    debug_file=options.debug_file)
  File "/usr/local/lib/python2.7/dist-packages/Mnemosyne-2.3.1-py2.7.egg/mnemosyne/libmnemosyne/__init__.py", line 172, in initialise
    self.register_components()
  File "/usr/local/lib/python2.7/dist-packages/Mnemosyne-2.3.1-py2.7.egg/mnemosyne/libmnemosyne/__init__.py", line 242, in register_components
    exec("from %s import %s" % (module_name, class_name))
  File "<string>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/Mnemosyne-2.3.1-py2.7.egg/mnemosyne/pyqt_ui/qt_web_server.py", line 13, in <module>
    from mnemosyne.web_server.web_server import WebServer
  File "/usr/local/lib/python2.7/dist-packages/Mnemosyne-2.3.1-py2.7.egg/mnemosyne/web_server/web_server.py", line 14, in <module>
    from webob.static import FileApp
 ImportError: No module named static
===
I'd like to use the last version, but as you can see, I have to stay with 2.2.1 :/

Thanks.

Peter Bienstman

unread,
Sep 10, 2014, 5:18:02 AM9/10/14
to mnemosyne-...@googlegroups.com
Please install the python-webob package first.

Good luck!

Peter

> -----Original Message-----
> From: mnemosyne-...@googlegroups.com [mailto:mnemosyne-
> proj-...@googlegroups.com] On Behalf Of mae...@free.fr
> Sent: 10 September 2014 11:08
> To: mnemosyne-...@googlegroups.com
> Subject: [mnemosyne-proj-users] Re: [2.2.1] Error on Settings / Configure
> Mnemosyne
>
> --
> 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 post to this group, send email to mnemosyne-proj-
> us...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mnemosyne-proj-users/a4f88585-fde6-
> 473c-940f-697e790d6fe7%40googlegroups.com
> <https://groups.google.com/d/msgid/mnemosyne-proj-users/a4f88585-
> fde6-473c-940f-
> 697e790d6fe7%40googlegroups.com?utm_medium=email&utm_source=foo

mae...@free.fr

unread,
Sep 10, 2014, 5:46:42 AM9/10/14
to mnemosyne-...@googlegroups.com
This package is already installed on my system.

Peter Bienstman

unread,
Sep 10, 2014, 7:00:33 AM9/10/14
to mnemosyne-...@googlegroups.com
The error indicates that it's not properly installed, though. This seems to be an Ubuntu-specific issue.

Also have a look at this thread:

https://groups.google.com/forum/#!msg/mnemosyne-proj-users/lHDTDyxjTqk/lbvvgSux72MJ

Otherwise, perhaps somebody on an Ubuntu mailing list will be able to you?

Cheers,

Peter

> -----Original Message-----
> From: mnemosyne-...@googlegroups.com [mailto:mnemosyne-
> proj-...@googlegroups.com] On Behalf Of mae...@free.fr
> Sent: 10 September 2014 11:47
> To: mnemosyne-...@googlegroups.com
> Subject: [mnemosyne-proj-users] Re: [2.2.1] Error on Settings / Configure
> Mnemosyne
>
> This package is already installed on my system.
>
>
> --
> 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 post to this group, send email to mnemosyne-proj-
> us...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mnemosyne-proj-users/edb144c1-
> 8421-43e2-9a6c-7f1393565abe%40googlegroups.com
> <https://groups.google.com/d/msgid/mnemosyne-proj-users/edb144c1-
> 8421-43e2-9a6c-
> 7f1393565abe%40googlegroups.com?utm_medium=email&utm_source=foo

mae...@free.fr

unread,
Sep 10, 2014, 7:54:46 AM9/10/14
to mnemosyne-...@googlegroups.com
OK, I have all packages needed. I don't have the last Ubuntu's version and it seems that the dependencies version that I have don't match for the last Mnemosyne version (2.3.1 today).

Then, for the 12.04 version of Ubuntu, the 2.2.1 is the last update I can use without upgrading to last version of Ubuntu.

By the way, uninstalling mnemosyne completly by deleting all files and folders containing "mnemosyne" or "Mnemosyne" (specially those in the /usr/share/locale/XX/LC_MESSAGES/mnemosyne.mo) has fixed my "Settings / Configure Mnemosyne..." problem (which key error was related to "ca@valencia" which is present here "/usr/share/locale/ca@valencia/mnemosyne.mo"). Installing the 2.2.1 version again works perfectly, and the Configure menu too ! :)

I suggest that when "playing" with different version of Mnemosyne, people should backup their files, and before installing another version of Mnemosyne, should delete all files and folders found by the following command :

sudo find /usr -name mnemo*

Peter, is there any proper uninstall by using setup.py that would do the job automatically (a "setup.py uninstall"-like) ?

Peter Bienstman

unread,
Sep 10, 2014, 8:00:04 AM9/10/14
to mnemosyne-...@googlegroups.com

> Peter, is there any proper uninstall by using setup.py that would do

> the job automatically (a "setup.py uninstall"-like) ?

Afraid not, by virtue of the linux philosophy this is not up to Mnemosyne, but rather up to the distribution people.

Cheers,

Peter


mae...@free.fr

unread,
Sep 11, 2014, 3:44:55 AM9/11/14
to mnemosyne-...@googlegroups.com
Oh OK.

Anf if we do a simple...

rm -rf `cat list_files_or_folders_of_Mnemosyne`

...would be at least something for those who don't know how to uninstall it, in order to install the last version and to avoid some problem and posts in the groups ;)

Good idea ?

Peter Bienstman

unread,
Sep 11, 2014, 3:50:53 AM9/11/14
to mnemosyne-...@googlegroups.com
You can always delete files manually, of course.

Peter

> -----Original Message-----
> From: mnemosyne-...@googlegroups.com [mailto:mnemosyne-
> proj-...@googlegroups.com] On Behalf Of mae...@free.fr
> Sent: 11 September 2014 09:45
> To: mnemosyne-...@googlegroups.com
> Subject: [mnemosyne-proj-users] Re: [2.2.1] Error on Settings / Configure
> Mnemosyne
>
> --
> 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 post to this group, send email to mnemosyne-proj-
> us...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mnemosyne-proj-users/01c899e6-
> 1be1-4114-957c-0a6dc99d0e46%40googlegroups.com
> <https://groups.google.com/d/msgid/mnemosyne-proj-users/01c899e6-
> 1be1-4114-957c-
> 0a6dc99d0e46%40googlegroups.com?utm_medium=email&utm_source=foo

Oisín

unread,
Sep 11, 2014, 6:00:58 AM9/11/14
to mnemosyne-...@googlegroups.com
I'm really not sure it's a good idea to suggest any command starting with 'rm -rf' to people who don't know how to uninstall things already. If something goes wrong, they could wipe out anything and everything...

Perhaps better, if it's not possible to produce a .deb package (why?) would be to write an uninstall script. Much better would be a .deb package though, since then you can do things like 'apt-get --purge remove mnemosyne'?

O

--
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.

mae...@free.fr

unread,
Sep 12, 2014, 5:46:19 AM9/12/14
to mnemosyne-...@googlegroups.com
Yes, that would be the best way to have proper install/remove of package.

As I see, here is the last package available depending of Ubuntu's versions :

Utopic (2.2.1-2)
Trusty (2.2.1-2)
Precise (1.2.2-2)
Lucid (1.2.1-2ubuntu1)

I'm with Precise, and the 2.2.1 version works well by installing it first (not with apt-get, as you get the 1.2.2 version. I think people should go at least with Ubuntu Trusty to get the 2.2.1 version, which is good enough to work :). The 1.x versions are too old.

Thank all for your help, and if someone get trouble like me after installing an old version, he can read and get help from this post.
Reply all
Reply to author
Forward
0 new messages