473,224 Members | 1,687 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,224 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 1184

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: pber | last post by:
Hi all, I'm on trouble with pymacs and python binding of DBus 0.23. Emacs/Xemacs have their gnuclient(s) to make remote calls to, but I wanted to (try to) make some xemacs functions callable...
by: Neil Woolford | last post by:
I'd like to be able to pop up a notification bubble like the ones used by Ubuntu for 'updates available' etc. In particular I'd like to be able to use them to warn users of other machines that I...
by: jerry.levan | last post by:
I am trying to learn a bit about dbus on my Fedora Core 5 laptop. All of the python examples I find on google fail to "compile" for one reason or another, I guess the interface is still in...
by: bob | last post by:
Hello, First of all, does anyone know whether dbus will allow be to do 3 things: 1. query whether or not there is a dvd drive. 2. query whether or not there is a blank disc in it. 3. query...
by: bob | last post by:
Hi, I have this sample python script from the hal sources, but it doesn't work for me. This is despite other example python scripts I have to help me are working fine. The problem is that this...
by: ashitpro | last post by:
I am using dbus-1.0.2 I am getting few run time errors. To debug this thing I want to build the dbus with rdynamic. How can I do that?
by: est | last post by:
Hi all I am trying to port Scribes to Windows, but I could not find a package named dbus-python for windows. There is a windbus <http:// sourceforge.net/projects/windbus/but it not for Python,...
by: Frank Aune | last post by:
Hi, Im using DBUS in my application to detect HW hotplugging and removal, which works great except for one thing: The code executed when a hotplugging is detected does not raise exceptions, even...
by: Frank Aune | last post by:
Hello, Detecting Hotpluggable hardware using DBUS works great, but usually peripherals are already connected when launching the application. How can I (preferably using DBUS) detect which USB...
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...

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.