Re: [Twisted-Python] automat question

2021-03-16 Thread Chris Withers
On 15/03/2021 09:34, Glyph wrote: Right, but as best I can tell, outputs in automat have to be defined as part of the state machine class, I need targets only available after class instantiation to be notified. Outputs are just methods, so it sort of depends what you mean by "after class

Re: [Twisted-Python] automat question

2021-03-15 Thread Chris Withers
On 09/03/2021 18:53, Glyph wrote: On Mar 9, 2021, at 3:18 AM, Chris Withers <mailto:ch...@withers.org>> wrote: I'm not sure we're quite on the same page: I'm not looking to inspect the state, but more be notified when certain edges are traversed. The way you get

Re: [Twisted-Python] automat question

2021-03-09 Thread Chris Withers
I'm not sure we're quite on the same page: I'm not looking to inspect the state, but more be notified when certain edges are traversed. That said: what's the best practice when you want to visualize the current state of a machine? In this case, the machine is for a unit of work in a scheduling

[Twisted-Python] automat question

2021-03-07 Thread Chris Withers
Hi, Apologies if there's a better list for this, please let me know where... I've grown to like Glyph's automat package a lot, but in a current project, I have observers that need to know when a machine changes state. What's the best way to let those observers know? cheers, Chris _

[Twisted-Python] twisted vs asyncio vs tornado (and other event loops?)

2020-11-23 Thread Chris Withers
Hi All, Just bumped into Glyph's post from last year: https://twistedmatrix.com/pipermail/twisted-python/2019-April/032280.html Doesn't look like there was much of a response, so wondered what had happened with the plans laid out? Also interested in how people see crochet fitting into this wo

Re: [Twisted-Python] unified filesystem API

2020-05-15 Thread Chris Withers
On 16/05/2020 07:42, Glyph wrote: On May 15, 2020, at 11:30 PM, Chris Withers <mailto:ch...@withers.org>> wrote: On 16/05/2020 06:55, Glyph wrote: This does point out one of my secret hopes for SMB: that a file server's maintainers will care enough about file throughput that

Re: [Twisted-Python] unified filesystem API

2020-05-15 Thread Chris Withers
On 16/05/2020 06:55, Glyph wrote: This does point out one of my secret hopes for SMB: that a file server's maintainers will care enough about file throughput that we'll finally get a centralized, official way of doing async file I/O that we can share with SFTP, FTP, and HTTP :). I got excite

Re: [Twisted-Python] Getting nice logging outputs in py.test

2019-07-04 Thread Chris Withers
On 04/07/2019 21:43, Jean-Paul Calderone wrote: How are you running the reactor in your pytest suites? I've not found a sane way to do this and so would recommend sticking with trial, crufty and old though it feels... What feels crufty and old about trial?  And why is "old" a negati

Re: [Twisted-Python] Getting nice logging outputs in py.test

2019-07-04 Thread Chris Withers
On 04/07/2019 14:39, Thomas Westfeld wrote: Dear all, I am having an issue with logging of my Twisted application. I am using the new twisted.logger framework. The output produced by twist or twistd when runnning my plugin is nice. However when running a test suite using py.test I only get th

Re: [Twisted-Python] finding out what's blocking the reactor

2019-05-15 Thread Chris Withers
On 14/05/2019 16:39, Scott, Barry wrote: On Monday, 13 May 2019 15:26:01 BST Chris Withers wrote: Hi All, On some busy instances of the app I'm working with/on, we see websocket connections being dropped due to not ping/ponging in time, I'm fairly sure this is as a result of some us

Re: [Twisted-Python] finding out what's blocking the reactor

2019-05-15 Thread Chris Withers
On 14/05/2019 22:14, Werner Thie wrote: Hi all with periods of seemingly no activity the gc comes to mind. Hmm, gc blocking the process is an interesting thought, what evidence would you see with gdb, etc, to show that this was the problem? Chris ___

[Twisted-Python] finding out what's blocking the reactor

2019-05-13 Thread Chris Withers
Hi All, On some busy instances of the app I'm working with/on, we see websocket connections being dropped due to not ping/ponging in time, I'm fairly sure this is as a result of some user-written callbacks blocking the reactor for long periods of time (seconds...). What's the best way to deb

Re: [Twisted-Python] ws(s):// urls and host/port duplication in twisted/autobahn code

2019-04-09 Thread Chris Withers
On 02/04/2019 09:07, Tobias Oberstein wrote: Right, but correct me if I'm wrong, my understanding is that URL stands for Univeral Resource Locator and URLs can encode all of the things you WebSocket needs a _HTTP_ URL Not sure I follow, I specify ws:// and things work. What am I missing? (I

Re: [Twisted-Python] stop/start client connections with loseConnection in ReconnectingClientFactory

2019-04-02 Thread Chris Withers
On 02/04/2019 08:25, Tobias Oberstein wrote: https://github.com/crossbario/autobahn-python/blob/master/examples/twisted/wamp/basic/client_using_clientservice.py Any way to get rid of the ugly duplication between the url in line 69 and the endpoint on line 72? I seem to remember that ends up

Re: [Twisted-Python] stop/start client connections with loseConnection in ReconnectingClientFactory

2019-04-01 Thread Chris Withers
On 26/03/2019 09:53, Tobias Oberstein wrote: The Autobahn guys still show ReconnectingClientFactory in their docs, Where did you find that? That would be a doc bug, but in the _docs_, there is no reference to ReconnectingClientFactory (cpy372_3) oberstet@intel-nuci7:~$ find ~/scm/crossbario

Re: [Twisted-Python] stop/start client connections with loseConnection in ReconnectingClientFactory

2019-03-26 Thread Chris Withers
On 22/03/2019 23:26, Chris Satterthwaite wrote: Hi Chris, The files I attached (with the full classes) made it through to my email, but I wondered if they would they go through to everyone. Here's a gist with the same scripts: https://gist.github.com/codingadvocate/f732da79ddf6cef4b7a0b6b3679f

Re: [Twisted-Python] stop/start client connections with loseConnection in ReconnectingClientFactory

2019-03-26 Thread Chris Withers
On 24/03/2019 04:30, Glyph wrote: I'd further note that ClientService is /generally/ the new, good way to do things and ReconnectingClientFactory is the old, bad way.  Our hope is to eventually deprecate ReconnectingClientFactory and most of the APIs that it uses, but this is a big project that

Re: [Twisted-Python] stop/start client connections with loseConnection in ReconnectingClientFactory

2019-03-22 Thread Chris Withers
On 22/03/2019 17:08, Chris Satterthwaite wrote:     def clientConnectionLost(self, connector, reason): Without the rest of your class, it's difficult to see some of the potential problems... Could you put it on a gist somewhere?     print('  factor

Re: [Twisted-Python] ANN: Eliot 1.7, the causal logging library, now with inlineCallbacks support

2019-03-22 Thread Chris Withers
Hey Stranger, long time no speak :-) On 21/03/2019 15:27, Itamar Turner-Trauring wrote: Python and Twisted's built-in |logging| output a stream of factoids: they’re interesting, but you can’t really tell what’s going on. * Why is your application slow? * What caused this code path to be ch

Re: [Twisted-Python] giving a reason when adding a timeout

2019-03-13 Thread Chris Withers
Unless I'm missing something, Deferred.addTimeout is really unhelpful in terms on providing context about *what* timed out. TimeoutError(, 'Deferred') just isn't that useful. How come addTimeout doesn't let you specify a textual reason, or otherwise provide some context about the timeout? Am I m

[Twisted-Python] giving a reason when adding a timeout

2019-03-13 Thread Chris Withers
Hi All, Unless I'm missing something, Deferred.addTimeout is really unhelpful in terms on providing context about *what* timed out. TimeoutError(, 'Deferred') just isn't that useful. How come addTimeout doesn't let you specify a textual reason, or otherwise provide some context about the time

Re: [Twisted-Python] a farewell to buildbot

2019-03-03 Thread Chris Withers
What do you make of CircleCI? On 03/03/2019 06:45, Amber Brown wrote: I have been switching matrix.org to Buildkite's open source offering (where you bring your own builders). It might be an option for things like codespeed, which we still

[Twisted-Python] http://twistedmatrix.com/ down?

2019-02-25 Thread Chris Withers
Looks to be... Chris ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] why can't a callback be called with a deferred?

2019-02-20 Thread Chris Withers
On 21/02/2019 07:32, Glyph wrote: Yeah, this is part of carly, that I posted earlier. It stems from the need to get the results of method calls when you have no reference to the object being calls, or sometimes a result that's a deferred you need to wait on, particularly in a test, but have

Re: [Twisted-Python] why can't a callback be called with a deferred?

2019-02-20 Thread Chris Withers
On 21/02/2019 06:55, Glyph wrote: The methods being hooked don't necessarily return deferreds. Glyph, this bit ^^^ I'd like it to be an explicit choice of the caller, ie: result = yield SomeProtocol.onMessage.called() # okay, we got here, we know onMessage was called, # now we might want

Re: [Twisted-Python] why can't a callback be called with a deferred?

2019-02-19 Thread Chris Withers
On 19/02/2019 11:41, Adi Roiban wrote: I think it was introduced to catch some common bad usage patterns ... like yours :) Not a massively helpful comment. If you want to chain the deferreds, use the dedicated helper https://twistedmatrix.com/documents/current/core/howto/defer.html#chaining-

[Twisted-Python] why can't a callback be called with a deferred?

2019-02-19 Thread Chris Withers
Hi All, There's this assert: https://github.com/twisted/twisted/blob/trunk/src/twisted/internet/defer.py#L459 ...and I'd like to understand why it's there. I have what feels like a legitimate case where that assert trips me up, as I'd like to change this line: https://github.com/cjw296/carl

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

2018-12-03 Thread Chris Withers
On 01/12/2018 16:09, Kyle Altendorf wrote: On November 29, 2018 8:10:41 AM EST, Chris Withers wrote: 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

[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 mailing list Twisted-

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] leakage between tests with trial when code under test uses deferToThread

2018-11-23 Thread Chris Withers
Hi All, Does trial do anything to clean up stuff that's been passed to deferToThread? I'm seeing what looks like leakage between tests where stuff that is deferred to a thread from a LoopingCall is resulting in a DelayedCall ending up in the reactor for the next test. Does that ring any bel

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

2018-11-22 Thread Chris Withers
On 22/11/2018 02:30, Glyph wrote: On Nov 19, 2018, at 6:16 AM, Darren Govoni > wrote: I tried to find out if there is a way to limit the thread pool size from command line for twisted web and found nothing. Does it exist? The thread pool is limited to 10. While

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

2018-11-16 Thread Chris Withers
Hi All, Okay, so, I've started working jml's "really disconnecting" blog post into a more generic set of tooling for testing protocols talking to each other over real networking like this: https://github.com/cjw296/carly/blob/master/tests/test_line_receiver_server.py Very interested in peopl

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 eventual race conditi

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

2018-11-14 Thread Chris Withers
Right, so, I've been trying to get the technique in https://jml.io/pages/how-to-disconnect-in-twisted-really.html to work for me. No hating please, most of my testing in the past has involved hitting a relational database, so there's already a TCP connection flying around, one more won't make

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] probably stupid question about automated testing and reactor.run

2018-11-07 Thread Chris Withers
Hi All, Sorry, the silly questions about testing keep coming... Is it legit for a unit testable piece of an application's code to call reactor.run()? How do you feed a reactor.stop() into such a test? Would that be a sane thing to try and do? How do people deal with this kind of testing?

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

2018-11-06 Thread Chris Withers
On 06/11/2018 13:47, Jean-Paul Calderone wrote: Thanks, but the special bit I was asking about is having my application's logical flow pause until the websocket is successfully up and a successful response has been received, all without blocking the reactor. How do I do that?

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] automated tests for a server application

2018-11-06 Thread Chris Withers
On 06/11/2018 05:43, Moshe Zadka wrote: Some of the best advice depends on details of the application. One trick that is sometimes useful is passing in a "fake" reactor object. This, of course, is only useful if the application is structured in a way that functions/classes expect to get a rea

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

2018-11-05 Thread Chris Withers
Hi Again, 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 receives an affirmative response. How do I do this in a non-blocking wa

[Twisted-Python] automated tests for a server application

2018-11-05 Thread Chris Withers
Hi All, (copying in Moshe as he expressed an interest!) I've inherited a twisted app for which I'd like to add some changes but want to improve the automated test coverage before I do. The app itself listens on a web socket (autobahn), an rpc port (RPyC) and also connects to a mysql database

Re: [Twisted-Python] git?

2014-03-20 Thread Chris Withers
On 13/03/2014 19:38, Glyph Lefkowitz wrote: On Mar 12, 2014, at 11:53 PM, Chris Withers mailto:ch...@simplistix.co.uk>> wrote: Not to be too contentious, but when do you reckon you guys will switch the main repo to git? Just to be clear about the nature of my other answers: we do not &

Re: [Twisted-Python] git?

2014-03-13 Thread Chris Withers
On 13/03/2014 11:17, HawkOwl wrote: If you want git access, we have that already (both read and write!),\ So, if I hypothetically put in a pull request via GitHub, that would "just work"? Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www

Re: [Twisted-Python] git?

2014-03-12 Thread Chris Withers
On 12/03/2014 23:52, Glyph Lefkowitz wrote: On Mar 12, 2014, at 3:43 PM, Christopher Armstrong mailto:ra...@twistedmatrix.com>> wrote: On March 12, 2014 at 5:39:36 PM, Chris Withers (ch...@simplistix.co.uk <mailto:ch...@simplistix.co.uk>) wrote: Hi All, Is there a git mirror of

[Twisted-Python] building offline docs

2014-03-12 Thread Chris Withers
Sorry, more questions... Unfortunately, most of the time I have for learning and research is offline. How can I build the docs for browsing (html) from a subversion checkout? Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.u

[Twisted-Python] git?

2014-03-12 Thread Chris Withers
Hi All, Is there a git mirror of the twisted repo anywhere? Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http

Re: [Twisted-Python] which async framework?

2014-03-12 Thread Chris Withers
On 12/03/2014 08:53, Laurens Van Houtven wrote: Twisted has a thing called Cyclone, which I hear (but that's only hearsay) gives you Tornado's API on top of twisted, so you get all of the stuff below for free. From my side, I'm looking to experimentally build a network testing tool that

[Twisted-Python] which async framework?

2014-03-12 Thread Chris Withers
Hi All, Apologies for the cross-post, but this is a "which framework" question so seemed the most constructive way. Not interested in religious debates, just trying to pick the best tool for the job and didn't get much of a useful response from python-list... So, I see python now has a pleth

[Twisted-Python] ping?

2014-03-11 Thread Chris Withers
Sorry, not sure mail is getting through from the list... -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedm

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

2010-10-01 Thread Chris Withers
On 01/10/2010 15:00, exar...@twistedmatrix.com wrote: >> I hope this helps, do let me know if I should add it to an issue >> somewhere... > > Can you at least provide a traffic capture recording an instance of this > happening? I'm afraid not, I didn't have the forsight to do this at the time, and

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

2010-10-01 Thread Chris Withers
Hi Glyph, On 30/09/2010 19:52, Glyph Lefkowitz wrote: >> File "Twisted-8.2.0-py2.5-linux-x86_64.egg/twisted/internet/base.py", >> line 757, in runUntilCurrent >> call.func(*call.args, **call.kw) >> File "test_looping.py", line 24, in __call__ >> del self.connector >> exceptions.AttributeError: Bre

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-09-30 Thread Chris Withers
On 30/09/2010 15:33, exar...@twistedmatrix.com wrote: >> 2010-09-30 15:07:03,161 ERROR : log (22194|7f41910b26e0): >> Unhandled Error >> Traceback (most recent call last): >>File "test_looping.py", line 47, in >> reactor.run() >>File "/twisted/internet/base.py", line 1166, in

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

2010-09-30 Thread Chris Withers
On 30/09/2010 15:53, Phil Mayers wrote: >> So, I appear to be back to the case where I can either gracefully handle >> the exception *or* gracefully handle the errback, but not both? > > It should be possible if using Twisted APIs correctly to reliably > capture errors. > > If it is not, that is a

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

2010-09-30 Thread Chris Withers
On 30/09/2010 15:23, Phil Mayers wrote: >> def loop(): >> d = maybeDeferred(doStuff) >> d.addErrback(partial(log.err,_why='Unhandled scheduled exception')) > >> So, how come my log.err doesn't get used for the AttributeError on >> connector? > > If you mean in your most recent "test_looping.py" exa

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

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:03, Phil Mayers wrote: On 30/09/10 13:44, Phil Mayers wrote: This is because (as you've discovered) there are circumstances when a function is called in Twisted where the exception can't propagate "up" to the caller, because the caller is no longer higher in the call stack. I

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

2010-09-30 Thread Chris Withers
On 30/09/2010 04:45, exar...@twistedmatrix.com wrote: > On 12:52 am, ch...@simplistix.co.uk wrote: >> >> Because I haven't found any permutation that doesn't result in the >> LoopingCall's calls to `loop` from stopping after the exception. >> >> I would be more than ecstatic to be proved wrong ;-)

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

2010-09-29 Thread Chris Withers
On 30/09/2010 00:31, Glyph Lefkowitz wrote: > > There are so many ways. Yes, that's what I thought, which is why I was confused to keep on getting "fix the code" responses when I'd already pointed out it wasn't my code to fix, and I'd like to build a solution that caters even for this eventuall

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

2010-09-29 Thread Chris Withers
On 29/09/2010 22:06, exar...@twistedmatrix.com wrote: >> That's one side of things, sure, but how can I write a scheduler which >> handles the current situation? > > Beats me. So, if some buggy code that should be doing a deferred callback/errback instead raises an exception, you're basically scr

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

2010-09-29 Thread Chris Withers
On 29/09/2010 18:31, exar...@twistedmatrix.com wrote: > Then you're talking about an API in Twisted which returns a Deferred > that sometimes doesn't errback when the implementation encounters an > error. > > Also, `failIfNotConnected` should never raise an exception. > > These sound like bugs. > >

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

2010-09-29 Thread Chris Withers
On 29/09/2010 17:16, Phil Mayers wrote: > No. > > The problem is that your example is malformed. Well, it's not, it's the reality of the situation and one I'd like to protect against; "the scheduler must not die" is the rule I need to make work... > You do this: > >1. Create a deferred on t

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

2010-09-29 Thread Chris Withers
On 28/09/2010 15:21, exar...@twistedmatrix.com wrote: >> But, more crucially, the looping call then appears to stop. > > The function you're looping over returns a Deferred that never fires. > The LoopingCall isn't stopped, it's waiting for the Deferred. So, inlineCallbacks/generator things will o

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

2010-09-28 Thread Chris Withers
Hi All, The attached .py file demonstrates a problem I'm having with a little scheduler I need to maintain. The loop() function is supposed to be a "catch all and report" error handler. However, when the async code initiated by doStuff throws the AttributeError, what actually gets logged is:

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

2010-09-16 Thread Chris Withers
On 16/09/2010 10:28, Jonathan Lange wrote: > Two questions: >* Where are these "correct names" documented? *snivvles* probably in the setuptools source. I would have assumed http://www.python.org/dev/peps/pep-0376, but I can't see anything on it in there... >* Would you be at all interes

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

[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@twistedmatrix.com ht

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, Batch Processing & Python Cons

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

[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] SQLAlchemy and Twisted

2010-05-05 Thread Chris Withers
Doug Farrell wrote: > > I’ve been doing some searching about how to get SQLAlchemy and Twisted > working together in a Twisted application. Short version: to be safe, anything that touches any SQLAlchemy-mapped object needs to be run in its own thread. Any query or access of an attribute of a

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

2010-04-29 Thread Chris Withers
Hi All, I was asking about this on irc but had to leave in a hurry so thought I'd mail here... So, I have a pool of wsgi threads being run by Twisted's wsgi server that want to send stomp messages. The stomp client is Twisted-based (http://code.google.com/p/broadwick/source/browse/trunk/broadw

[Twisted-Python] twisted vs wsgi

2010-03-30 Thread Chris Withers
Hi All, I've managed to cobble this together as a way of starting a BFG app under Twisted's wsgi server: """ from twisted.web.wsgi import WSGIResource from twisted.web.server import Site from twisted.internet import reactor from webob import Response from repoze.bfg.configuration import Configu

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

2010-03-26 Thread Chris Withers
King Simon-NFHD78 wrote: > The solution to this is either to eager-load all the attributes you > think you are going to need before handing the instance off to another > thread (difficult), or (probably better) to detach (expunge) the > instance from thread A's session. Are there any recommended c

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

2010-03-26 Thread Chris Withers
Matthew Williams wrote: > > "It's much trickier if you want to use the ORM, unless you are very > careful to fully eager load every thing in any possible database > operation if you have need of the information subsequently in your > twisted code. Otherwise you may block unexpectedly simply when >

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

2010-03-26 Thread Chris Withers
Matthew Williams wrote: > From previous posts to this and other lists, it seems that ORMs and > threads don't get along too well... What makes you think that? > and, as far as I can tell, there's > no way to get away from threads if you don't want longish queries to > block your entire app

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] Twisted 10.0.0 released

2010-03-11 Thread Chris Withers
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 with 10.0. >> Is zope.interface not used/required anymore? >> If so, why is it shipping in the non-windows version? > > It doesn't ship in

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 myself ;-) Chris -- Simplistix - Conte

Re: [Twisted-Python] Twisted 9.0.0?

2010-03-05 Thread Chris Withers
Tim Allen wrote: > On Thu, Mar 04, 2010 at 01:55:50PM -0500, Glyph Lefkowitz wrote: >> Now that our release process is better documented (THANK YOU JML), you >> might be able to have a look at >> and figure out >> where 'setup.py upload' could fit

Re: [Twisted-Python] Twisted 9.0.0?

2010-03-04 Thread Chris Withers
Jonathan Lange wrote: > I don't know how the PyPI announcement was done (although I'd love > to!), but I think you can announce new versions without > decommissioning old ones. PyPI already does the right thing w.r.t. "hide previous versions" (either way works, it doesn't affect tools like easy_i

Re: [Twisted-Python] Twisted 9.0.0?

2010-03-04 Thread Chris Withers
exar...@twistedmatrix.com wrote: > On 04:53 pm, kevin.h...@gmail.com wrote: >> Is there any particular reason Twisted doesn't upload packages to PyPI >> itself? > > Messing about with web forms is no fun and "setup.py register" has > issues. What issues? I've never had problems with either the r

Re: [Twisted-Python] Twisted 9.0.0?

2010-03-04 Thread Chris Withers
exar...@twistedmatrix.com wrote: > Perhaps easy_install isn't the best way to manage deployments to your > production server? No, but buildout is... However, this process of discovering packages (hit pypi, scrape web pags if the distro isn't on pypi) is the only solution the python community (

Re: [Twisted-Python] Twisted 10.0.0 released

2010-03-04 Thread Chris Withers
Jonathan Lange wrote: > * A new Windows installer that ships without zope.interface Interesting, why? Is zope.interface not used/required anymore? If so, why is it shipping in the non-windows version? FWIW, zope.interface: - has binaries available for windows - has pure python fall-backs for whe