[Twisted-Python] adbapi : sqlite3.OperationalError : database is locked

2009-06-22 Thread Gabriel Rossetti
Hello everyone, I am using twisted.enterprise.adbapi with sqlite3 database adapter and "runInteraction()". I keep on getting "sqlite3.OperationalError : database is locked" errors. I understand the problem, multiple threads try to access the DB and it being already locked by a thread it raises

Re: [Twisted-Python] adbapi : sqlite3.OperationalError : database is locked

2009-06-22 Thread Jean-Paul Calderone
On Mon, 22 Jun 2009 11:06:24 +0200, Gabriel Rossetti wrote: >Hello everyone, > >I am using twisted.enterprise.adbapi with sqlite3 database adapter and >"runInteraction()". I keep on getting "sqlite3.OperationalError : >database is locked" errors. I understand the problem, multiple threads >try to

Re: [Twisted-Python] adbapi : sqlite3.OperationalError : database is locked

2009-06-22 Thread Gabriel Rossetti
Jean-Paul Calderone wrote: > On Mon, 22 Jun 2009 11:06:24 +0200, Gabriel Rossetti > wrote: > >> Hello everyone, >> >> I am using twisted.enterprise.adbapi with sqlite3 database adapter and >> "runInteraction()". I keep on getting "sqlite3.OperationalError : >> database is locked" errors. I und

[Twisted-Python] SIP Registrar

2009-06-22 Thread Guenter Dannoritzer
Hi, I am trying to run a SIP registrar. So far I used an example that comes with the Perl Net:Sip Package: http://search.cpan.org/~sullr/Net-SIP/ As I am more familiar with Python, but not yet with twisted, I tried to find a simple example that runs a SIP registrar based on twisted. I searched

Re: [Twisted-Python] SIP Registrar

2009-06-22 Thread Jean-Paul Calderone
On Mon, 22 Jun 2009 15:23:28 +0200, Guenter Dannoritzer wrote: >Hi, > >I am trying to run a SIP registrar. > >So far I used an example that comes with the Perl Net:Sip Package: > >http://search.cpan.org/~sullr/Net-SIP/ > >As I am more familiar with Python, but not yet with twisted, I tried to >fi

[Twisted-Python] untwisting twistd

2009-06-22 Thread Jared Gisin
I am currently working on writing an application using the twisted framework. The problem that I have is that I do not want to use twistd. In fact, I find twistd to be inappropriate as it defaults pidfile and logfile to something specific to twisted, not my application, and it seem completely silly

Re: [Twisted-Python] untwisting twistd

2009-06-22 Thread Phil Christensen
On Jun 22, 2009, at 4:30 PM, Jared Gisin wrote: > Which is iditic as my application may not even expose a –pidfile or > a –logfile and it’s definatley not called twistd. The platform > specific application runners need to be more generalized so users > can write their own twistd equivalent to

Re: [Twisted-Python] untwisting twistd

2009-06-22 Thread glyph
On 09:06 pm, p...@bubblehouse.org wrote: >On Jun 22, 2009, at 4:30 PM, Jared Gisin wrote: >>Which is iditic as my application may not even expose a 13pidfile or >>a 13logfile and it 19s definatley not called twistd. The platform >>specific application runners need to be more generalized so users

Re: [Twisted-Python] untwisting twistd

2009-06-22 Thread Alex Clemesha
Hi Jared, First off, I'd like to say that I'm basically in agreement with exactly what you are saying, and that is: "I should be able to write a Python script that acts like twistd - not *be* twistd". Phil does have some really good points, such as: """ The critics are usually not thinking about

Re: [Twisted-Python] untwisting twistd

2009-06-22 Thread Phil Christensen
On Jun 22, 2009, at 5:38 PM, gl...@divmod.com wrote: > On 09:06 pm, p...@bubblehouse.org wrote: >> Look at the init script used to start MySQL sometime, particularly >> when installed from a package on a finicky distro like debian. Or >> Apache. Or bind. Or any one of a number of other complex