crashes on open, "ImportError: No module named static"

Bug #1326151 reported by Graham Holland
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
The Mnemosyne Project
Invalid
Undecided
Unassigned

Bug Description

I just performed a fresh install of Mnemosyne 2.3 from source for Debian Linux. I followed the instructions in the README and installed all the dependencies that were listed for Ubuntu. Mnemosyne now crashes when attempting to open it, Traceback is attached below:

It looks like the culprit is webob. The currently installed version of python-webob package is 1.1.1-1.1

----------------------------------------------------------------------------------------
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', '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-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-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-py2.7.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 "/usr/local/lib/python2.7/dist-packages/Mnemosyne-2.3-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-py2.7.egg/mnemosyne/web_server/web_server.py", line 14, in <module>
    from webob.static import FileApp
 ImportError: No module named static

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

This is not a Mnemosyne issue, but rather the webob package is not properly installed. I suggest you contact the Debian developers.

Changed in mnemosyne-proj:
status: New → Invalid
Revision history for this message
Pat Blair (patdaburu) wrote :

I had the same problem on Ubuntu 12.04 LTS. After reading this post, I uninstalled the python-webob package and downloaded/installed WebOb 1.4 from http://webob.org/ . That seems to have resolved it.

Revision history for this message
Graham Holland (graham-holland) wrote : Re: [Bug 1326151] Re: crashes on open, "ImportError: No module named static"

Thanks for the info. In case anyone else finds the same problem, following
the steps Pat outlined fixed things for me.

On Thu, Jun 5, 2014 at 3:31 PM, Pat Blair <email address hidden> wrote:

> I had the same problem on Ubuntu 12.04 LTS. After reading this post, I
> uninstalled the python-webob package and downloaded/installed WebOb 1.4
> from http://webob.org/ . That seems to have resolved it.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1326151
>
> Title:
> crashes on open, "ImportError: No module named static"
>
> Status in The Mnemosyne Project:
> Invalid
>
> Bug description:
> I just performed a fresh install of Mnemosyne 2.3 from source for
> Debian Linux. I followed the instructions in the README and installed
> all the dependencies that were listed for Ubuntu. Mnemosyne now
> crashes when attempting to open it, Traceback is attached below:
>
> It looks like the culprit is webob. The currently installed version of
> python-webob package is 1.1.1-1.1
>
>
> ----------------------------------------------------------------------------------------
> 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', '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-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-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-py2.7.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
> "/usr/local/lib/python2.7/dist-packages/Mnemosyne-2.3-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-py2.7.egg/mnemosyne/web_server/web_server.py",
> line 14, in <module>
> from webob.static import FileApp
> ImportError: No module named static
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/mnemosyne-proj/+bug/1326151/+subscriptions
>

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.