Error after installing Mnemosyne on Xubuntu

49 views
Skip to first unread message

Arvin Mathur

unread,
Jun 1, 2014, 8:18:18 AM6/1/14
to mnemosyne-...@googlegroups.com
Hey,

I just installed Mnemosyne on Xubuntu 14.04 and I got the following message:



Traceback (innermost last):

File "/usr/local/bin/mnemosyne", line 5, in <module>

pkg_resources.run_script('Mnemosyne==2.3', 'mnemosyne')

File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 528, in run_script

self.require(requires)[0].run_script(script_name, ns)

File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1401, in run_script

exec(script_code, namespace, namespace)

File "/usr/local/lib/python2.7/dist-packages/Mnemosyne-2.3-py2.7.egg/EGG-INFO/scripts/mnemosyne", line 191, in <module>

File "build/bdist.linux-x86_64/egg/mnemosyne/libmnemosyne/__init__.py", line 172, in initialise

self.register_components()

File "build/bdist.linux-x86_64/egg/mnemosyne/libmnemosyne/__init__.py", line 237, in register_components

exec("from %s import %s" % (module_name, class_name))

File "<string>", line 1, in <module>

File "build/bdist.linux-x86_64/egg/mnemosyne/pyqt_ui/browse_cards_dlg.py", line 9, in <module>

ImportError: cannot import name QtSql


Peter Bienstman

unread,
Jun 2, 2014, 2:51:40 AM6/2/14
to mnemosyne-...@googlegroups.com
You're missing the dependency of the QtSql module. If you install an older version of Mnemosyne using the Ubuntu package manager, it will pull in most of the dependencies (apart from python-webob). Then, you can more easily upgrade to 2.3 from source.

Good luck!

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/3645e316-
> 4319-4d01-ac0b-a92348376b91%40googlegroups.com
> <https://groups.google.com/d/msgid/mnemosyne-proj-users/3645e316-
> 4319-4d01-ac0b-
> a92348376b91%40googlegroups.com?utm_medium=email&utm_source=foo
> ter> .
> For more options, visit https://groups.google.com/d/optout.


phil

unread,
Aug 28, 2014, 8:19:55 PM8/28/14
to mnemosyne-...@googlegroups.com

I have the same problem. Thing is, I already had 1.3 installed. After getting this error I uninstalled 1.3 and tried again. I then tried reinstalling 1.3, but now I get the same error when I try to run it as well.

phil

Peter Bienstman

unread,
Aug 29, 2014, 3:23:02 AM8/29/14
to mnemosyne-...@googlegroups.com
You mean Mnemosyne 2.3 instead of 1.3, right?

Anyway, if you get the error 'ImportError: cannot import name QtSql', it means Qt it not installed properly.

If you install an older version of Mnemosyne (at least 2.x) using the Ubuntu package manager, it will pull in most of the dependencies (apart from python-webob). If there is still a problem with that, than it's best to ask on an Ubunntu list.

Then, you can more easily upgrade to 2.3.1 from source after installing python-webob.

Good luck!

Peter

> -----Original Message-----
> From: mnemosyne-...@googlegroups.com [mailto:mnemosyne-
> proj-...@googlegroups.com] On Behalf Of phil
> Sent: 29 August 2014 02:20
> To: mnemosyne-...@googlegroups.com
> Subject: Re: [mnemosyne-proj-users] Error after installing Mnemosyne on
> Xubuntu
>
> On Sunday, 1 June 2014 23:51:40 UTC-7, Peter Bienstman wrote:
> > You're missing the dependency of the QtSql module.
> >
> >
> >
> https://groups.google.com/d/msgid/mnemosyne-proj-users/eca968aa-633f-
> 45de-9550-7e6d46dd5940%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages