An unexpected error has occurred.

79 views
Skip to first unread message

jfmxl

unread,
Nov 25, 2014, 6:07:55 AM11/25/14
to mnemosyne-...@googlegroups.com
An unexpected error has occurred.
Please forward the following info to the developers:

Traceback (innermost last):
  File "/usr/local/bin/mnemosyne", line 4, in <module>
    __import__('pkg_resources').run_script('Mnemosyne==2.3.1', 'mnemosyne')
  File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 517, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 1443, in run_script
    exec(script_code, 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>
  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 242, 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

I'm on debian wheezy, just installed mnemosyne. I installed all the dependencies first. Didn't see anything to do with QtSql.

$ sudo apt-get install libqt4-sql
Reading package lists... Done
Building dependency tree      
Reading state information... Done
libqt4-sql is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

What do I need to do?

jfmxl

unread,
Nov 25, 2014, 7:26:25 AM11/25/14
to mnemosyne-...@googlegroups.com
Ok, I looked at hacking mnemosyne and saw python-qt4-sql among the dependencies there and ran

 sudo apt-get install python-qt4-sql

and now I have different error ...

$ mnemosyne

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

Traceback (innermost last):
  File "/usr/local/bin/mnemosyne", line 4, in <module>
    __import__('pkg_resources').run_script('Mnemosyne==2.3.1', 'mnemosyne')
  File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 517, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 1443, in run_script
    exec(script_code, 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>
  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 242, 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/qt_web_server.py", line 13, in <module>
  File "build/bdist.linux-x86_64/egg/mnemosyne/web_server/web_server.py", line 14, in <module>
 ImportError: No module named static

Still no joy.

Peter Bienstman

unread,
Nov 25, 2014, 8:01:09 AM11/25/14
to mnemosyne-...@googlegroups.com
Hi,

You're still missing python-webob.

Cheers,

Peter
> x86_64/egg/mnemosyne/pyqt_ui/browse_cards_dlg.py", line 9, in
> <module>
> ImportError: cannot import name QtSql
>
> I'm on debian wheezy, just installed mnemosyne. I installed all the
> dependencies first. Didn't see anything to do with QtSql.
>
> $ sudo apt-get install libqt4-sql
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> libqt4-sql is already the newest version.
> 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
>
> What do I need to do?
>
>
> --
> 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/552bf56c-539a-
> 4f8d-bbab-63ff07a0ebad%40googlegroups.com
> <https://groups.google.com/d/msgid/mnemosyne-proj-users/552bf56c-
> 539a-4f8d-bbab-
> 63ff07a0ebad%40googlegroups.com?utm_medium=email&utm_source=foo
> ter> .
> For more options, visit https://groups.google.com/d/optout.


jfmxl

unread,
Nov 25, 2014, 5:13:47 PM11/25/14
to mnemosyne-...@googlegroups.com
hmmm...

$ sudo apt-get install python-webob
[sudo] password for jfl:
Sorry, try again.
[sudo] password for jfl:
Reading package lists... Done
Building dependency tree      
Reading state information... Done
python-webob is already the newest version.

0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Do I need to set an environmental variable, or something?


On Tuesday, November 25, 2014 6:07:55 PM UTC+7, jfmxl wrote:

jfmxl

unread,
Nov 25, 2014, 5:30:03 PM11/25/14
to mnemosyne-...@googlegroups.com
maybe this is my problem ...

$ dpkg -l python-webob
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii  python-webob   1.1.1-1.1    all          Python module providing WSGI requ

I guess I just cannot run mnemosyne on wheezy?

Peter Bienstman

unread,
Nov 26, 2014, 3:13:05 AM11/26/14
to mnemosyne-...@googlegroups.com
Perhaps you can ask on a Debian forum what the issue is with installing webob?

You could also try installing webob directly from source yourself.

Cheers,

Peter

> -----Original Message-----
> From: mnemosyne-...@googlegroups.com [mailto:mnemosyne-
> proj-...@googlegroups.com]
> Sent: 25 November 2014 23:30
> To: mnemosyne-...@googlegroups.com
> Subject: [mnemosyne-proj-users] Re: An unexpected error has occurred.
>
> maybe this is my problem ...
>
> $ dpkg -l python-webob
> Desired=Unknown/Install/Remove/Purge/Hold
> |
> |Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig
> |-pend / Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
> ||/ Name Version Architecture Description
> +++-==============-============-============-
> ===========================
> +++======
> --
> 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/2ed11b14-
> fd47-40c0-b9b9-d25db67080ff%40googlegroups.com
> <https://groups.google.com/d/msgid/mnemosyne-proj-users/2ed11b14-
> fd47-40c0-b9b9-
> d25db67080ff%40googlegroups.com?utm_medium=email&utm_source=foo
Reply all
Reply to author
Forward
0 new messages