[Twisted-Python] How to use ampoule?

2009-02-20 Thread Chris
e for such a kind of task? Or I should just use twisted process module? I don't know my understanding is correct or not,please correct me. Best Wishes Chris ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.c

[Twisted-Python] twisted.web2 only can serve one connection at the same time when using scgi?

2009-06-23 Thread Chris
e callbacks will wait for my defer to finish ,even I run it with reactor.callLater.so far,I feel I can do nothing about this,anyone can help me about this? Regards Chris ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

[Twisted-Python] problem on running apache2 + scgi

2009-07-02 Thread Chris
.AttributeError: SCGIChannelRequest instance has no attribute 'pauseProducing' it seems the error is from the twisted.web2 module,usually when the data is very big,I will get this exception.how to avoid this exception? I have to transfer the data in one request anyway. Any suggestion is helpfu

Re: [Twisted-Python] revisiting onboarding

2015-02-02 Thread Chris
Glyph, I support this idea. I like the fact that it gives a clear goal (5 submitted patches, 5 reviews, and 2 accepted submissions) towards which people interested in committing can work. -Chris (herrwolfe) > On Feb 2, 2015, at 1:18 PM, Glyph Lefkowitz wrote: > > A few months

[Twisted-Python] doWrite on twisted.internet.tcp.Port

2020-09-11 Thread chris
Hey guys, Last year I hit a condition discussed in this ticket: https://twistedmatrix.com/trac/ticket/4759 for doWrite called on a twisted.internet.tcp.Port. I ignored it at the time since it was just on Linux, and my main platform was Windows. Now I'm coming back to it. I'll add contex

Re: [Twisted-Python] doWrite on twisted.internet.tcp.Port

2020-09-12 Thread chris
with, “knowing is half the battle.” -Chris From: Twisted-Python On Behalf Of Jean-Paul Calderone Sent: Friday, September 11, 2020 1:28 PM To: Twisted general discussion Subject: Re: [Twisted-Python] doWrite on twisted.internet.tcp.Port On Fri, Sep 11, 2020 at 1:34 PM mailto:ch

Re: [Twisted-Python] doWrite on twisted.internet.tcp.Port

2020-09-30 Thread chris
. -Chris From: Twisted-Python On Behalf Of ch...@cmsconstruct.com Sent: Saturday, September 12, 2020 12:07 PM To: 'Twisted general discussion' Subject: Re: [Twisted-Python] doWrite on twisted.internet.tcp.Port Hi Jean-Paul, Thank you very much for the detailed answe

Re: [Twisted-Python] SURVEY: Have you submitted a patch to Twisted and it never got in?

2011-07-01 Thread chris
r continuous community contribution, because IMHO they simply allow for a more developer friendly process for all involved, thus making the whole review process a more friendly and less discouraging thing. Cheers, Chris ___ Twisted-Python mailin

Re: [Twisted-Python] naming question before we end up committed...

2014-09-28 Thread Chris
+1 for twisted.logger. ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] Software that uses Twisted

2009-01-14 Thread Chris Hallman
I don't mean to be picky, but whomever ever wrote that site used poor English grammar. To be taken more serious, you need to correct the grammatical mistakes. chris On Tue, Jan 13, 2009 at 4:32 PM, wrote: > Description: A control panel for Windows visible form any part of the

Re: [Twisted-Python] Software that uses Twisted

2009-01-14 Thread Chris Hallman
n 14, 2009 at 6:35 PM, s s > wrote: > > With seriously, taken you will be more. > > > > S > > > > On Jan 14, 2009, at 11:42 AM, Giles Antonio Radford wrote: > > > >> Surely "seriously"? > >> > >> HTH, HAND, > >> &

Re: [Twisted-Python] Using sqlalchemy in twisted.

2009-03-04 Thread Chris Foster
I think SQLAlchemy's ORM might work fine with Twisted. Check out http://foss.eepatents.com/sAsync/ . sAsync doesn't appear to be widely used, but I got the examples to run with some minor changes to the sqlite connection. I'm hoping to try something useful in the next week or two. On Mar

[Twisted-Python] Twisted mirror down?

2009-04-08 Thread Chris Foster
Who/where/how do we report a problem with http://tmrc.mit.edu/mirror/twisted/Twisted/8.2/Twisted-8.2.0.tar.bz2 ? ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

[Twisted-Python] How to do basic authentication on twisted web

2009-08-17 Thread Chris Adams
inaries, that might not work within the confined of a small openwrt install. C -- --- I'm currently only checking my email at 9am, midday and at 4pm. If you need a response from me urgently, please call or text my mobile, or contact me via Skype (chris.d.adams). --- Chris Adams Stemcel Studios

Re: [Twisted-Python] How to do basic authentication on twisted web

2009-08-17 Thread Chris Adams
hon mailing list > Twisted-Python@twistedmatrix.com > http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python > -- --- I'm currently only checking my email at 9am, midday and at 4pm. If you need a response from me urgently, please call or text my mobile, or contact me via

Re: [Twisted-Python] How to do basic authentication on twisted web

2009-08-17 Thread Chris Adams
ly, please call or text my mobile, or contact me via Skype (chris.d.adams). --- Chris Adams Stemcel Studios The Hub 5 Torrens Street London EC1V 1NQ email: ch...@stemcel.co.uk web: www.stemcel.co.uk twitter:chris_d_adams skype: chris.d.adams mob: 07974 368 229 tel: 0207 558 8971 __

Re: [Twisted-Python] deciding to use twisted or not

2009-08-27 Thread Chris Adams
If you're using a linux based system, you may have some luck setting up syslogger to forward logging packets to the remote ip address, and running the twisted daemon on the other box, and sending notifications if the heartbeat from the monitored machine stops. I was working on a project recently t

[Twisted-Python] deferring result to PB a callRemote method

2010-01-18 Thread Chris Laws
ent) side also trigger the same/copy deferred returned to the plugin-runner (server)? Is this PB magic, somehow managing deferreds across the PB interface? Regards, Chris from twisted.internet import reactor, defer from twisted.spread import pb import datetime class PluginClient(pb.Referenceable

[Twisted-Python] deferring result to PB a callRemote method

2010-01-19 Thread Chris Laws
which *> >* is FingerService, which returns Deferreds from its getUser and getUsers *> >* methods. *> >* *> >* *> >* *> It sems like this should be discussed in the PB docs. Maybe someone should > file a ticket.. > > (hint, hint) Done, #4228. Thanks for t

Re: [Twisted-Python] Twisted 10.0.0 released

2010-03-04 Thread Chris Withers
for when no binaries are available, regardless of platform (ie: GAE) cheers, Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk ___ Twisted-Python mailing list Twisted

Re: [Twisted-Python] Twisted 9.0.0?

2010-03-04 Thread Chris Withers
python community (be it pip, easy_install, virtualenv or buildout) is using to download packages... Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk ___ Twisted-Python mailing

Re: [Twisted-Python] Twisted 9.0.0?

2010-03-04 Thread Chris Withers
I've never had problems with either the register or upload commands... Having the distributions on PyPI makes the OP's problem go away, and reduces the maintenance burned for you guys who release twisted... Chris -- Simplistix - Content Management, Batch Processing & Python

Re: [Twisted-Python] Twisted 9.0.0?

2010-03-04 Thread Chris Withers
it doesn't affect tools like easy_install) but ONLY if you put your distros on PyPI... ...obviously PyPI has not knowledge of your website and so can't do anything about it. Chris -- Simplistix - Content Management, Batch Processing & Python Consulting

Re: [Twisted-Python] Twisted 9.0.0?

2010-03-05 Thread Chris Withers
se process I use for my own packages here: http://packages.python.org/errorhandler/development.html#making-a-release cheers, Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk ___ Tw

Re: [Twisted-Python] Twisted 9.0.0?

2010-03-05 Thread Chris Withers
Tim Allen wrote: > ...so presumably sdist *is* a prerequisite for upload. Or are you saying > that you can store any old file as dist/$PACKAGE-$VERSION.tar.gz and > "setup.py upload" will ship it to PyPI? I think that's true, but I admit, I haven't checked myse

Re: [Twisted-Python] Twisted 10.0.0 released

2010-03-11 Thread Chris Withers
ows version? > > It doesn't ship in any of the packages for other platforms, either (nor > do any of our other external dependencies). Ah, okay, I guess my question becomes: why was it ever bundles in the windows distribution then? Chris -- Simplistix - Content M

Re: [Twisted-Python] Twisted 10.0.0 released

2010-03-11 Thread Chris Withers
Thomas Hervé wrote: > Le jeudi 11 mars 2010 à 10:08 +0000, Chris Withers a écrit : >> exar...@twistedmatrix.com wrote: >>> Also, I'm pretty sure that the 9.0 Windows installer _also_ didn't >>> include zope.interface. So this isn't a new situation

Re: [Twisted-Python] SQLAlchemy, Twisted, and sAsync

2010-03-26 Thread Chris Withers
functional project), > so I threw up a quick Trac page for it at http://sasync.org. Cool. What is it you're doing that needs to mix Twisted and SQLAlchemy? cheers, Chris PS: I've CC'ed the SQLAlchemy list in as well as I think people there may want to add to this discussio

Re: [Twisted-Python] [sqlalchemy] Re: SQLAlchemy, Twisted, and sAsync

2010-03-26 Thread Chris Withers
d and SQLAlchemy? > > The project (an internal project) doesn't really *need* to mix them... I > could just use mysqldb. Heh, wrong end of the stick again; my question was why you needed to use Twisted ;-) cheers, Chris -- Simplistix - Content Management, Batch Processing &

Re: [Twisted-Python] [sqlalchemy] Re: SQLAlchemy, Twisted, and sAsync

2010-03-26 Thread Chris Withers
t it doesn't > needlessly requery the database). Good code examples of this around too? cheers Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk ___ Twisted-Python

[Twisted-Python] twisted vs wsgi

2010-03-30 Thread Chris Withers
= WSGIResource(reactor, reactor.getThreadPool(), config.make_wsgi_app()) factory = Site(resource, 'server.log') reactor.listenTCP(8080, factory) reactor.run() """ I struggled to find good narrative docs on using Twisted as a WSGI server. Where should I have been

[Twisted-Python] data update to multiple clients

2010-04-05 Thread Chris Cusack
?? seconds to query for new data but there may be a better way. Can anyone suggest a suitable design approach using twisted? Is there any example code available that may be similar. Chris ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com

[Twisted-Python] getting "connection per thread" behaviour

2010-04-29 Thread Chris Withers
's useful here? All help gratefully received! Chris ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] SQLAlchemy and Twisted

2010-05-05 Thread Chris Withers
stack (repoze.bfg in my case) and munge other incoming requests into wsgi requests. Twisted's wsgi server runs each request in its own thread, so be it. cheers, Chris ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

[Twisted-Python] How do I get xUnit output from trial for Hudson?

2010-05-06 Thread Chris Withers
Hi All, How can I get trial to emit output that makes Hudson happy? cheers, Chris ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] How do I get xUnit output from trial for Hudson?

2010-05-06 Thread Chris Withers
Chris Withers wrote: > How can I get trial to emit output that makes Hudson happy? Er, shoot me, forgot I'd asked this before. No-one written a junitxml reporter for trial? Any guesses how hard that'd be? cheers, Chris ___ Twisted-P

Re: [Twisted-Python] How do I get xUnit output from trial for Hudson?

2010-05-06 Thread Chris Withers
Jonathan Lange wrote: > Not very. > > "trial --reporter=subunit | subunit2junitxml" works well for me, > although I am running on an OS that supports pipes :) ...and on which subunit compiles ;-) *cough*notwindows*cough Chris -- Simplistix - Content Management, Bat

[Twisted-Python] any change of the .exe builds on PyPI?

2010-09-15 Thread Chris Withers
ie: http://pypi.python.org/pypi/Twisted/10.1.0 It's great that they're being done now, but easy_install and friends on Windows still fail to find them unless they're on PyPI :-( Chris ___ Twisted-Python mailing list Twisted-Python@tw

Re: [Twisted-Python] any change of the .exe builds on PyPI?

2010-09-15 Thread Chris Withers
On 15/09/2010 18:12, Chris Withers wrote: > ie: http://pypi.python.org/pypi/Twisted/10.1.0 > > It's great that they're being done now, but easy_install and friends on > Windows still fail to find them unless they're on PyPI :-( Oh, and I'm afraid the 10.1.0 on

Re: [Twisted-Python] any change of the .exe builds on PyPI?

2010-09-16 Thread Chris Withers
If you can figure out how to make our Windows buildbots build them > together with the .msis and .exes, that would be great. Indeed! Chris ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

[Twisted-Python] how to write a safe catch-all

2010-09-28 Thread Chris Withers
the looping call can continue and my lopp function will keep getting called once every second rather than stopping? cheers, Chris from datetime import datetime from twisted.internet.defer import inlineCallbacks, maybeDeferred, fail, Deferred from twisted.internet import task, reactor f

Re: [Twisted-Python] how to write a safe catch-all

2010-09-29 Thread Chris Withers
rld is in code I don't "own" (looks like twisted's inards...) and I'd like to be able to cater for any failure, unforseen or not (barring say a SyntaxError ;-)) and still have the loop() call keep doing its thing. How can I do that? Chris ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] how to write a safe catch-all

2010-09-29 Thread Chris Withers
sted-8.2.0-py2.5-linux-x86_64.egg/twisted/internet/tcp.py", line 588, in failIfNotConnected del self.connector --- --- File "ourcode.py", line 180, in checkSchedule yield self.sendTransmissions(...) exceptions.GeneratorExit: How can I protect my sched

Re: [Twisted-Python] how to write a safe catch-all

2010-09-29 Thread Chris Withers
> > These sound like bugs. > > File a couple tickets. With a unit tests please. :) That's one side of things, sure, but how can I write a scheduler which handles the current situation? Chris -- Simplistix - Content Management, Batch Processing & Python Consul

Re: [Twisted-Python] how to write a safe catch-all

2010-09-29 Thread Chris Withers
ption, you're basically screwed? There's really no way to write a "safety belt" handler that will record the problem but then keep going?! Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk

Re: [Twisted-Python] how to write a safe catch-all

2010-09-29 Thread Chris Withers
what `loop` does. In "the real app", doStuff is actually @inlineCallbacks as well, the level below that calls with a maybeDeferred and so yes, doing this, same result... > Why would you say there's no way? Because I haven't found any permutation that doesn't re

Re: [Twisted-Python] how to write a safe catch-all

2010-09-30 Thread Chris Withers
7;s already fixed in a newer version of Twisted (unfortunately, I can't move this project to a newer version of Twisted) but once I have a robust scheduler, I'll certainly do my best to report the underlying failure to you guys properly... Chris -- Simplistix -

Re: [Twisted-Python] how to write a safe catch-all

2010-09-30 Thread Chris Withers
acks *and* exceptions handled nicely in my `loop` call? cheers, Chris from datetime import datetime from twisted.internet.defer import inlineCallbacks, maybeDeferred, fail, Deferred, succeed from twisted.internet import task, reactor from twisted.python import log from twisted.python.log import

Re: [Twisted-Python] how to write a safe catch-all

2010-09-30 Thread Chris Withers
On 30/09/2010 14:46, Phil Mayers wrote: > On 30/09/10 14:36, Chris Withers wrote: >> >> Indeed, but, as I keep saying, I need to build a scheduler that's >> resilient to errors in the tasks its running ;-) > > Sure. > >> >>>> Most prominent

Re: [Twisted-Python] how to write a safe catch-all

2010-09-30 Thread Chris Withers
On 30/09/2010 14:39, Jonathan Lange wrote: > On Thu, Sep 30, 2010 at 2:36 PM, Chris Withers wrote: > ... >> >> Is there any way I can get both errbacks *and* exceptions handled nicely in >> my `loop` call? > > You know about defer.maybeDeferred, right? Yep, the prob

[Twisted-Python] The Real Error (tm) [was Re: how to write a safe catch-all]

2010-09-30 Thread Chris Withers
R : log (24331|7f2e47b4d6e0): Unhandled Error Traceback (most recent call last): Failure: twisted.protocols.ftp.FTPError: ('Connection Failed', >) I can't quite make sense of the above, which is why I distilled it down to as-small-as-possible a piece of code

Re: [Twisted-Python] The Real Error (tm) [was Re: how to write a safe catch-all]

2010-09-30 Thread Chris Withers
ffect is the same as the real live observed problem, only I can't replicate the real problem without an ftp server that only happens to accept active connections. I don't have one of those around, and *even* if I did, I want to make the scheduler

Re: [Twisted-Python] how to write a safe catch-all

2010-09-30 Thread Chris Withers
nd this is what I'm talking about when I say "I cannot gracefully handle the exception." Reading back, yes, it appears I was mistaken at some stage that my `loop` function was handling the exception, but I do understand now that it was not... which is frustrating... > The Att

Re: [Twisted-Python] The Real Error (tm) [was Re: how to write a safe catch-all]

2010-10-01 Thread Chris Withers
On 30/09/2010 18:01, Phil Mayers wrote: > It is more than a little confusing, and I'm sure frustrating. > > I've tried to produce something like this locally, but cannot. The very first message in this thread (28th Sept, 14:48) and my email of 30th Sept, 14:36 both had scripts attached which do e

Re: [Twisted-Python] how to write a safe catch-all

2010-10-01 Thread Chris Withers
we've had to bail and now send via sftp using a pexpect-based wrapper around the real sftp command client (we had buggy behaviour with twisted's sftp client elsewhere) I hope this helps, do let me know if I should add it to an issue somewhere... cheers, Chris ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] how to write a safe catch-all

2010-10-01 Thread Chris Withers
forsight to do this at the time, and as I've said, the customer has had enough of us causing their ftp server to generate error messages :-S Chris ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] Twisted 15.1 feedback

2015-03-21 Thread Chris Wolfe
main setup.py file. Thanks! Chris (herrwolfe) On Sat, Mar 21, 2015 at 10:29 AM, HawkOwl wrote: > Hi everyone, > > It's been about two weeks now -- does anyone have any feedback on whether > 15.1 worked/didn't work/caused a resonance cascade? > > If you missed the annou

Re: [Twisted-Python] Twisted 15.1 feedback

2015-03-21 Thread Chris Wolfe
Jean-Paul, You are correct. No, this is not a regression compared to to 15.0. I missed the words 'resonance cascade'. Thanks, Chris On Sat, Mar 21, 2015 at 11:53 AM, wrote: > On 03:41 pm, chriswwo...@gmail.com wrote: > >> Hawkowl, >> >> The new fun

Re: [Twisted-Python] [Twisted-web] Twisted 15.1 Release Announcement

2015-04-14 Thread Chris Wolfe
Hey Hawkie! I gave Glyph all of the stickers that I had, as I thought he'd come into contact with more Twisted people than I do. As such, you might want ping him to get a hold of one. Thanks for all your hard work! Best, Chris // herrwolfe On Tue, Apr 14, 2015 at 12:28 AM, HawkOwl

Re: [Twisted-Python] revisiting onboarding

2015-04-27 Thread Chris Wolfe
Hi, Has this proposal been accepted? Is there anything I can do to help implement it? -Chris On Sun, Feb 8, 2015 at 9:01 AM, Tom Prince wrote: > Glyph Lefkowitz writes: > > > So I have a proposal for a scaled back process that nevertheless would > give us somethi

Re: [Twisted-Python] revisiting onboarding

2015-04-28 Thread Chris Wolfe
m and compile a list of people to whom new commit requests should be sent for review. I can't do this. 3. Send an email to the general mailing list once the new pages are up to announce the new advancement path. I can do this. Is there anything I'm missing? - Chris // herrwolfe On Tue,

Re: [Twisted-Python] revisiting onboarding

2015-05-26 Thread Chris Wolfe
will > forget :). > > -glyph > > P.S.: I've been setting a bad example, but we should generally be > bottom-posting on this list, it makes the conversation easier to follow :). > > On Apr 28, 2015, at 2:54 PM, Chris Wolfe wrote: > > Sure! I can only think of three th

[Twisted-Python] Blacklisting hosts

2015-08-08 Thread Chris Norman
Hi all, I am using Twisted to make a game server. I want to be able to ban IP addresses. Currently I check if the host is in a blacklist, and if it is, call abortConnection on the transport. It works fine, but I'm thinking there should be a better way, to actively refuse the connection in the

Re: [Twisted-Python] Blacklisting hosts

2015-08-10 Thread Chris Norman
Hello, > On 9 Aug 2015, at 17:07, Cory Benfield wrote: > > >> On 8 Aug 2015, at 08:07, Chris Norman wrote: >> >> Hi all, >> I am using Twisted to make a game server. I want to be able to ban IP >> addresses. Currently I check if the host is

Re: [Twisted-Python] Blacklisting hosts

2015-08-10 Thread Chris Norman
Hello, > On 10 Aug 2015, at 03:32, Glyph wrote: > >> >> On Aug 9, 2015, at 9:07 AM, Cory Benfield > <mailto:c...@lukasa.co.uk>> wrote: >> >> >>> On 8 Aug 2015, at 08:07, Chris Norman >> <mailto:chris.norm...@googlemail.com>

Re: [Twisted-Python] revisiting onboarding

2015-10-26 Thread Chris Wolfe
erve on the committee, please reply to this thread and state that you are interested in serving on the committee. Once enough volunteers have signed up, new contributor requests will be sent to the committee's mailing list. Thanks! -- Chris Wolfe

[Twisted-Python] Possible bug

2015-10-30 Thread Chris Norman
Hi all, Using windows 10 with Python 3.5, importing pretty much anything gives me the following error. Not sure if there's something wrong with my configuration or if it's a bug... I seem to remember something a while back, should I file a ticket? Traceback (most recent call last): File ""

Re: [Twisted-Python] Possible bug

2015-10-30 Thread Chris Norman
Hi Amber On 31/10/2015 06:45, Amber "Hawkie" Brown wrote: Hi Chris, Twisted does not yet support Python 3 on Windows. That's a shame. I've never contributed to an open source project before, but I'd be glad to try and help out. I feel I __may__ know enough Python

Re: [Twisted-Python] Possible bug

2015-10-31 Thread Chris Norman
Hi, I've used git extensively, and I can soon read up on how to contribute on git. So what's the next step? Is there a howto somewhere on the Twisted site? Cheers, On 31/10/2015 07:39, Glyph Lefkowitz wrote: On Oct 30, 2015, at 11:49 PM, Chris Norman mailto:chris.norm...@goog

[Twisted-Python] Running Trial [wav]: Re: Possible bug

2015-10-31 Thread Chris Norman
Hi, So I went on the net on the off chance that the info I was looking for was easy to obtain, and I found out about trial. I cloned the git and did: python bin/trial twisted I got the following: Unhandled Error Traceback (most recent call last): File "C:\Users\chris\Dropbox\SRC\tw

[Twisted-Python] Waiting for transports to close

2015-12-16 Thread Chris Norman
Hi all, I'm writing a MUD server, and I want a way for transports to be notified ofa shutdown before being disconnected, and the reactor being stopped. I've tried: for t in transports: t.write('Shutting down.\r\n') t.loseConnection() reactor.stop() This doesn't seem to notify the transports

Re: [Twisted-Python] Waiting for transports to close

2015-12-17 Thread Chris Norman
r shutdown, so they're not rudely disconnected, then once the notifications have all gone through, then the server is free to shutdown. I hope all this makes sense. Cheers, On 12/17/2015 11:49 AM, Glyph Lefkowitz wrote: On Dec 16, 2015, at 9:25 AM, Chris Norman mailto:chris.norm...

Re: [Twisted-Python] Waiting for transports to close

2015-12-19 Thread Chris Norman
Hello, On 17/12/2015 13:03, Glyph Lefkowitz wrote: On Dec 17, 2015, at 4:56 AM, Chris Norman mailto:chris.norm...@googlemail.com>> wrote: Hi, It's a MUD server, so players type in commands and receive textual responses. One of the admin commands is the ability to shutdown the

[Twisted-Python] Twisted serialport

2016-03-09 Thread Chris West
serial.hComPort) AttributeError: 'Serial' object has no attribute 'hComPort' I've removed pyserial 3.0.1 from my system for the moment but I was wondering if there is a way to have both pyserial 2.7 and 3.0.1 on my system when using twisted? Thanks, Chris ___

Re: [Twisted-Python] Twisted serialport

2016-03-10 Thread Chris West
Adi, Thanks for the reply, I've applied the patch and that has sorted out my problem. Many thanks, Chris Date: Wed, 9 Mar 2016 09:59:21 + From: Adi Roiban To: Twisted general discussion Subject: Re: [Twisted-Python] Twisted serialport Message-ID: Content-Type: text/plain; ch

[Twisted-Python] Sending disconnect messages to clients

2016-03-22 Thread Chris Norman
Hi all, I'm sure I asked this question before, but I can't find any answers on google, and I've changed my work flow a bit now, so thought it was worth re-asking. So on my server's protocol, I have a send method. This allows me to pass arguments which get sent off to the client in the right f

Re: [Twisted-Python] Sending disconnect messages to clients

2016-03-22 Thread Chris Norman
Hi Daniel, On 22/03/2016 19:49, L. Daniel Burr wrote: Hi Chris, On March 22, 2016 at 2:42:14 PM, Chris Norman (chris.norm...@googlemail.com <mailto:chris.norm...@googlemail.com>) wrote: Hi all, I'm sure I asked this question before, but I can't find any answers on google,

Re: [Twisted-Python] Sending disconnect messages to clients

2016-03-22 Thread Chris Norman
the messages, everything works fine, panic over! Thank you for your help with this! On 22/03/2016 20:37, L. Daniel Burr wrote: Hi Chris, On March 22, 2016 at 3:09:08 PM, Chris Norman (chris.norm...@googlemail.com <mailto:chris.norm...@googlemail.com>) wrote: Hi Daniel, [SNIP] Ac

Re: [Twisted-Python] 16.0.0 32-bit wheels for Windows

2016-03-30 Thread Chris Norman
Hi, On 30/03/2016 19:20, anatoly techtonik wrote: Hi, I am having the same problem as this guy: https://stackoverflow.com/questions/36279141/pip-doesnt-install-twisted-on-windows Absence of 32-bit wheels breaks Python projects that added Twisted>10 as a dependency, for example. Is that intenti

[Twisted-Python] Problem with Deferreds

2016-04-02 Thread Chris Norman
sted/internet/posixbase.py", line 258, in _disconnectSelectable selectable.connectionLost(failure.Failure(why)) File "/usr/local/lib/python3.5/site-packages/Twisted-16.0.0-py3.5.egg/twisted/python/failure.py", line 232, in __init__ tb = self.value.__traceback__ builtins.AttributeError: 'Deferred' object has no attribute '__traceback__' Anyone have any ideas? Cheers, Chris ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] Problem with Deferreds

2016-04-02 Thread Chris Norman
Hi, Yes, that sorted the problem out no worries. Thank you so much. On 02/04/2016 15:00, Kevin Conway wrote: Hi Chris, tl;dr: Returning a value from 'dataReceived', or any of its extensions such as 'lineReceived' in the 'LineReceiver' Protocol subclass, trig

Re: [Twisted-Python] INCOMPATIBLE CHANGE: twisted.python.dist renamed to twisted.python._setup

2016-08-07 Thread Chris Wolfe
> then we save ourselves that work in future by doing a trivial amount of > work now. > ___ > Twisted-Python mailing list > Twisted-Python@twistedmatrix.com > http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python > -- - Chris

Re: [Twisted-Python] in case there's downtime

2017-03-25 Thread Chris Norman
Hi, What needs taking over on the mailing list side? I'd love to help out if possible. Cheers, On 25/03/2017 04:14, Glyph Lefkowitz wrote: We've been very conservative about upgrading our operating system on twistedmatrix.com , since we don't want to disrupt anyt

Re: [Twisted-Python] Beginner

2017-04-12 Thread Chris Norman
On 12/04/2017 14:21, catch me wrote: Hey! I don't know I should ask this question or not but as a beginner I have to ask. I have just started learn python network programming and fortunately found such an amazing Twisted Framework. Welcome! Glad you found Twisted, it really is awesome! As

Re: [Twisted-Python] Beginner

2017-04-12 Thread Chris Norman
On 12/04/2017 14:41, Jean-Paul Calderone wrote: On Wed, Apr 12, 2017 at 9:37 AM, Chris Norman mailto:chris.norm...@googlemail.com>> wrote: On 12/04/2017 14:21, catch me wrote: Hey! I don't know I should ask this question or not but as a beginner I have to ask.

[Twisted-Python] Forcing Twisted / Klein to use HTTPS

2017-08-30 Thread Chris Norman
lobal way to enforce HTTPS with any part of Klein or Twisted? Cheers, Chris ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

[Twisted-Python] automated tests for a server application

2018-11-05 Thread Chris Withers
d of situation? I'm using pytest and would happily use pytest-twisted too. Not keen to use trial... Any help is good help, pointers to nice existing examples would be fantastic! cheers, Chris ___ Twisted-Python mailing list Twisted-Python@twi

[Twisted-Python] "blocking" on a response to a client

2018-11-05 Thread Chris Withers
to write automated tests for all of the above? cheers, Chris ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] automated tests for a server application

2018-11-06 Thread Chris Withers
to see examples of all of this... Chris ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] "blocking" on a response to a client

2018-11-06 Thread Chris Withers
On 05/11/2018 18:32, meejah wrote: Chris Withers writes: So, separate question: I have a client that's making a connection to a websocket from a server. The client needs to send an "auth" message once the websocket is up, and the client code shouldn't progress until it rec

Re: [Twisted-Python] "blocking" on a response to a client

2018-11-06 Thread Chris Withers
and disappointed at the lack of examples of good tests for these things. Chris ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

[Twisted-Python] probably stupid question about automated testing and reactor.run

2018-11-07 Thread Chris Withers
sting? cheers, Chris ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] pytest-twisted questions

2018-11-13 Thread Chris Withers
ed mailing list, as that's probably the right place for this) On 2018-11-13 12:35, Chris Withers wrote: - What's the intention of the plugin? Should all tests still subclass twisted.trial.unittest.TestCase or should they *never* do so if using this plugin? I don't know what _s

[Twisted-Python] "disconnecting properly" in tests still hangs on macOS

2018-11-14 Thread Chris Withers
27;s the best way to go about debugging a non-firing deferred like this? Anyone know what this might be? cheers, Chris ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] "disconnecting properly" in tests still hangs on macOS

2018-11-16 Thread Chris Withers
On 14/11/2018 13:41, exvito here wrote: Chris, I played with this for a bit and quickly reproduced the "server side disconnect never seems to happen" behaviour you described, on my system running macOS 10.12.6 and Twisted 18.9.0 using the SelectReactor. Suspecting of an eve

[Twisted-Python] carly: a tool for testing twisted protocols with real networking

2018-11-16 Thread Chris Withers
Very interested in peoples thoughts, and especially if you can spot any bugs in these two: https://github.com/cjw296/carly/blob/master/carly/hook.py https://github.com/cjw296/carly/blob/master/carly/context.py Thanks for all the help so far, it's certainly helping me get my head around this

Re: [Twisted-Python] Thread Consumption Problem in Daemon?

2018-11-22 Thread Chris Withers
this are not common.  However, anything is possible: you probably want to gather some information about what all those threads are doing. Some ideas on this front: - pstree/ps and strace will tell you at a low level - http://pyrasite.com/ and then use Python's thread introspection stu

[Twisted-Python] leakage between tests with trial when code under test uses deferToThread

2018-11-23 Thread Chris Withers
t ring any bells? cheers, Chris ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] leakage between tests with trial when code under test uses deferToThread

2018-11-26 Thread Chris Withers
Forgot to include the list in my reply... On 23/11/2018 22:27, Chris Withers wrote: On 23/11/2018 22:22, Glyph wrote: On Nov 23, 2018, at 7:58 AM, Chris Withers wrote: Hi All, Does trial do anything to clean up stuff that's been passed to deferToThread? Nope.  It does its be

[Twisted-Python] code coverage when code executed in a twisted worker thread

2018-11-29 Thread Chris Withers
Hi All, I've noticed that code coverage doesn't appear to be recorded when code is executed in something that has been deferToThread'ed. Is this a known issue? Does anyone have an explanation? cheers, Chris ___ Twisted-Python maili

  1   2   >