Questions tagged [twisted.application]
10 questions
12
votes
3 answers
How to gracefully exit application started with twistd?
I have a jabber client that is reading from its stdin and posting PubSub messages. If I get EOF on stdin, I want to terminate the client.
I first tried sys.exit(), but this causes an exception and the client does not exit. I then did some…

lawnsea
- 6,463
- 1
- 24
- 19
3
votes
1 answer
Running a Twisted Application in PyDev
I would like to debug a Twisted Application (10.0.0) using the Eclipse (3.5.2) PyDev Module (1.6.4) and Python (2.6.5). To run the application from the command line I would specify the following:
c:\python26\python c:\python26\scripts\twistd.py -ny…

user589123
- 61
- 5
3
votes
2 answers
i'm getting 'nonetype' not iterable error in python /twisted
I am trying to understand why I get the following error that comes about when I try to evaluate the contents of a cell, some function is either not returning or I don't understand how this stuff works.
2012-11-08 04:30:45-0800…

mike
- 897
- 2
- 10
- 29
2
votes
1 answer
Wait for a twisted service to start before starting another
I have written a proxy server that uses twisted's application framework. At it's core there it uses a DHT to resolve things. The DHT client takes a few seconds to start, so i want to make sure that the proxy only accepts connections after the DHT is…

Jochen Ritzel
- 104,512
- 31
- 200
- 194
1
vote
1 answer
Run Non-Twisted-based Python script daemonized with twistd
I'm writing a Python program consisting of a server (using Twisted) and a client (without Twisted)
The server part is implemented using Twisted and Twisted's application framework and launched with Twistd to be daemonized.
The client which runs on a…

Wolkenarchitekt
- 20,170
- 29
- 111
- 174
1
vote
1 answer
How deploy Twistd https application (.tac) with systemd as unprivileged user?
My https(port 443) twistd application (.tac) works fine deployed as a systemd service but the unit file requires user:root to listen/bind ports below 1000. The problem is that twistd runs also as user:root.
How to listen/bind port 443 then hand-off…

antonymott
- 113
- 1
- 9
1
vote
1 answer
Twisted multiple ports
I am working with a multiple port application, my issue is the about the decoder that I use, let me explain with the code
This is my tac file, where I read which port I will use from a config file, this config file have section for the port which…

Carlos
- 4,299
- 5
- 22
- 34
1
vote
1 answer
Twisted: spawn an application daemon from another application daemon
I have a Twisted application daemon which is started by twistd. This daemon acts as a daemon manager to manage many other Twisted application daemons. I can send the manager a "new" command via TCP and the manager should spawn(fork) another Twisted…

jjyao
- 315
- 5
- 16
0
votes
1 answer
twisted module of python3 portion missing on osx
I can only find portion of twisted in my python3 on OSX but complete in python2,
Some important packages missing here, such as
twisted.application
It will be the same result no matter whether by download complete package or by run pip3
python3…

Zhang LongQI
- 494
- 1
- 11
- 25
-1
votes
1 answer
Unit Test for twisted addCallback with nested method
I have a situation to write a unit test for the below code, please help me out here.
def method1(self):
self.method2()
def method2(self):
def method2_success(result):
if result.code == 200:
self.state =…

Mahendra Garg
- 516
- 1
- 9
- 27