Re: [Twisted-Python] conch bytes/str traceback when /etc/ssh/moduli is not present

2021-03-05 Thread Werner Thie
On 3/5/21 13:54, Glyph wrote: > >> On Mar 5, 2021, at 3:24 AM, Colin Watson wrote: >> >> On Thu, Mar 04, 2021 at 04:16:59PM -0800, Glyph wrote: >>> There are a bunch of tickets you could file here: >>> >>> Fixing the search path to comport with modern standards >>> Automatically generating a new

Re: [Twisted-Python] conch bytes/str traceback when /etc/ssh/moduli is not present

2021-03-04 Thread Werner Thie
On 3/4/21 08:51, Glyph wrote: > Even if we want a traceback, a TypeError on str/bytes seems like the wrong > kind to have. Please file a bug (and open a PR, if you can :-)). > > -g Investigating I would say that with all the possibilities to configure for the moduli file to be found it is my fa

[Twisted-Python] conch bytes/str traceback when /etc/ssh/moduli is not present

2021-03-04 Thread Werner Thie
Aloha should the case of a missing moduli file be handled more gracefully than with a traceback or is this a bug? I was running into this problem when installing on different OSs with OSX and FreeBSD not having an /etc/ssh/moduli file by default. Mahalo, Werner 2021-03-04T15:04:51+0100 [builtin

Re: [Twisted-Python] Twisted 21.2.0 Release Announcement

2021-03-02 Thread Werner Thie
On 3/1/21 18:35, Craig Rodrigues wrote: > Glyph, > > The 21.2.0 release branch is ready for review so that it can be merged > back to trunk: > > https://github.com/twisted/twisted/pull/1514 > > > Thanks. > > -- > Craig > Mahalo nui loa for the latest

Re: [Twisted-Python] Help with twisted.conch.manhole

2020-04-19 Thread Werner Thie
Don't know if this is still state of the art, but I've been using this off and on and please don't use checkers.InMemoryUsernamePasswordDatabaseDontUse HTH, Werner controlling terminal command line server # #on port . Connect with # #ssh admin@localhost -p # #accept new keys and

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

2019-05-15 Thread Werner Thie
Aloha the code below has proven to be a life saver together with manhole. It might be a bit outdated but I usually create a manhole access allowing me to inspect the server from within then using dumpObjects to look at the sea of objects in the running process. Even only watching the inner workin

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

2019-05-14 Thread Werner Thie
Hi all with periods of seemingly no activity the gc comes to mind. Is the working set size stable or ever increasing, swap operations might block activity of the process I had problems in the beginning with twisted, because I was holding on to a lot of objects and thus creating  circular non col

Re: [Twisted-Python] A Proposal for reducing the burden of developing on Twisted by dropping Python 2 support

2019-03-25 Thread Werner Thie
+1 Werner On 3/25/19 07:22, Scott, Barry wrote: > On Monday, 25 March 2019 10:15:22 GMT Amber Brown wrote: >> Hi everyone, >> >> Since the Python 2 EOL date is rapidly approaching, I thought it was >> time we consider dropping Python 2 support. >> >> I personally find that Python 2 compat adds a

Re: [Twisted-Python] Canonical way to run trial with Python3

2018-05-18 Thread Werner Thie
s=827) I'm currently looking into the tests involving nodejs on the JavaScript side, trying to keep Livepage alive. Werner On 05/18/2018 04:40 PM, Mark Williams wrote: > On Thu, May 17, 2018, at 11:51 PM, Werner Thie wrote: >> Aloha >> >> Are there any suggestions on how

[Twisted-Python] Canonical way to run trial with Python3

2018-05-17 Thread Werner Thie
Aloha Are there any suggestions on how to run trial on a given package to be ported to Python 3 Mahalo, Werner ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] Running a twisted application as windows service

2018-04-12 Thread Werner Thie
+1 never seen NSSM crash Werner On 04/12/2018 07:50 AM, Ray Cote wrote: On Thu, Apr 12, 2018 at 12:12 PM, Thomas Westfeld mailto:thomas.westf...@currenta.de>> wrote: Hello all, I have written a nice twisted-based TCP-server as a twistd plugin or an application as a .tac file

Re: [Twisted-Python] How to correctly run Sqlite with Twisted?

2017-09-19 Thread Werner Thie
Aloha Goffi I'm using minimal code like the one below for MySQL interaction, should be easy to transition this to SQLite from twisted.internet import reactor, task, defer from store import Store #debugging func, printing the result on the console def _transformResult(result): ## print '###

Re: [Twisted-Python] Nevow 0.14.3rc1 released

2017-07-26 Thread Werner Thie
Aloha Tristan still using Athena in production, will be able to test tomorrow. And just to mention it, still one of the best pieces of software (and probably also one of the most under documented) I've ever used. Mahalo, Werner On 7/26/17 8:46 AM, Tristan Seligmann wrote: Hi all, I've uplo

Re: [Twisted-Python] gRPC support in Twisted Python

2016-09-28 Thread Werner Thie
On 9/28/16 9:13 AM, Nursimulu, Khen wrote: Thanks Glyth for the prompt response. On Sep 28, 2016, at 6:13 AM, Nursimulu, Khen mailto:knurs...@ciena.com>> wrote: Is there a plan (or an implementation) to support gRPC within Twisted Python? My understanding is that gRPC is built u

Re: [Twisted-Python] overview: new review queue venue

2016-05-21 Thread Werner Thie
Thank you all for that great and massive move! Me running twisted almost exclusively on FreeBSD, what is the reason for > We could also potentially just replace our buildbot build farm with a > combination of appveyor and travis-ci; this would remove FreeBSD from > our list of supported platform

Re: [Twisted-Python] twisted.logger and log filtering in twistd plugin

2016-02-01 Thread Werner Thie
On 2/1/16 4:45 AM, Patryk Ściborek wrote: Hi Guys! I'm using twisted.logger in my new app. I'm running it as a twistd plugin and I don't know how to enable log message filtering. I know that twistd still uses twisted.python.log but I have to disable debug messages somehow. What's the best way to

Re: [Twisted-Python] Twisted on Windows, parts 2 and 3

2015-05-18 Thread Werner Thie
On 18/05/15 07:19, Christian Long wrote: I added to my series of posts about running Twisted on Windows. Part 2 is about virtual service accounts http://www.christianlong.com/blog/twisted-on-windows-2015-edition-part-2.html Part 3 is about permissions http://www.christianlong.com/blog/twiste

Re: [Twisted-Python] 15.0 Prerelease Reports

2015-01-16 Thread Werner Thie
Hi OSX 10.10.1 uname -a Darwin .local 14.0.0 Darwin Kernel Version 14.0.0: Fri Sep 19 00:26:44 PDT 2014; root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64 Python 2.7.9 (v2.7.9:648dcafa7e5f, Dec 10 2014, 10:10:46) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin -SSL and -Crypto, all else l

Re: [Twisted-Python] GPRS/Modem protocol through USB support

2014-09-22 Thread Werner Thie
Aloha maybe you can get some clues from here https://gist.github.com/claws/2464017 which is pretty close to what your looking for. HTH, Werner On 9/22/14 7:34 AM, Bram Van Steenlandt wrote: op 22-09-14 18:03, Laurens Van Houtven schreef: On 22 Sep 2014, at 17:31, Bram Van Steenlandt wrote

Re: [Twisted-Python] How to send data from another reactor instance

2014-09-12 Thread Werner Thie
Hi consider this for TCP, adapt to UDP http://stackoverflow.com/questions/15640640/python-twisted-man-in-the-middle-implementation/15645169#15645169 Werner On 9/12/14 11:26 AM, User User wrote: Hi, I have the codes below and I would like to know how is it possible to send out data which came

Re: [Twisted-Python] running twisted with supervisord -- logging question

2014-08-23 Thread Werner Thie
Hi that's what I use in my .tac files application = service.Application(mainPkgName) #use this code below to configure logging in all aspects; keep in mind #that for the log rotating code the #access rights must be set such that the process has write access to #the log directory. A trick to

[Twisted-Python] Who's doing the merges for reviewed and blessed pull requests at twisted/nevow?

2014-08-11 Thread Werner Thie
Mahalo for enlightening me, Werner ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] FTP box disconnecting after 60 seconds

2014-07-08 Thread Werner Thie
On 7/8/14 6:30 AM, Paul Wiseman wrote: This is a google compute instance, so there is there firewall on there. I did at first think it could be a hidden firewall rule google have. I think I can rule anything like that out though. I tried to recreate the problem on another box, and got to the poi

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

2014-06-22 Thread Werner Thie
Aloha all great, I used nevow/athena/livepages through all the years in between, nevow getting a new life is really exciting news. Cheers, Werner On 6/21/14 4:46 AM, exar...@twistedmatrix.com wrote: Hello, I'm pleased to announce the release of Nevow 0.11.1. Nevow is a web application cons

Re: [Twisted-Python] XMLString clarification

2014-04-08 Thread Werner Thie
Hi Kevin On 4/8/14 9:34 AM, Kevin Mcintyre wrote: I'm still having trouble getting my multipart text/html from an email into XMLString. I run the html through beautifulsoup then remove the doctype, but if there's anything at all off about the resulting xml it still craps out. How? Traceback?

Re: [Twisted-Python] strategies for tracking down memory issues

2014-01-17 Thread Werner Thie
On 1/17/14 10:43 AM, Jonathan Vanasco wrote: some recent changes to a very-happy twisted daemon have resulted in a process that grows in memory until it crashes the box. boo! looking through the code and logs, i'm wondering if i''ve coded things in such a way that defferds or deferrd lists a

Re: [Twisted-Python] Determine TLS version from within request handler ? (twisted web)

2013-11-11 Thread Werner Thie
On 11/10/13 10:45 PM, Rob Meijer wrote: On Wed, November 6, 2013 15:38, exar...@twistedmatrix.com wrote: On 11:43 am, rmei...@xs4all.nl wrote: I'm using twisted web for an https connection. At first I start with creating and configuring a ssl.DefaultOpenSSLContextFactory derived class that disa

[Twisted-Python] twisted & USB

2013-10-23 Thread Werner Thie
Aloha is anybody aware of code allowing to attach to USB devices with twisted? The only piece of code I found is the twistification of pywws (Weather Station) on https://gist.github.com/claws/2464017 The code works, but I'm scratching my head if there is a better solution to this problem, a

Re: [Twisted-Python] Cancelling a pb callRemote

2013-09-18 Thread Werner Thie
+1 for pb +1 for AMP Werner On 9/18/13 6:08 AM, Phil Mayers wrote: On 18/09/13 17:00, bu...@nehbit.net wrote: +1 for AMP. Wow, lots of people using AMP. Maybe I'm missing out on something... Don't people miss the symmetry of PB? Not to mention you can be lazy and avoid defining a schema! Or

Re: [Twisted-Python] Monitoring Application

2013-08-24 Thread Werner Thie
On 8/24/13 5:41 AM, entrash hotmail wrote: Hello, just started using Twisted and don't know how to manage communications in a monitoring application I'm building for Windows environment. I'm building an application where various client machines will be receiving real-time updates on the status

Re: [Twisted-Python] Operating on metainformation in a distributed system

2013-08-09 Thread Werner Thie
On 8/8/13 5:06 PM, Krysk wrote: Hi Krysk I had similar design constraints when wanting to match up to four human players or computer players playing a card game. In the first monolithic approach I got a better feeling for how long match making actually takes, today we're seeing seldom more than

Re: [Twisted-Python] Operating on metainformation in a distributed system

2013-08-08 Thread Werner Thie
On 8/7/13 2:08 PM, Krysk wrote: Hello. I tried to ask this on StackOverflow, but Glyph advised me this would probably be better. I've had trouble phrasing these questions well, so please ask me if you need more information. I'm working on a game server that needs to support 18,000+ players. The

Re: [Twisted-Python] question : How to listen to USB-HID

2013-05-18 Thread Werner Thie
Hi Maybe you get some clues about twisted with USB/serial stuff from http://code.google.com/p/pywws/source/browse/trunk/pywws/WeatherStation.py?r=504 which is a twistification of the pywws weather station code. HTH, Werner On 5/18/13 10:50 AM, b...@indoakses-online.com wrote: > Dear All > C/Q

Re: [Twisted-Python] Twisted in a multicore environment

2012-07-14 Thread Werner Thie
On 7/14/12 12:39 AM, gelin yan wrote: > > > On Wed, Jul 11, 2012 at 2:08 AM, Werner Thie <mailto:wer...@thieprojects.ch>> wrote: > > On 7/10/12 6:17 AM, Laurens Van Houtven wrote: > > FWIW, I have used Ampoule to great effect, but as JP points out >

Re: [Twisted-Python] Twisted in a multicore environment

2012-07-10 Thread Werner Thie
On 7/10/12 6:17 AM, Laurens Van Houtven wrote: > FWIW, I have used Ampoule to great effect, but as JP points out it's hardly > the only option. You're bound to end up with some measure of multiprocessing. > Bear in mind that not all workloads are well-suited for this kind of problem! > Always m

Re: [Twisted-Python] [ANNOUNCE] Twisted 11.0.0 Released

2011-04-04 Thread Werner Thie
On 4/3/11 8:01 PM, Jessica McKellar wrote: >PAS MAINTENANT CHEF! CHUIS EN TRAIN DE BRANCHER LE REACTEUR > > On behalf of Twisted Matrix Laboratories, I am honored to announce the > release of Twisted 11.0.0. Kudos to all! Mahalo nui loa, Werner ___

Re: [Twisted-Python] Deferred documentation.

2011-03-22 Thread Werner Thie
On 3/22/11 2:30 AM, Jasper St. Pierre wrote: > On IRC, exarkun, glyph, spiv and idnar encouraged me to do a bit of > work on the Defer documentation. I kept get confused between the > things like returning a Deferred from a callback and chainDeferred, > which I found out wasn't that useful: > > I

[Twisted-Python] kqreactor implemented with select.kqueue for Python26 up

2010-10-30 Thread Werner Thie
Hi all Fiddling with kqreactor on the Mac (SnowLeopard) I came across the docs http://docs.python.org/library/select.html#kqueue-objects May I ask the list: - is somebody working on an implementation of kqreactor with select.kqueue - is implementing kqreactor for Python26 up with select.kqueue

Re: [Twisted-Python] Twisted ORM

2010-08-07 Thread Werner Thie
Great work, I'm currently looking into doing some integration work with couchdb and stumbled over paisly https://launchpad.net/paisley but this piece of code is poorly maintained. Not being the db master (neither from heart nor from profession) let me ask the dumb question: How do you rate the

Re: [Twisted-Python] Reactor Spinning?

2010-05-04 Thread Werner Thie
Does it spin forever or does it clear up after some time? I have occasional 'hickups' with heavy loads with responses taking several ten seconds for no apparent reason, the server then working again like nothing happened. Werner Moxie Marlinspike wrote: > Hey Twisted folks, > > I'm using the

Re: [Twisted-Python] Noob alert - Looking for a framework for creating a long polling service

2010-04-01 Thread Werner Thie
Hi, I'm a long term user of twisted with nevow on top mainly using the athena part with LivePage and LiveElement for RPC between Python and JScript. nevow/athena opens up a whole new world of transparently calling from server to browser and vice versa on a permanent connection. With a slight c

Re: [Twisted-Python] R: Twisted Python on Nokia E71x (Running the phone Python Interpreter)

2010-03-05 Thread Werner Thie
ription: application/python # jasstest.tac - controlling file for a single instance jass webapp # -*- coding: iso-8859-1 -*- # # author : Werner Thie, wth # last edit: 20.03.2009 # modhistory: # 20.03.2009 - wth, created import sys, os path = os.getcwd() sys.path.append(path) from twisted.py

Re: [Twisted-Python] Twisted Python on Nokia E71x (Running the phone Python Interpreter)

2010-03-04 Thread Werner Thie
Hi see my post dated 30.05.2009 18:59 did some experimenting with E61i and twisted pre 8.0 pretty much worked. Now with the problems starting on E61i with the Python releases from 1.97 up to the latest 2.0 (certificate woes) and an extremely shabby implementation of the cam module I lost inter

[Twisted-Python] twisted xmpp-router component interface problem

2010-03-03 Thread Werner Thie
Hi Starting twistd xmpp-router and trying to connect to it with a component from the wokkel examples """ An XMPP Ping server as an external server-side component. This ping server assumes the domain C{'ping'}. """ import sys from twisted.python import log from twisted.application import app, s

Re: [Twisted-Python] debugging a memory leak

2010-02-22 Thread Werner Thie
Hi Assuming that if memory not released to the OS can be reused by the interpreter because of a suballocation system used in the interpreter should eventually lead to a leveling out of the overall memory usage over time, that's what I observe with our processes (sitting at several 100 MB per p

Re: [Twisted-Python] debugging a memory leak

2010-02-19 Thread Werner Thie
Hi Alec ...and they promised you that with a gc'ed language there will never be a memory problem again, you just plain forget about it. I was stuck in the same position as you and after lots of probing the following attempt helped a lot to correct what was later proofed to be overly optimistic

Re: [Twisted-Python] web page on doc...

2010-02-16 Thread Werner Thie
...snip > Well, I haven't gotten Lore to work (on Windows at least) in a looong > time. The only way I can get trial to work on Windows is by using the > "Twisted Command Prompt", or some hairy PATH manipulation. snip... Not to my knowledge, I'm running trial on MSW with JScript and all enab

Re: [Twisted-Python] XMPP server implementations with twisted/words

2010-02-15 Thread Werner Thie
code and the api doc here: > http://twistedmatrix.com/documents/8.2.0/api/twisted.words.xish.htmlspecially > the domish element. > > > Cheers, > Alvin > > On Tue, Feb 16, 2010 at 9:24 AM, Christopher Armstrong < > ra...@twistedmatrix.com> wrote: > >

[Twisted-Python] XMPP server implementations with twisted/words

2010-02-15 Thread Werner Thie
Hi Although I'mm using twisted/nevow now for more than three years it was only recently that I felt the need to look into the words section of twisted. After googling 'python xmpp server' I found two projects aiming at writing an xmpp server in python, namely pjabberd (non twisted) and pretzel

Re: [Twisted-Python] long-polling channels with Twisted

2009-11-19 Thread Werner Thie
If you're referring to something like XEP-0124 (BOSH) http://xmpp.org/extensions/xep-0124.html then the short answer is, I did only find a BOSH implementation done with Twisted as part of an XMPP over BOSH connection manager implementation called punjab. http://code.stanziq.com/punjab Interes

Re: [Twisted-Python] OT - adbapi, connection timeouts, mysql - OT

2009-07-21 Thread Werner Thie
Hi Gabriel had the same problem, solved it by having keepalive() called in a LoopingCall(), MySQL sitting at defaults timingwise. DB_DRIVER = "MySQLdb" USERDB_ARGS = { 'host': '', 'db': '', 'user': '', 'passwd': '', 'cp_reconnect': True } storekeeper = StoreKeeper(DB_DRIVER, **U

Re: [Twisted-Python] Twisted for Nokia S60 Platform

2009-05-30 Thread Werner Thie
Hi all I diddled with twisted on my Nokia E61 and managed to get some basics working. A few patches were necessary but I had it up and running in a few hours. Will have a look if the code is still around. BTW, I didn't follow the development on this side closely being busy with other projects,

[Twisted-Python] Bad file descriptor traceback when deamonnizing kqueue reactorwith twistd

2009-02-06 Thread Werner Thie
Hi When I run the following command (as root) on FreeBSD all is well with twistd -rpoll -o ftp I get a running ftp server process on port 2121. Everything is also up and running (no daemonizing) after twistd -rkqueue -no ftp Not so with (daemonized) twistd -rkqueue -o ftp The process dies

Re: [Twisted-Python] Traceback on loseConnection

2009-02-06 Thread Werner Thie
Hello Jean-Paul There must be something else involved. The error is coming from twisted.web.proxy, but that code isn't used by a plain Nevow/Athena app. How is the proxy code getting involved? That remains a mistery to me, I'm certainly not doing any proxying in my source. The only thing I

Re: [Twisted-Python] Traceback on loseConnection

2009-02-05 Thread Werner Thie
relevant commit. I would be more than thankful if somebody could spare me this effort by throwing in an educated guess. Thxs, Werner PS I like the one about the dots, that's why I'm not working with Java Jean-Paul Calderone wrote: On Wed, 04 Feb 2009 11:04:26 +0100, Werner Thie wrot

[Twisted-Python] Traceback on loseConnection

2009-02-04 Thread Werner Thie
Hi all My users are complaining that they get the odd disconnect while using my site built with nevow/athena on FreeBSD 7.1 with the poll reactor. I recently switched to twisted 8.2 release and am now observing 199 'Unhandled Error' out of 298436 logged requests with the following traceback.

[Twisted-Python] high server loads on FreeBSD - does kqueue reactor help?

2009-01-20 Thread Werner Thie
Hi all With a four core, four twisted http server processes (nevow/athena on top), dual 100 MBps interfaces, all four cores showing CPU loads of 50% plus, I observe the following degradation in the network traffic with tcpdump: - 'TCP checksum incorrect' raising to almost 25% of all packets