[apport] ldaptor-webui crashed with AttributeError in <module>()

Bug #89158 reported by Tobias Strauß
6
Affects Status Importance Assigned to Milestone
ldaptor (Ubuntu)
Confirmed
Medium
MOTU

Bug Description

  09:32 ~
  tac @ colin
$ ldaptor-webui
Traceback (most recent call last):
  File "/usr/bin/ldaptor-webui", line 4, in <module>
    from ldaptor.apps.webui import main
  File "/usr/lib/python2.5/site-packages/ldaptor/apps/webui/main.py", line 5, in <module>
    from ldaptor.config import LDAPConfig
  File "/usr/lib/python2.5/site-packages/ldaptor/config.py", line 4, in <module>
    from ldaptor import interfaces
  File "/usr/lib/python2.5/site-packages/ldaptor/interfaces.py", line 3, in <module>
    class ILDAPEntry(components.Interface):
AttributeError: 'module' object has no attribute 'Interface'

feisty: Linux colin 2.6.20-9-generic #2 SMP Mon Feb 26 03:01:44 UTC 2007 i686 GNU/Linux

ProblemType: Crash
Architecture: all
Date: Sun Feb 25 22:30:37 2007
DistroRelease: Ubuntu 7.04
ExecutablePath: /usr/bin/ldaptor-webui
InterpreterPath: /usr/bin/python2.5
Package: ldaptor-webui 0.0.43-0.4ubuntu2
ProcCmdline: /usr/bin/python /usr/bin/ldaptor-webui
ProcCwd: /home/tac
ProcEnviron:
 SHELL=/bin/bash
 PATH=/home/tac/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
 LANG=de_DE.UTF-8
 LANGUAGE=de_DE.UTF-8
PythonArgs: ['/usr/bin/ldaptor-webui']
SourcePackage: ldaptor
Uname: Linux colin 2.6.20-9-generic #2 SMP Mon Feb 26 03:01:44 UTC 2007 i686 GNU/Linux

Revision history for this message
Tobias Strauß (tocomo) wrote :
Revision history for this message
Daniel Holbach (dholbach) wrote :

Thanks for your bug report.

Changed in ldaptor:
assignee: nobody → motu
importance: Undecided → Medium
status: Unconfirmed → Confirmed
Revision history for this message
Kapis (capiscuas) wrote :

The reason is that components.interface is depecrated, as replacement you must use zope.interface.Interface (sudo apt-get install python-zope-interface

Here is a solution (the ldaptor team should change this in their code)
Replace components.interface to zope.interface in this files:

/site-packages/ldaptor/interfaces.py
/site-packages/ldaptor/apps/webui/search.py
/site-packages/ldaptor/apps/webui/iwebui.py

Revision history for this message
jacob.elder@gmail.com (jacob-elder) wrote :

Ivan,

Could you post a patch showing your changes?

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.