[Twisted-Python] problem running ldaptor-webui
![](https://secure.gravatar.com/avatar/dd0a221452e4e6cc0b705f2df0d4cfa3.jpg?s=120&d=mm&r=g)
I am using python 2.4 on FC6, and Twisted 2.5.0. I have installed the latest stable versions from source of Nevow, Webut, and ldaptor (0.0.43). I tried to run the ldaptor-webui program, but encountered the following traceback: Traceback (most recent call last): File "/usr/bin/ldaptor-webui", line 4, in ? from ldaptor.apps.webui import main File "/usr/lib/python2.4/site-packages/ldaptor/apps/webui/main.py", line 5, in ? from ldaptor.config import LDAPConfig File "/usr/lib/python2.4/site-packages/ldaptor/config.py", line 4, in ? from ldaptor import interfaces File "/usr/lib/python2.4/site-packages/ldaptor/interfaces.py", line 3, in ? class ILDAPEntry(components.Interface): AttributeError: 'module' object has no attribute 'Interface' Apparently this stems from something related to Zope. The imported module in question, <module 'twisted.python.components' from '/usr/lib/python2.4/site-packages/twisted/python/components.pyc'>, indeed has no attribute Interface. However it does import "interface", module <module 'zope.interface.interface' from '/usr/lib/python2.4/site-packages/zope/interface/interface.pyc'>. Is ldaptor-webui in need of updating to run with something new that either Twisted or Zope changed? thanks. Michael
![](https://secure.gravatar.com/avatar/935da7261fad70a1c9724234ea79afd2.jpg?s=120&d=mm&r=g)
Hi, I'm Newbee in Twisted and I tried to run Web2 examples. I obtain an error when I run http://twistedmatrix.com/projects/web2/documentation/examples/intro/simple.p... AttributeError: 'module' object has no attribute 'Interface' Traceback (innermost last): File "/opt/twisted/simple.py", line 1, in ? from twisted.web2 import server, http, resource, channel File "/opt/twisted/simple.py", line 1, in ? from twisted.web2 import server, http, resource, channel File "/usr/lib/python2.4/site-packages/twisted/web2/server.py", line 25, in ? from twisted.web2 import http, iweb, fileupload, responsecode File "/usr/lib/python2.4/site-packages/twisted/web2/http.py", line 27, in ? from twisted.web2 import iweb File "/usr/lib/python2.4/site-packages/twisted/web2/iweb.py", line 58, in ? class IOldNevowResource(components.Interface): It seem's components.Interface is deprecated and replaced by zope.interface.Interface If I replace components.Interface by Interface in /usr/lib/python2.4/site-packages/twisted/web2/iweb.py It's run! by
![](https://secure.gravatar.com/avatar/935da7261fad70a1c9724234ea79afd2.jpg?s=120&d=mm&r=g)
Hi, I'm Newbee in Twisted and I tried to run Web2 examples. I obtain an error when I run http://twistedmatrix.com/projects/web2/documentation/examples/intro/simple.p... AttributeError: 'module' object has no attribute 'Interface' Traceback (innermost last): File "/opt/twisted/simple.py", line 1, in ? from twisted.web2 import server, http, resource, channel File "/opt/twisted/simple.py", line 1, in ? from twisted.web2 import server, http, resource, channel File "/usr/lib/python2.4/site-packages/twisted/web2/server.py", line 25, in ? from twisted.web2 import http, iweb, fileupload, responsecode File "/usr/lib/python2.4/site-packages/twisted/web2/http.py", line 27, in ? from twisted.web2 import iweb File "/usr/lib/python2.4/site-packages/twisted/web2/iweb.py", line 58, in ? class IOldNevowResource(components.Interface): It seem's components.Interface is deprecated and replaced by zope.interface.Interface If I replace components.Interface by Interface in /usr/lib/python2.4/site-packages/twisted/web2/iweb.py It's run! by
participants (3)
-
Jean-Paul Calderone
-
Michael Torrie
-
Olivier Fournier