Questions tagged [twisted]

Twisted is an event-driven networking engine, written in Python and implementing many different protocols.

Twisted is a multi-protocol, event-driven, liberally-licensed open-source networking engine written in Python. It is useful for implementing both clients and servers, and scales up to large websites and down to embedded devices. Twisted makes it easy to implement custom network applications.

3465 questions
1
vote
1 answer

Issue running Scrapy with CrawlerProcess, TwistedScheduler, and a couple middlewares. Can run the crawler for a x time and it will eventually fail

As stated above after running the code for some time it fails. Logs do not show anything it will just cease to work. I will show some of the warnings and errors I got as well as the code and settings file. Keep in mind the code it fully functional…
kian
  • 13
  • 3
1
vote
1 answer

Twisted under windows

Twisted located at C:\Python26\Lib\site-packages\Twisted-11.0.0-py2.6-win32.egg\twisted but C:\projects\webmorda>twistd -n morda_server Traceback (most recent call last): File "C:\Python26\Scripts\twistd.py", line 4, in import…
alex
  • 521
  • 1
  • 5
  • 17
1
vote
1 answer

How can I run a simple twisted client on top of asyncio?

I have the following client code that I borrowed from twisted's docs: https://docs.twistedmatrix.com/en/twisted-20.3.0/web/howto/client.html#the-agent And I am trying to run it with asyncio since I am building an asyncio project that requires…
1
vote
1 answer

Python twisted dataReceived method receive complete data at once

This is my code ` class TestProtocol(Protocol): def connectionMade(self): print 'Got connection from', self.transport.client def dataReceived(self, data): print(data) class Test(Factory, HoneypotService): NAME =…
ljs
  • 11
  • 2
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 can I dynamically generate a set of TestCase subclasses from another module?

I have one python module that defines a set of base classes which another python module then implements. The core python module also has test cases that test if the base classes are correctly implemented. In the second module's test suite, I would…
Thomas Vander Stichele
  • 36,043
  • 14
  • 56
  • 60
1
vote
1 answer

Can't get Twisted to return application/json content-type

I have a server which is supposed to return JSON, I set the request response 'Content-Type' to 'application/json', yet from client side I always get text/html this is the server printing response headers: b'Server' = [b'TwistedWeb/22.4.0'] b'Date' =…
Paul
  • 21
  • 3
1
vote
1 answer

How can I use Twisted's ThrottlingFactory with their web client?

Problem I need to execute HTTP requests and simulate high latency at the same time. I have encountered the Twisted package in Python which includes both an HTTP client and a ThrottlingFactory. The issue I am encountering is that the documentation is…
Joe
  • 85
  • 12
1
vote
2 answers

Using Roslibpy on Android with Kivy and Buildozer

I am trying to create a simple Android app using Kivy and Buildozer that publishes a message to a Ros topic using roslibpy. The app works perfectly on Windows and Ubuntu, but crashes immediately on Android. I have been using logcat to debug on…
1
vote
1 answer

Add a second ILogObserver to a service

I try to write a small service with twisted. I created a simple Application, and try to add 2 ILogObservers to my service. But unfortunatly, it doesnt work. The last added Observer is always the observer that will be used. def…
Carsten
  • 31
  • 2
1
vote
1 answer

Twisted python - socket to bind to path on the filesystem

I am trying to implement a socket server that receives rsyslog messages from windows or linux os. Ryslog uses omuxsock to output logs to socket server. I want to use twisted python to implement this socket that receives windows event/linux syslog…
Sridev
  • 33
  • 7
1
vote
2 answers

Twisted task.LoopingCall : Unhandled error in Deferred:

My Code from twisted.internet import task, reactor def stuff(): print('Hello, world!') scheduler = task.LoopingCall(stuff()) scheduler.start(10) reactor.run() This is the Error I am getting Hello, world! Unhandled error in…
Usama Fayyaz
  • 41
  • 2
  • 7
1
vote
1 answer

Plugin not found in subcommand - Twisted (22.4.0)

My project structure is as below. I couldn't find enough data from the twisted documentation -rolling ->roll ->__init__.py ->rollserver.py ->twisted ->plugins …
Jolly
  • 126
  • 6
1
vote
1 answer

How can I use "Expect: 100-continue" header in Twisted Web?

I've been working with AkaDAV, a Twisted based WebDAV server, and I'm trying to support the full litmus test suite. I'm currently stuck on the http sub-suite. Specifically, I can run: $ TESTS=http litmus http://localhost:8080/steder/ -> running…
stderr
  • 8,567
  • 1
  • 34
  • 50
1
vote
1 answer

how to run arcade with twisted?

I wish to use the arcade library with the twisted library. but they both have a blocking main loop run() function. what should I do? I tried using threads so the main loops would run simultaneously. but arcade crushes when I try to run it.
ajr120
  • 11
  • 2
1 2 3
99
100