checkbox-editor in trunk crashes when run

Bug #998843 reported by Chris Gagnon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox Editor
Invalid
Undecided
Unassigned

Bug Description

Summary:
checkbox-editor in trunk crashes when run

Steps:
1. use bzr to download http://bazaar.launchpad.net/~javier.collado/checkbox-editor/trunk/revision/145
2. build latest checkbox editor (dpkg-buildpackage -rfakeroot -uc -us)
3. install .deb built in step 2 with dpkg -i

Expected results:
checkbox-editor runs

Actual results:
checkbox-editor crashes

Addition information:

Traceback (most recent call last):
The stderr output is:
  File "/usr/bin/checkbox-editor", line 6, in <module>
    from checkbox_editor.editor import Editor
  File "/usr/lib/python2.7/dist-packages/checkbox_editor/editor.py", line 17, in <module>
    from .about import AboutDialog
  File "/usr/lib/python2.7/dist-packages/checkbox_editor/about.py", line 10, in <module>
    from . import build
ImportError: cannot import name build

Revision history for this message
Javier Collado (javier.collado) wrote :

@Chris

Sorry for taking so long to answer this.

The problem is that checkbox-editor uses a packager template to generate have the version number, revision, etc. available in a python module that can be used, for example, to display that information in the `Help -> About` menu. When the checkbox-editor branch is created, that template (checkbox-editor/build.py.mako) hasn't been yet rendered and the python module isn't available.

To fix that you can run:
$ packager render
. render:checkbox_editor/build.py.mako

after that, you'll see that checkbox_editor/build.py is available and that you can launch checkbox-editor from the branch as follows:
$ PYTHONPATH=. ./bin/checkbox-editor

Changed in checkbox-editor:
status: New → Invalid
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.