473,545 Members | 2,663 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.listenT CP(143, factory)
File "/usr/lib/python2.5/site-packages/twisted/internet/
posixbase.py", line 467, in listenTCP
p.startListenin g()
File "/usr/lib/python2.5/site-packages/twisted/internet/tcp.py",
line 733, in startListening
raise CannotListenErr or, (self.interface , self.port, le)
twisted.interne t.error.CannotL istenError: 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
__new__
mainloop=mainlo op)
File "/var/lib/python-support/python2.5/dbus/_dbus.py", line 107, in
__new__
bus = BusConnection._ _new__(subclass , bus_type, mainloop=mainlo op)
File "/var/lib/python-support/python2.5/dbus/bus.py", line 121, in
__new__
bus = cls._new_for_bu s(address_or_ty pe, mainloop=mainlo op)
dbus.exceptions .DBusException: org.freedesktop .DBus.Error.NoR eply: 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
broken.

$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.

-Huisan
Jan 3 '08 #1
0 1204

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

Similar topics

0
1011
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 via dbus. Shortly: - pymacs loads some python classes that publish the method "pop_to_window" into a SessionBus (plus a threaded mailoop that
0
1867
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 have started a background session for maintenance and not to worry if the computer seems to be doing things that aren't related to their session. ...
0
1123
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 flux... Does anyone know of a source for a few simple examples that can get me started? Does anyone know if a suitably privileged user can send a...
1
1816
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 what it's capacity is. If I'm barking up the wrong tree, what should I be considering instead ?
1
2270
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 script is the closet to what it is I actually want to learn to do. The error is: Traceback (most recent call last):
2
3222
ashitpro
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?
4
6807
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, so how could I install dbus module for Windows Python 2.5 ? ps Is there anyone trying to port Scribes to Windows?
0
1079
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 if my code contains errors. The event will just stop silently at the point where the exception occurs, and no message is printed or logged. This...
0
1065
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 printers for example are connected to the system at application launch without engaging in some insane probing activity? Thanks, Frank Aune
0
7490
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7682
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7449
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6009
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5069
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3479
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3465
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1911
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
734
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.