Editra fails with "ImportError: No module named ebmlib"

Bug #470378 reported by Peter Magnusson
90
This bug affects 14 people
Affects Status Importance Assigned to Milestone
wxwidgets2.8 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: python-wxgtk2.8

The editor "Editra" is included in python-wxgtk2.8 but it doesn't work.
Fails with "ImportError: No module name ebmlib"

I'm running a fresh installed and updated Karmic.

ProblemType: Bug
Architecture: i386
Date: Mon Nov 2 01:27:44 2009
DistroRelease: Ubuntu 9.10
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
Package: python-wxgtk2.8 2.8.10.1-0ubuntu1
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SourcePackage: wxwidgets2.8
Uname: Linux 2.6.31-14-generic i686

See also bug 490863.

Revision history for this message
Peter Magnusson (kmpm) wrote :
Revision history for this message
Peter Magnusson (kmpm) wrote :

This (editra) should perhaps be in a separate package as wanted in #280653.
Don't know if it should be built from the wxPython sources or from it's own (editra.org/download)

Changed in wxwidgets2.8 (Ubuntu):
status: New → Confirmed
description: updated
Revision history for this message
prudentior (prudentior) wrote :

Installation identical as defined in this Bug Description.
The error depends on the confusion between python-wxgtk2.6 and python-wxgtk2.8.
I verified with ipython that the predefined library loaded under the name wx.tools is the following:
import wx.tools
wx.tools.__file__
'/usr/lib/python2.6/dist-packages/wx-2.6-gtk2-unicode/wx/tools/__init__.pyc'

Then I substituted the original /usr/bin/editra my ~/bin/my_editra:
      #!/usr/bin/python2.6
      # -*- coding: utf-8 -*-
      # ~/bin/my_editra

      import wxversion
      wxversion.select('2.8-gtk2-unicode')
      from wx.tools.Editra.launcher import main
      main()

Running ~/bin/my_editra reveals that the error is no more equal to the present Bug #470378, but corresponds exactly to the Bug #490863.
The required module ebmlib is not present.

I've found a full patched source prepared for Salix, a linux distribution based on Slackware:
http://download.salixos.org/i486/13.0/source/l/wxPython
The accluded file editra-ebmlib.diff shows in full evidence the problem of the ebmlib module.

Revision history for this message
Olly Betts (ojwb) wrote :

editra has since been dropped from wxwidgets2.8 (in 2.8.10.1-1).

Changed in wxwidgets2.8 (Ubuntu):
status: Confirmed → Fix Released
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.