Mnemosyne won't start

111 views
Skip to first unread message

jf...@sdf.org

unread,
Mar 6, 2015, 2:42:36 AM3/6/15
to mnemosyne-...@googlegroups.com
~$ 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.2', '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.2-py2.7.egg/EGG-INFO/scripts/mnemosyne", line 191, in <module>
File "build/bdist.linux-x86_64/egg/mnemosyne/libmnemosyne/__init__.py", line 174, in initialise
self.register_components()
File "build/bdist.linux-x86_64/egg/mnemosyne/libmnemosyne/__init__.py", line 244, 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
~$
I ran apt-get with the dependent groups listed for ubuntu, although I am on debian wheezy. setup.py ran ok, no complaints. but ... 'no module named static', I guess.

Any suggestions? Thanks.

Peter Bienstman

unread,
Mar 6, 2015, 2:43:25 AM3/6/15
to mnemosyne-...@googlegroups.com
Hi,

You need to make sure webob is installed correctly.

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/1327c971-c99c-
> 4374-9457-e217aba0d454%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

jf...@sdf.org

unread,
Mar 6, 2015, 3:52:03 AM3/6/15
to mnemosyne-...@googlegroups.com, jf...@sdf.org
I have ... Package: python-webob (1.4-2) ... debian lists just python and python-webob-doc as other packages related to python-webob ...

Here's what I ran to install the dependencies, run after the fact ...

:~/Documents/people/g/GilesJiUngpakorn/rst$ sudo apt-get install python-cherrypy3 python-virtualenv python-qt4-dev pyqt4-dev-tools qt4-designer python-qt4-sql libqt4-sql-sqlite python-matplotlib python-qt4-phonon python-sphinx python-webob
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-cherrypy3 is already the newest version.
python-matplotlib is already the newest version.
pyqt4-dev-tools is already the newest version.
python-qt4-dev is already the newest version.
python-qt4-phonon is already the newest version.
python-qt4-sql is already the newest version.
python-virtualenv is already the newest version.
python-webob is already the newest version.
libqt4-sql-sqlite is already the newest version.
qt4-designer is already the newest version.
python-sphinx is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
:~/$

How would I make sure webob is installed correctly? Maybe the directory structure on debian is different than on ubuntu?

:~/$ dpkg -L python-webob
/.
/usr
/usr/lib
/usr/lib/python2.6
/usr/lib/python2.6/dist-packages
/usr/lib/python2.6/dist-packages/webob
/usr/lib/python2.6/dist-packages/WebOb-1.1.1.egg-info
/usr/lib/python2.7
/usr/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages/webob
/usr/lib/python2.7/dist-packages/WebOb-1.1.1.egg-info
/usr/share
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/python-webob
/usr/share/pyshared
/usr/share/pyshared/webob
/usr/share/pyshared/webob/exc.py
/usr/share/pyshared/webob/datetime_utils.py
/usr/share/pyshared/webob/request.py
/usr/share/pyshared/webob/util.py
/usr/share/pyshared/webob/dec.py
/usr/share/pyshared/webob/etag.py
/usr/share/pyshared/webob/byterange.py
/usr/share/pyshared/webob/descriptors.py
/usr/share/pyshared/webob/cachecontrol.py
/usr/share/pyshared/webob/headers.py
/usr/share/pyshared/webob/cookies.py
/usr/share/pyshared/webob/__init__.py
/usr/share/pyshared/webob/response.py
/usr/share/pyshared/webob/multidict.py
/usr/share/pyshared/webob/acceptparse.py
/usr/share/pyshared/WebOb-1.1.1.egg-info
/usr/share/pyshared/WebOb-1.1.1.egg-info/top_level.txt
/usr/share/pyshared/WebOb-1.1.1.egg-info/zip-safe
/usr/share/pyshared/WebOb-1.1.1.egg-info/dependency_links.txt
/usr/share/pyshared/WebOb-1.1.1.egg-info/SOURCES.txt
/usr/share/pyshared/WebOb-1.1.1.egg-info/PKG-INFO
/usr/share/doc
/usr/share/doc/python-webob
/usr/share/doc/python-webob/changelog.gz
/usr/share/doc/python-webob/copyright
/usr/share/doc/python-webob/docs
/usr/share/doc/python-webob/docs/pycon2011
/usr/share/doc/python-webob/docs/pycon2011/pycon-py3k-sprint.html
/usr/share/doc/python-webob/docs/comment-example.html
/usr/share/doc/python-webob/docs/objects.inv
/usr/share/doc/python-webob/docs/file-example.html
/usr/share/doc/python-webob/docs/license.html
/usr/share/doc/python-webob/docs/_static
/usr/share/doc/python-webob/docs/_static/plus.png
/usr/share/doc/python-webob/docs/_static/default.css
/usr/share/doc/python-webob/docs/_static/file.png
/usr/share/doc/python-webob/docs/_static/up.png
/usr/share/doc/python-webob/docs/_static/down-pressed.png
/usr/share/doc/python-webob/docs/_static/up-pressed.png
/usr/share/doc/python-webob/docs/_static/basic.css
/usr/share/doc/python-webob/docs/_static/comment.png
/usr/share/doc/python-webob/docs/_static/pygments.css
/usr/share/doc/python-webob/docs/_static/comment-bright.png
/usr/share/doc/python-webob/docs/_static/ajax-loader.gif
/usr/share/doc/python-webob/docs/_static/minus.png
/usr/share/doc/python-webob/docs/_static/down.png
/usr/share/doc/python-webob/docs/_static/comment-close.png
/usr/share/doc/python-webob/docs/_sources
/usr/share/doc/python-webob/docs/_sources/news.txt
/usr/share/doc/python-webob/docs/_sources/test_dec.txt
/usr/share/doc/python-webob/docs/_sources/pycon2011
/usr/share/doc/python-webob/docs/_sources/pycon2011/pycon-py3k-sprint.txt
/usr/share/doc/python-webob/docs/_sources/test-file.txt
/usr/share/doc/python-webob/docs/_sources/do-it-yourself.txt
/usr/share/doc/python-webob/docs/_sources/test_response.txt
/usr/share/doc/python-webob/docs/_sources/comment-example.txt
/usr/share/doc/python-webob/docs/_sources/differences.txt
/usr/share/doc/python-webob/docs/_sources/reference.txt
/usr/share/doc/python-webob/docs/_sources/wiki-example.txt
/usr/share/doc/python-webob/docs/_sources/license.txt
/usr/share/doc/python-webob/docs/_sources/test_request.txt
/usr/share/doc/python-webob/docs/_sources/jsonrpc-example.txt
/usr/share/doc/python-webob/docs/_sources/modules
/usr/share/doc/python-webob/docs/_sources/modules/webob.txt
/usr/share/doc/python-webob/docs/_sources/modules/dec.txt
/usr/share/doc/python-webob/docs/_sources/index.txt
/usr/share/doc/python-webob/docs/_sources/file-example.txt
/usr/share/doc/python-webob/docs/searchindex.js
/usr/share/doc/python-webob/docs/search.html
/usr/share/doc/python-webob/docs/test_dec.html
/usr/share/doc/python-webob/docs/index.html
/usr/share/doc/python-webob/docs/differences.html
/usr/share/doc/python-webob/docs/news.html
/usr/share/doc/python-webob/docs/py-modindex.html
/usr/share/doc/python-webob/docs/test_response.html
/usr/share/doc/python-webob/docs/test_request.html
/usr/share/doc/python-webob/docs/do-it-yourself.html
/usr/share/doc/python-webob/docs/wiki-example.html
/usr/share/doc/python-webob/docs/jsonrpc-example.html
/usr/share/doc/python-webob/docs/genindex.html
/usr/share/doc/python-webob/docs/modules
/usr/share/doc/python-webob/docs/modules/dec.html
/usr/share/doc/python-webob/docs/modules/webob.html
/usr/share/doc/python-webob/docs/test-file.html
/usr/share/doc/python-webob/docs/reference.html
/usr/share/doc/python-webob/changelog.Debian.gz
/usr/share/doc/python-paste
/usr/share/doc/python-paste/docs
/usr/lib/python2.6/dist-packages/webob/exc.py
/usr/lib/python2.6/dist-packages/webob/datetime_utils.py
/usr/lib/python2.6/dist-packages/webob/request.py
/usr/lib/python2.6/dist-packages/webob/util.py
/usr/lib/python2.6/dist-packages/webob/dec.py
/usr/lib/python2.6/dist-packages/webob/etag.py
/usr/lib/python2.6/dist-packages/webob/byterange.py
/usr/lib/python2.6/dist-packages/webob/descriptors.py
/usr/lib/python2.6/dist-packages/webob/cachecontrol.py
/usr/lib/python2.6/dist-packages/webob/headers.py
/usr/lib/python2.6/dist-packages/webob/cookies.py
/usr/lib/python2.6/dist-packages/webob/__init__.py
/usr/lib/python2.6/dist-packages/webob/response.py
/usr/lib/python2.6/dist-packages/webob/multidict.py
/usr/lib/python2.6/dist-packages/webob/acceptparse.py
/usr/lib/python2.6/dist-packages/WebOb-1.1.1.egg-info/top_level.txt
/usr/lib/python2.6/dist-packages/WebOb-1.1.1.egg-info/zip-safe
/usr/lib/python2.6/dist-packages/WebOb-1.1.1.egg-info/dependency_links.txt
/usr/lib/python2.6/dist-packages/WebOb-1.1.1.egg-info/SOURCES.txt
/usr/lib/python2.6/dist-packages/WebOb-1.1.1.egg-info/PKG-INFO
/usr/lib/python2.7/dist-packages/webob/exc.py
/usr/lib/python2.7/dist-packages/webob/datetime_utils.py
/usr/lib/python2.7/dist-packages/webob/request.py
/usr/lib/python2.7/dist-packages/webob/util.py
/usr/lib/python2.7/dist-packages/webob/dec.py
/usr/lib/python2.7/dist-packages/webob/etag.py
/usr/lib/python2.7/dist-packages/webob/byterange.py
/usr/lib/python2.7/dist-packages/webob/descriptors.py
/usr/lib/python2.7/dist-packages/webob/cachecontrol.py
/usr/lib/python2.7/dist-packages/webob/headers.py
/usr/lib/python2.7/dist-packages/webob/cookies.py
/usr/lib/python2.7/dist-packages/webob/__init__.py
/usr/lib/python2.7/dist-packages/webob/response.py
/usr/lib/python2.7/dist-packages/webob/multidict.py
/usr/lib/python2.7/dist-packages/webob/acceptparse.py
/usr/lib/python2.7/dist-packages/WebOb-1.1.1.egg-info/top_level.txt
/usr/lib/python2.7/dist-packages/WebOb-1.1.1.egg-info/zip-safe
/usr/lib/python2.7/dist-packages/WebOb-1.1.1.egg-info/dependency_links.txt
/usr/lib/python2.7/dist-packages/WebOb-1.1.1.egg-info/SOURCES.txt
/usr/lib/python2.7/dist-packages/WebOb-1.1.1.egg-info/PKG-INFO
/usr/share/doc/python-webob/docs/_static/searchtools.js
/usr/share/doc/python-webob/docs/_static/jquery.js
/usr/share/doc/python-webob/docs/_static/sidebar.js
/usr/share/doc/python-webob/docs/_static/doctools.js
/usr/share/doc/python-webob/docs/_static/underscore.js
/usr/share/doc/python-paste/docs/webob
:~/$

Thanks for the pointer.

Peter Bienstman

unread,
Mar 6, 2015, 3:54:48 AM3/6/15
to mnemosyne-...@googlegroups.com
Hi,

I seem to recall seeing issues like this before, but I suggest looking for help on a Debian forum.

(Note that I no longer use Linux for development)

Cheers,

Peter

> -----Original Message-----
> From: mnemosyne-...@googlegroups.com [mailto:mnemosyne-
> proj-...@googlegroups.com] On Behalf Of jf...@sdf.org
> --
> 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/50233ff5-c1f9-
> 474a-b3a7-80ed04cfe7ea%40googlegroups.com.

Ricco Pobre

unread,
Mar 7, 2015, 3:38:22 AM3/7/15
to mnemosyne-...@googlegroups.com, jf...@sdf.org
Ok ... went to debian forums and someone actually made a backport of python-webob for wheezy for me! Now it seems that mnemosyne works.

I don't see the source code ... is mnemosyne opensource?

Thanks.

On Friday, March 6, 2015 at 2:42:36 PM UTC+7, jf...@sdf.org wrote:

Chris

unread,
Mar 8, 2015, 12:21:35 PM3/8/15
to mnemosyne-...@googlegroups.com, jf...@sdf.org
Hi,

Yes, Mnemosyne is Open Source :-)
Source Code: https://code.launchpad.net/mnemosyne-proj
More info: http://mnemosyne-proj.org/hacking-mnemosyne

Great that you found a solution for your problem. 
May I ask where the backport of python-webob can be found? I installed just Mnemosyne on my new Raspberry Pi 2 using Raspbian (a system based on Debian Wheezy) and ran into the same problem you posted above.

Cheers,
Chris

Ricco Pobre

unread,
Mar 8, 2015, 2:14:19 PM3/8/15
to mnemosyne-...@googlegroups.com
The solution lay in backporting a version of python-webob >=1.4 to replace the 1.1.1-1.1 in the wheezy repository at debian. There is a copy generously provided by Steve Pusser at the uri directly below :

https://copy.com/INMOCwyJl61ZtGbo

The relevant thread is

http://forums.debian.net/viewtopic.php?f=8&t=120789&p=571057#p571057

Mateusz Konieczny

unread,
Mar 8, 2015, 2:17:16 PM3/8/15
to mnemosyne-...@googlegroups.com, jf...@sdf.org
From Debian forums thread:

"You might let the mnemosyne developers know they should have python-webob (>= 1.4) listed as one of their dependencies now."

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

na...@online.de

unread,
Mar 8, 2015, 2:19:06 PM3/8/15
to mnemosyne-...@googlegroups.com
Thanks a lot - it works now :-)

jfmxl

unread,
Mar 8, 2015, 2:26:50 PM3/8/15
to mnemosyne-...@googlegroups.com, Mateusz Konieczny

Peter Bienstman

unread,
Mar 9, 2015, 5:31:48 AM3/9/15
to mnemosyne-...@googlegroups.com
Hi,

The readme file already mentioned this, but now I've also added that the version needs to be at least 1.4.

Thanks for letting people know!

Cheers,

Peter

> -----Original Message-----
> From: mnemosyne-...@googlegroups.com [mailto:mnemosyne-
> proj-...@googlegroups.com] On Behalf Of jfmxl
> Sent: 08 March 2015 19:27
> To: mnemosyne-...@googlegroups.com
> Cc: Mateusz Konieczny
> Subject: Re: [mnemosyne-proj-users] Re: Mnemosyne won't start
>
> Did so ...
> https://groups.google.com/forum/#!topic/mnemosyne-proj-users/4ZJLmLg-
> users+un...@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/d823f271b0f6987142ebe1384ad50de8%40SDF.ORG.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages