Re: [Twisted-Python] Strange recursion error with twisted.web

2021-06-16 Thread Peter Westlake
And just to be clear, yes, it fixes my bug too. Peter. On Wed, 16 Jun 2021, at 12:30, Peter Westlake wrote: > Works a treat! Thank you! > > Peter. > > On Tue, 15 Jun 2021, at 18:51, Tom Most wrote: > > On Tue, Jun 15, 2021, at 2:46 AM, Peter Westlake wrote: > > >

Re: [Twisted-Python] Strange recursion error with twisted.web

2021-06-16 Thread Peter Westlake
Works a treat! Thank you! Peter. On Tue, 15 Jun 2021, at 18:51, Tom Most wrote: > On Tue, Jun 15, 2021, at 2:46 AM, Peter Westlake wrote: > > On Tue, 15 Jun 2021, at 01:58, Wim Lewis wrote: > > > On Mon, Jun 14, 2021 at 05:25:42PM +0100, Peter Westlake wrote: > > > >

Re: [Twisted-Python] Strange recursion error with twisted.web

2021-06-15 Thread Peter Westlake
On Tue, 15 Jun 2021, at 01:58, Wim Lewis wrote: > On Mon, Jun 14, 2021 at 05:25:42PM +0100, Peter Westlake wrote: > > Do we have any idea when the fix for "RecursionError with synchronous > > deferreds (#1549)" will appear in a release? > > It's been merg

Re: [Twisted-Python] Strange recursion error with twisted.web

2021-06-14 Thread Peter Westlake
Hello Twisted team, Do we have any idea when the fix for "RecursionError with synchronous deferreds (#1549)" will appear in a release? Peter.___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com https://twistedmatrix.com/cgi-bin/mailman/list

Re: [Twisted-Python] Strange recursion error with twisted.web

2021-03-17 Thread Peter Westlake
On Wed, 17 Mar 2021, at 02:50, Glyph wrote: > >> Excellent, thank you! >> >> I think I understand how it works, but one thing puzzles me: how does the >> queue in the jump() function ever get longer than one element? Is it because >> it might contain a recursive call, which is activated by the

Re: [Twisted-Python] Strange recursion error with twisted.web

2021-03-16 Thread Peter Westlake
On Sun, 14 Mar 2021, at 02:08, Glyph wrote: > > I did indeed have a half-finished experiment to fix this. The fix is now > finished and in review here: > https://twistedmatrix.com/trac/ticket/10125#comment:1 . > > If you could review it thoroughly enough, I could land it. Excellent, thank you

Re: [Twisted-Python] Strange recursion error with twisted.web

2021-03-11 Thread Peter Westlake
On Wed, 10 Mar 2021, at 23:11, Glyph wrote: > > Would you mind filing a ticket in trac, or digging one up if you can > find it? This problem rings a bell, and I think I might actually have > some code for this lying around somewhere already. Here is it: https://twistedmatrix.com/trac/ticket/1012

Re: [Twisted-Python] Strange recursion error with twisted.web

2021-03-10 Thread Peter Westlake
On Tue, 9 Mar 2021, at 19:28, Glyph wrote: > > > > On Mar 9, 2021, at 4:54 AM, Peter Westlake wrote: > > > > I'm getting a "maximum recursion depth exceeded" error that appears to be > > coming from flatten(). The odd thing is that it only

Re: [Twisted-Python] Strange recursion error with twisted.web

2021-03-09 Thread Peter Westlake
On Tue, 9 Mar 2021, at 19:28, Glyph wrote: > > > > On Mar 9, 2021, at 4:54 AM, Peter Westlake wrote: > > > > I'm getting a "maximum recursion depth exceeded" error that appears to be > > coming from flatten(). The odd thing is that it only hap

[Twisted-Python] Strange recursion error with twisted.web

2021-03-09 Thread Peter Westlake
I'm getting a "maximum recursion depth exceeded" error that appears to be coming from flatten(). The odd thing is that it only happens sometimes. The HTML that's being flattened does have a few Deferreds in it. Those come from function calls, which cache the results, which might explain why I on

Re: [Twisted-Python] Ldaptor attributes in Python 3

2021-01-23 Thread Peter Westlake
On Sat, 23 Jan 2021, at 22:09, Adi Roiban wrote: > Hi, > > On Fri, 22 Jan 2021 at 11:15, Peter Westlake wrote: >> I'm using Ldaptor for LDAP access because it fits in with Twisted, and the >> results are a bit mystifying. >> ... > > Can you send a full exa

[Twisted-Python] Ldaptor attributes in Python 3

2021-01-22 Thread Peter Westlake
I'm using Ldaptor for LDAP access because it fits in with Twisted, and the results are a bit mystifying. The results that come back from a search are a list of LDAPEntryWithClient. Indexing this, e.g. entry['cn'], gives an object of type JournaledLDAPAttributeSet, which is a subclass of set. It

Re: [Twisted-Python] ClientFactory design

2020-11-30 Thread Peter Westlake
On Mon, 30 Nov 2020, at 13:38, Jean-Paul Calderone wrote: > On Mon, Nov 30, 2020 at 6:48 AM Peter Westlake > wrote: >> __ >> I'm studying an SSH client implementation using Conch, and was surprised to >> see that the ClientFactory subclass had a connect() method whi

[Twisted-Python] ClientFactory design

2020-11-30 Thread Peter Westlake
I'm studying an SSH client implementation using Conch, and was surprised to see that the ClientFactory subclass had a connect() method which calls connectTCP. This isn't really a problem - the code works - but it seems like an odd place to do the connection. Am I right to be surprised? Peter.__

Re: [Twisted-Python] Negative error code breaks twisted.conch

2019-01-15 Thread Peter Westlake
Thank you! Filed: https://twistedmatrix.com/trac/ticket/9573 I'll go off and read about submitting a fix now. Peter. On Tue, 15 Jan 2019, at 07:41, Glyph wrote: > > >> On Jan 14, 2019, at 7:23 AM, Peter Westlake >> wrote:>> >> An SSCCE: >> >

[Twisted-Python] Negative error code breaks twisted.conch

2019-01-14 Thread Peter Westlake
An SSCCE: from twisted.internet import error from twisted.python import failure from twisted.conch.ssh.session import SSHSessionProcessProtocol from mock import MagicMock err = error.ProcessTerminated(-1) fail = failure.Failure(err) session = MagicMock() proto = SSHSessionProcessProtocol(session)

Re: [Twisted-Python] Asynchronous code in a context manager

2018-03-26 Thread Peter Westlake
Sadly, no. Should have said, sorry: it's 2.7.3. Peter. On Fri, 23 Mar 2018, at 17:54, meejah wrote: > > Are you using Python3? Then there's "asynchronous context managers". I > finally found a use-case for one in txtorcon, so here's an example: > > > http://txtorcon.readthedocs.io/en/latest

[Twisted-Python] Asynchronous code in a context manager

2018-03-23 Thread Peter Westlake
I have a context manager whose __exit__ method needs to run some asynchronous Twisted code. Using Crochet's @wait_for very nearly works: no_setup() class Example(object): def __exit__(t, v, tb): return self.cleanup() @wait_for @inlineCallbacks def cleanup(self):

Re: [Twisted-Python] Screen clearing in the Manhole

2015-08-26 Thread Peter Westlake
I found it! Manhole.terminalSize, inherited from RecvLine, does self.terminal.eraseDisplay(). t.c.manhole_ssh.TerminalSessionTransport.__init__ calls terminalSize *after* makeConnection. Since setting the terminal size is a sensible thing to do, and it can't be done before the connection is made

Re: [Twisted-Python] Screen clearing in the Manhole

2015-08-26 Thread Peter Westlake
On Tue, 25 Aug 2015, at 23:58, John Santos wrote: ... > t.c.r.R.connectionMade() calls self.initializeScreen(), which in turn > calls self.terminal.reset() > > I'm pretty sure s.t.reset() is actually twisted.conch.insults.reset(), > which has a bug (or an undesirable feature), it sends a "hard re

Re: [Twisted-Python] Screen clearing in the Manhole

2015-08-26 Thread Peter Westlake
On Tue, 25 Aug 2015, at 22:26, Brian Costlow wrote: > As to where it happens, look at > twisted.conch.recvline.RecvLine.connectionMade() and > twisted.conch.insults.insults.TerminalProtocol.makeConnection() My subclass of Manhole first calls Manhole.connectionMade, which calls HistoricRecvLine.co

[Twisted-Python] Screen clearing in the Manhole

2015-08-25 Thread Peter Westlake
I'm making a manhole service in the usual way: class PF(ServerProtocol):    def protocolFactory(*a, **kw): return manhole.Manhole(namespace) realm = manhole_ssh.TerminalRealm()    realm.chainedProtocolFactory = PF mh_portal = portal.Portal(realm)    mh_portal.registerChecker(checker) manhole

Re: [Twisted-Python] How do I debug this network problem?

2014-11-22 Thread Peter Westlake
> > Closing stdin is probably the best option here, but the original > problem was caused by a mixing of levels. > > On one level, you've got open(), which wants to sort of pretend that > an open file is an object, and that the operating system resource > involved is an implementation detail that

Re: [Twisted-Python] How do I debug this network problem?

2014-11-21 Thread Peter Westlake
On Fri, 21 Nov 2014, at 19:26, Glyph wrote: >> On Nov 21, 2014, at 15:13, Peter Westlake >> wrote: >> >> I*am*missing something obvious. The file opened by open() immediately >> goes out of scope. AAAUGH! > > So... back to square one? Or is this the solution

Re: [Twisted-Python] How do I debug this network problem?

2014-11-21 Thread Peter Westlake
On Fri, 21 Nov 2014, at 14:08, Peter Westlake wrote: > Found it! > > from twisted.internet.protocol import ClientFactory, Protocol, > ProcessProtocol from twisted.internet import reactor > > devnull = open('/dev/null').fileno() print devnull > > factory

Re: [Twisted-Python] How do I debug this network problem?

2014-11-21 Thread Peter Westlake
Found it! from twisted.internet.protocol import ClientFactory, Protocol, ProcessProtocol from twisted.internet import reactor devnull = open('/dev/null').fileno() print devnull factory = ClientFactory() factory.protocol = Protocol reactor.connectTCP('localhost', 'http', factory) reactor.callWhe

Re: [Twisted-Python] How do I debug this network problem?

2014-11-18 Thread Peter Westlake
On Tue, 18 Nov 2014, at 01:09, exar...@twistedmatrix.com wrote: > On 12:42 am, peter.westl...@pobox.com wrote: > >Okay, how about http://bugs.python.org/issue9090, "Issue #9090 : Error > >code 10035 calling socket.recv() on a socket with a timeout > >(WSAEWOULDBLOCK - A non-blocking socket operati

Re: [Twisted-Python] How do I debug this network problem?

2014-11-17 Thread Peter Westlake
On Mon, 17 Nov 2014, at 20:25, Glyph wrote: > >> On Nov 17, 2014, at 19:32, Peter Westlake >> wrote: >> >> It's a known bug in Python!http://bugs.python.org/issue1038591, >> "Python 2.3+ socket._fileobject handles EAGAIN with data loss". > >

Re: [Twisted-Python] How do I debug this network problem?

2014-11-17 Thread Peter Westlake
On Mon, 17 Nov 2014, at 15:38, exar...@twistedmatrix.com wrote: ... > This is entirely normal. It's how timed calls are implemented in almost > all of the reactors and it's how they've been implemented for at least > 13 years. :) > > It's possible there's a bug here but this sequence of poll()

Re: [Twisted-Python] How do I debug this network problem?

2014-11-17 Thread Peter Westlake
Looking at the code, _SignalReactorMixin.mainLoop() takes the output of ReactorBase.timeout() and passes it to doIteration(). The implementation of doIteration() in PollReactor passes the value straight through to poll(). If there is any kind of timed call pending (which there is), the timeout val

Re: [Twisted-Python] How do I debug this network problem?

2014-11-17 Thread Peter Westlake
My previous strace output didn't include the poll() calls. This one does, with the list of file descriptors shortened for readability. According to the man page, the last parameter to poll() is a timeout, in milliseconds. Looking at these calls, there are some very odd values indeed: 154538, 15433

Re: [Twisted-Python] How do I debug this network problem?

2014-11-14 Thread Peter Westlake
On Fri, 14 Nov 2014, at 20:36, exar...@twistedmatrix.com wrote: > On 05:38 pm, peter.westl...@pobox.com wrote: > > > >Here is some highly suspicious-looking output from strace: > > > >sendto(5, "\0\4_ask\0\004867c\0\10_command\0\tLogOutpu"..., 343, 0, > >NULL, 0) = 343 recvfrom(5, > > >>"\0\7_answ

Re: [Twisted-Python] How do I debug this network problem?

2014-11-14 Thread Peter Westlake
On Thu, 13 Nov 2014, at 17:01, Peter Westlake wrote: > >>> I've put in the dataReceived, and the answer box does*not*make it >>> into the Protocol. There are two entries in >>> protocol._outstandingRequests: {'2189': , '2188': >>>

Re: [Twisted-Python] How do I debug this network problem?

2014-11-13 Thread Peter Westlake
>> I've put in the dataReceived, and the answer box does*not*make it >> into the Protocol. There are two entries in >> protocol._outstandingRequests: {'2189': , '2188': >> } and the log output shows 2186, 2187, 218a, 218b, ... > > So, wait a second. > > You said you're looking at tcpdump, and it'

Re: [Twisted-Python] How do I debug this network problem?

2014-11-13 Thread Peter Westlake
On Thu, 13 Nov 2014, at 13:17, Glyph wrote: > >> On Nov 13, 2014, at 1:15 PM, Peter Westlake >> wrote: >> >> I've had a look at the code, and got rather lost amongst the >> interfaces and inheritance and protocols and transports. If someone >> can h

[Twisted-Python] How do I debug this network problem?

2014-11-13 Thread Peter Westlake
TL;DR - how do I debug the sequence of events between an AMP answer box arriving at a NIC, and AMP firing the callRemote Deferred? I have an application with two processes, on separate machines, communicating using AMP. One process does a callRemote, which returns a Deferred, which is never fired.

Re: [Twisted-Python] [RELEASE] Nevow 0.11.1

2014-06-25 Thread Peter Westlake
On Tue, Jun 24, 2014, at 13:10, exar...@twistedmatrix.com wrote: > On 11:41 am, peter.westl...@pobox.com wrote: > >Good to see Nevow is still being maintained! > > > >What are the chances of 0.11.2 including the fix for > >https://bugs.launchpad.net/nevow/+bug/892794, filed in November 2011 > >comp

Re: [Twisted-Python] [RELEASE] Nevow 0.11.1

2014-06-24 Thread Peter Westlake
Good to see Nevow is still being maintained! What are the chances of 0.11.2 including the fix for https://bugs.launchpad.net/nevow/+bug/892794, filed in November 2011 complete with a test case and a patch? Peter. On Sat, Jun 21, 2014, at 15:46, exar...@twistedmatrix.com wrote: > Hello, > > I'm

Re: [Twisted-Python] How to get callback return value

2013-12-03 Thread Peter Westlake
On Tue, Dec 3, 2013, at 12:00, 杨有秀 wrote: > def loadConfig(self, id, config = None): > """ Load the config > """ > > platform = node.get_platform() > self.textLabel_Platform.setText(platform) > > > /home/20131203-Client/src/node.py > > def get_platform(self): >

Re: [Twisted-Python] Could Service.startService return a Deferred?

2013-11-28 Thread Peter Westlake
On Wed, Nov 27, 2013, at 19:20, exar...@twistedmatrix.com wrote: ... > What about something like this instead? > > @implementer(IService) > class Runner(object): > ... > @classmethod > def loadFromWhatever(cls, name): > return deferLater(reactor, Runner, name) > >

Re: [Twisted-Python] Could Service.startService return a Deferred?

2013-11-28 Thread Peter Westlake
On Wed, Nov 27, 2013, at 19:20, exar...@twistedmatrix.com wrote: > On 06:00 pm, peter.westl...@pobox.com wrote: ... > >class Runner(service.Service): > >def __init__(self, baton): > >self.baton = baton > > > >def startService(self): > >print 'startService', self.name, reac

Re: [Twisted-Python] Could Service.startService return a Deferred?

2013-11-27 Thread Peter Westlake
On Wed, Nov 27, 2013, at 17:13, exar...@twistedmatrix.com wrote: > On 02:58 pm, peter.westl...@pobox.com wrote: > ... So would it be possible for > >t.a.s.Service.startService > >to be allowed to return a Deferred? Then the next service would only be > >started up when the Deferred fired. > > Pro

[Twisted-Python] Could Service.startService return a Deferred?

2013-11-27 Thread Peter Westlake
I have a Twisted application with several Services. One of them has a startService method that does some setup asynchronously. This can go wrong if the next service to start makes a call to the first one, and it isn't ready yet. One way round it would be to make all methods on the slow service retu

Re: [Twisted-Python] logging

2013-06-18 Thread Peter Westlake
On Tue, Jun 18, 2013, at 4:50, Glyph wrote: > On Jun 17, 2013, at 5:48 PM, James Y Knight wrote: ... > > And having a logging system which doesn't even support a basic > > log level is just silly. Hopefully the new system can at least > > have that. > > The new system being proposed does have log

Re: [Twisted-Python] So... Python 3.4 is getting its own async I/O system

2013-03-25 Thread Peter Westlake
On Wed, Mar 20, 2013, at 9:36, Glyph wrote: ... > Since async file I/O is not a thing you can implement[1], ... > > [1]: Understood that it isn't possible to use native asynchronous I/O. But an implementation that used threads behind the

Re: [Twisted-Python] Must avatarId always be a string?

2013-01-14 Thread Peter Westlake
On Mon, Jan 14, 2013, at 22:58, Glyph wrote: > On Jan 14, 2013, at 3:18 AM, Peter Westlake > wrote: > > >> It seems like the "shared caching reference" would solve this problem > >> as well? > > > > Yes, I think that's the right answe

Re: [Twisted-Python] Must avatarId always be a string?

2013-01-14 Thread Peter Westlake
Interesting... those portals could be on different Realms too. It would also allow more than one checker to be tried per interface, which would allow (say) a credentials.IUsernamePassword to be tried against different checkers. Peter. On Sun, Jan 13, 2013, at 14:08, Itamar Turner-Trauring wrote:

Re: [Twisted-Python] Must avatarId always be a string?

2013-01-14 Thread Peter Westlake
On Sun, Jan 13, 2013, at 6:39, Glyph wrote: > > On Jan 10, 2013, at 6:41 AM, Peter Westlake > wrote: > > > On Wed, Jan 9, 2013, at 18:02, Glyph wrote > >> On Jan 9, 2013, at 9:26 AM, Peter Westlake > >> wrote: > >>> On Jan 9, Adi wrote: &

Re: [Twisted-Python] Must avatarId always be a string?

2013-01-10 Thread Peter Westlake
On Wed, Jan 9, 2013, at 18:02, Glyph wrote > On Jan 9, 2013, at 9:26 AM, Peter Westlake > wrote: > > On Jan 9, Adi wrote: > >> I am not an expert in Twisted, but from my understanding, the "string" > >> requirement is there to provide a plugable inte

Re: [Twisted-Python] Must avatarId always be a string?

2013-01-09 Thread Peter Westlake
On Wed, Jan 9, 2013, at 14:40, Adi Roiban wrote: > On 9 January 2013 15:04, Jan Urbański wrote: ... > > I have faced a similar problem myself and after reading the code I've > > resolved to wilfully disregarding the documentation and passing tuples > > around, accepting that if it breaks, I get to

[Twisted-Python] Must avatarId always be a string?

2013-01-09 Thread Peter Westlake
http://twistedmatrix.com/documents/current/core/howto/cred.html says that the avatarId parameter to IRealm.requestAvatar must be a string, not even a Unicode string. I'm using LDAP for authentication, and the checker retrieves the full LDAP entry for the user as a side-effect of authentication. Unt

Re: [Twisted-Python] Profiling problem: "bad marshal data"

2012-09-05 Thread Peter Westlake
On Wed, Sep 5, 2012, at 02:26, Itamar Turner-Trauring wrote: > On Mon, Sep 3, 2012 at 12:10 PM, Peter Westlake > wrote: > > > An output file generated with cProfile.run() can be read. > > Running twistd without --savestats generates a valid-looking > > textual r

[Twisted-Python] Profiling problem: "bad marshal data"

2012-09-03 Thread Peter Westlake
When I pass twistd the --savestats option to save profile information as a pstats.Stats object instead of a textual report, the output file cannot be read: import pstats p = pstats.Stats(filename) gives: ValueError: bad marshal data (unknown type code) An output file generated with cPr

Re: [Twisted-Python] Speed of rendering?

2012-06-22 Thread Peter Westlake
On Thu, Jun 21, 2012, at 10:16, Glyph wrote: > > Le Jun 21, 2012 à 6:52 AM, Peter Westlake a > écrit : > > > How fast is rendering in nevow? I have a page which is mostly a large > > table with a couple of hundred rows, each containing a form. The > > generated

[Twisted-Python] Speed of rendering?

2012-06-21 Thread Peter Westlake
How fast is rendering in nevow? I have a page which is mostly a large table with a couple of hundred rows, each containing a form. The generated HTML is about 500 KB. Leaving aside the question of whether this is a good design or not, how long would you expect it to take? I'm interested specificall

Re: [Twisted-Python] twisted.enterprise.adbapi broken by loss of python-pgsql

2011-10-17 Thread Peter Westlake
On Monday, October 17, 2011 5:47 PM, exar...@twistedmatrix.com wrote: > On 05:17 pm, peter.westl...@pobox.com wrote: > >The python-pgsql package, used by twisted.enterprise.adbapi to talk to > >PostgreSQL, has been removed from Debian: > > > > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug%3D57

[Twisted-Python] twisted.enterprise.adbapi broken by loss of python-pgsql

2011-10-17 Thread Peter Westlake
The python-pgsql package, used by twisted.enterprise.adbapi to talk to PostgreSQL, has been removed from Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug%3D577664 So far it has been removed from Unstable and Testing. Are there any plans to fix t.e.adbapi? Or perhaps replace it with tx

Re: [Twisted-Python] Missing connections with Perspective Broker ( newbie alert )

2010-11-30 Thread Peter Westlake
On Tue, 30 Nov 2010 07:39 -0500, "Grant Mckenzie" wrote: > Hi, > > I am using a Perspective Broker to service requests from a client on the > same machine ( Windows XP ). This works fine most of the time however > occasionally I see strange behaviour. The client uses connectTCP and > provides a t

Re: [Twisted-Python] How to bisect Twisted?

2010-08-12 Thread Peter Westlake
On Thu, 12 Aug 2010 12:49 +1000, "Tim Allen" wrote: > On Wed, Aug 11, 2010 at 05:30:36PM +0100, Peter Westlake wrote: > > In the Git version of the Twisted source code, there are tags for > > releases, e.g. the revision with SHA id > > 85a6a0f9e3c4ea22d1d72d4ca8eb0c

Re: [Twisted-Python] How to bisect Twisted?

2010-08-12 Thread Peter Westlake
On Wed, 11 Aug 2010 17:50 +0100, "Jonathan Lange" wrote: > On Wed, Aug 11, 2010 at 5:30 PM, Peter Westlake > wrote: > > In the Git version of the Twisted source code, there are tags for > > releases, e.g. the revision with SHA id > > 85a6a0f9e3c4ea22d1d72d4ca8e

[Twisted-Python] How to bisect Twisted?

2010-08-11 Thread Peter Westlake
In the Git version of the Twisted source code, there are tags for releases, e.g. the revision with SHA id 85a6a0f9e3c4ea22d1d72d4ca8eb0c08ee99ca85 corresponds to 8.0.0. This is good, but there aren't any intermediate changes on that branch (tag?), just the releases! So there isn't much for "git bis

Re: [Twisted-Python] LDAP binds appears to succeed with no password

2010-07-30 Thread Peter Westlake
On Fri, 30 Jul 2010 13:55 +0200, "Alan Franzoni" wrote: > On 7/30/10 12:54 PM, Peter Westlake wrote: > > I'm using LDAP to authenticate users, and when I give it an empty > > password, it appears to succeed! Can anyone see what I'm doing wrong? > > I&#

[Twisted-Python] LDAP binds appears to succeed with no password

2010-07-30 Thread Peter Westlake
I'm using LDAP to authenticate users, and when I give it an empty password, it appears to succeed! Can anyone see what I'm doing wrong? I've added comments by the log messages that appear in the output. Peter. from twisted.internet import reactor, defer from ldaptor.protocols.ldap import ldapclie

Re: [Twisted-Python] Problem with twistedmatrix.com

2010-07-05 Thread Peter Westlake
It's all working again now. On Mon, 05 Jul 2010 13:22 +0100, "Peter Westlake" wrote: > Some of twistedmatrix.com is working, but the top level > (http://twistedmatrix.com/) says "Could not connect", and the Subversion > repository does the same: > > svn

[Twisted-Python] Problem with twistedmatrix.com

2010-07-05 Thread Peter Westlake
Some of twistedmatrix.com is working, but the top level (http://twistedmatrix.com/) says "Could not connect", and the Subversion repository does the same: svn checkout svn://svn.twistedmatrix.com/svn/Twisted svn: Can't connect to host 'svn.twistedmatrix.com': Connection refused Peter. __

Re: [Twisted-Python] ANNOUNCING Tahoe, the Least-Authority File System, v1.7.0

2010-06-29 Thread Peter Westlake
On Tue, 29 Jun 2010 09:14 -0600, "Zooko O'Whielacronx" wrote: > I'm not sure if we can or should do anything about the Debian > python-twisted-core package not providing the Python "Twisted" > distribution. > > I don't know much about the operation of the Tahoe-LAFS apt > repository. Maybe it was

Re: [Twisted-Python] ANNOUNCING Tahoe, the Least-Authority File System, v1.7.0

2010-06-29 Thread Peter Westlake
On Mon, 28 Jun 2010 21:41 -0600, "Zooko O'Whielacronx" wrote: > On Sun, Jun 27, 2010 at 4:04 AM, Peter Westlake > wrote: > > > >> python -c "import pkg_resources;print pkg_resources.require('Twisted')" > > > > It says:

Re: [Twisted-Python] ANNOUNCING Tahoe, the Least-Authority File System, v1.7.0

2010-06-27 Thread Peter Westlake
[resending after the glitch with the domain] On Thu, 24 Jun 2010 18:34 -0700, "Zooko O'Whielacronx" wrote: > On Tue, Jun 22, 2010 at 10:35 AM, Peter Westlake > wrote: > > > > I downloaded it and typed "python setup.py build", and it went off and

Re: [Twisted-Python] ANNOUNCING Tahoe, the Least-Authority File System, v1.7.0

2010-06-22 Thread Peter Westlake
On Mon, 21 Jun 2010 10:45 -0700, "Zooko O'Whielacronx" wrote: > Dear people of twisted-python: > > We just released Tahoe-LAFS v1.7. The major new feature is an SFTP > server. This means that (with enough installing software and tinkering > with your operating system configuration) you can have a

Re: [Twisted-Python] How to use AmpList?

2010-03-29 Thread Peter Westlake
On Mon, 29 Mar 2010 14:54 +0300, "Vlad Shevchenko" wrote: > No one use AmpList? > > On Sat, Mar 27, 2010 at 11:45 PM, Vlad Shevchenko > > wrote: > > > Hi, > > can't find any reference of how to use AmpList. What should be passed to > > callRemote? In command: arguments = Amp.List(...) or argu

Re: [Twisted-Python] PB/Remote Object/Deferred question

2009-09-09 Thread Peter Westlake
On Wed, 09 Sep 2009 12:39 -0400, "John Crawford" wrote: > I'm trying to understand the Perspective Broker, reading over the > on-site documentation, specifically the article: > > http://twistedmatrix.com/projects/core/documentation/howto/pb-usage.html > > and there is a section about the callRe

Re: [Twisted-Python] Is there an equivalent of tap2deb?

2009-09-04 Thread Peter Westlake
On Sat, 05 Sep 2009 00:29 +1000, "Tim Allen" wrote: > On Fri, Sep 04, 2009 at 02:53:37PM +0100, Peter Westlake wrote: > > Now that .tap files are obsolete, is there a supported way of making > > Debian packages like tap2dep? > > .tap files (Pickle-based config file

[Twisted-Python] Is there an equivalent of tap2deb?

2009-09-04 Thread Peter Westlake
Now that .tap files are obsolete, is there a supported way of making Debian packages like tap2dep? Thanks, Peter. ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] How to debug an AMP connection?

2009-08-10 Thread Peter Westlake
On Sat, 08 Aug 2009 16:32 +, exar...@twistedmatrix.com wrote: > On 5 Aug, 03:59 pm, peter.westl...@pobox.com wrote: > >Background: I have a client program that calls callRemote, but the > >Deferred that callRemote returns is not fired. This is an intermittent > >error that only happens after s

Re: [Twisted-Python] How to debug an AMP connection?

2009-08-05 Thread Peter Westlake
Background: I have a client program that calls callRemote, but the Deferred that callRemote returns is not fired. This is an intermittent error that only happens after some hours of traffic. By putting some logging into AMP, it's apparent that the server gets as far as sending the reply using BoxD

Re: [Twisted-Python] How to debug an AMP connection?

2009-07-24 Thread Peter Westlake
On Fri, 24 Jul 2009 12:01 -0400, "Jean-Paul Calderone" wrote: > On Fri, 24 Jul 2009 16:12:28 +0100, Peter Westlake > wrote: > >> In general, though, if you're trying to debug Deferreds you might > >> try setting debugging with defer.setDebugging(1

Re: [Twisted-Python] How to debug an AMP connection?

2009-07-24 Thread Peter Westlake
On Fri, 24 Jul 2009 10:44 -0400, "Drew Smathers" wrote: > On Fri, Jul 24, 2009 at 9:35 AM, Peter Westlake > wrote: > > Hello, > > > > I'm having trouble with an AMP connection that doesn't fire > > the Deferred returned by callRemote. The AMP

[Twisted-Python] How to debug an AMP connection?

2009-07-24 Thread Peter Westlake
Hello, I'm having trouble with an AMP connection that doesn't fire the Deferred returned by callRemote. The AMP command copies files from the client (called a "worker" in the code below) to a server ("controller"). It sends a chunk of text at a time - 16K originally, but I tried smaller amounts to