[Twisted-Python] problem running ldaptor-webui
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,
On Mon, 19 Feb 2007 18:52:10 -0700, Michael Torrie
[snip]
Is ldaptor-webui in need of updating to run with something new that either Twisted or Zope changed?
Yep. twisted.python.components.Interface was deprecated in June of 2004 and removed for the Twisted 2.5 release. zope.interface.Interface should be used instead. Jean-Paul
On Mon, 2007-02-19 at 21:14 -0500, Jean-Paul Calderone wrote:
On Mon, 19 Feb 2007 18:52:10 -0700, Michael Torrie
wrote: [snip]
Is ldaptor-webui in need of updating to run with something new that either Twisted or Zope changed?
Yep. twisted.python.components.Interface was deprecated in June of 2004 and removed for the Twisted 2.5 release. zope.interface.Interface should be used instead.
I just discovered that this problem has broken Ldaptor 0.0.43 completely. If Tommi is on the list, are there any plans to fix it? In the meantime I will try to search and replace everything. Michael
Jean-Paul
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
On Mon, 2007-02-19 at 19:34 -0700, Michael Torrie wrote:
I just discovered that this problem has broken Ldaptor 0.0.43 completely. If Tommi is on the list, are there any plans to fix it? In the meantime I will try to search and replace everything.
Actually there were just 3 files total in the ldaptor source tree that needed to be changed to import from zope.interface for Interface. thanks so much.
Michael
Jean-Paul
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
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