471,595 Members | 1,252 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,595 software developers and data experts.

A problem of twisted and dbus

Hello everyone,

I am writing a program with twisted and dbus and got a such problem.

If i run the code as
$python local_proxy.py
There is an error like this:
Traceback (most recent call last):
File "local_proxy.py", line 608, in <module>
reactor.listenTCP(143, factory)
File "/usr/lib/python2.5/site-packages/twisted/internet/
posixbase.py", line 467, in listenTCP
File "/usr/lib/python2.5/site-packages/twisted/internet/tcp.py",
line 733, in startListening
raise CannotListenError, (self.interface, self.port, le)
twisted.internet.error.CannotListenError: Couldn't listen on any:143:
(13, 'Permission denied').

So I tried to run the program as $sudo python local_proxy.py
I got another error:
Traceback (most recent call last):
File "local_proxy.py", line 625, in <module>
session_bus = dbus.SessionBus()
File "/var/lib/python-support/python2.5/dbus/_dbus.py", line 218, in
File "/var/lib/python-support/python2.5/dbus/_dbus.py", line 107, in
bus = BusConnection.__new__(subclass, bus_type, mainloop=mainloop)
File "/var/lib/python-support/python2.5/dbus/bus.py", line 121, in
bus = cls._new_for_bus(address_or_type, mainloop=mainloop)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did
not receive a reply. Possible causes include: the remote application
did not send a reply, the message bus security policy blocked the
reply, the reply timeout expired, or the network connection was

$sudo python local_porxy.py worked fine before I added the dbus into
the program. And dbus has no problem for my other programs.
How can I figure out this problem? Any helps will be appreciated.

Jan 3 '08 #1
0 1129

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by pber | last post: by
reply views Thread by Neil Woolford | last post: by
reply views Thread by jerry.levan | last post: by
1 post views Thread by bob | last post: by
2 posts views Thread by ashitpro | last post: by
4 posts views Thread by est | last post: by
reply views Thread by Frank Aune | last post: by
reply views Thread by Frank Aune | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.