[Twisted-Python] Installing Twisted on a clean Windows system

2018-07-01 Thread Jeff Grimmett
I am attempting to install Twisted 18.4.0 on a clean system, fresh install of Python 3.7. When I attempt to install from the source dist (python setup.py install) it complains I don't have the MS Visual C++ Build tools ("error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual

Re: [Twisted-Python] Installing Twisted on a clean Windows system

2018-07-01 Thread Jeff Grimmett
: see declaration of '_ts' error: command 'D:\\Programs\\VS\\VC\\Tools\\MSVC\\14.14.26428\\bin\\HostX86\\x64\\cl.exe' fail ed with exit status 2 (there was more but this is the gist of it). Really strongly pointing back at Python 3.7 at this point but it's not where I

Re: [Twisted-Python] Installing Twisted on a clean Windows system

2018-07-01 Thread Jeff Grimmett
Windows at this point. Anything I can to do assist in troublshooting, lmk. I'll be glad to help if I can do it. I'm completely lost in the woods where this kind of stuff is concerned. Regards, Jeff On Sun, Jul 1, 2018 at 11:19 AM Jeff Grimmett wrote: > I installed the compiler

Re: [Twisted-Python] Installing Twisted on a clean Windows system

2018-07-01 Thread Jeff Grimmett
and other projects have had time to > catch up. > > -Amber > Twisted Release Manager > > On Sun, 1 Jul 2018, 15:53 Jeff Grimmett, wrote: > >> I am attempting to install Twisted 18.4.0 on a clean system, fresh >> install of Python 3.7. When I attempt to install fro

[Twisted-Python] Keeping logger from snatching stdout?

2018-08-29 Thread Jeff Grimmett
I'm working on a Flask project using the flask_twisted package from PyPI and have encountered a mystery. I don't *have* to solve it to move on, but darn it, I can't let it go :) https://pypi.org/project/Flask-Twisted/ https://github.com/cravler/flask-twisted/ So here's the breakdown: when use th

Re: [Twisted-Python] Keeping logger from snatching stdout?

2018-09-11 Thread Jeff Grimmett
Hi, Glyph, On Wed, Sep 5, 2018 at 3:27 AM Glyph wrote: > > > On Aug 29, 2018, at 3:48 PM, Jeff Grimmett wrote: > > Why would you do this rather than simply handle logging events? Both > twisted and the stdlib have mechanisms for adding observers that will give > you acce

Re: [Twisted-Python] Keeping logger from snatching stdout?

2018-09-15 Thread Jeff Grimmett
away I can focus on wrangling the Twisted logger as well. Regards, Jeff On Tue, Sep 11, 2018 at 6:33 PM Jeff Grimmett wrote: > > Hi, Glyph, > > On Wed, Sep 5, 2018 at 3:27 AM Glyph wrote: > >> >> >> On Aug 29, 2018, at 3:48 PM, Jeff Grimmett wrote: >&

[Twisted-Python] twisted.web with dynamic + static content

2018-10-30 Thread Jeff Grimmett
I'm sure I'm overlooking something obvious here but I just can't get my head around it. Here's the setup: twisted.web server that generates dynamic content. Child that serves up static content, e.g. css and favoicon. However, the static content isn't making it. Instead, any hit to localhost/stati

Re: [Twisted-Python] twisted.web with dynamic + static content

2018-10-31 Thread Jeff Grimmett
ot;) (ignore my printf debugging plz) So, Thanks! :) Regards, Jeff On Tue, Oct 30, 2018 at 6:42 PM Donal McMullan wrote: > Try replacing: > isLeaf = True > with > isLeaf = False > > > On Tue, 30 Oct 2018 at 21:32, Jeff Grimmett wrote: > >> I'm

Re: [Twisted-Python] twisted.web with dynamic + static content

2018-11-19 Thread Jeff Grimmett
ostpath == [b'']: > request.setHeader("content-type", "text/html") > return bytes(content, "utf-8") > elif request.postpath == [b'static', b'test.css']: > request.setHeader("conte

Re: [Twisted-Python] twisted.web with dynamic + static content

2018-11-27 Thread Jeff Grimmett
or does it need to be bundled with more changes? Thanks, Jeff On Wed, Nov 21, 2018 at 1:31 AM Tom Most wrote: > On Mon, Nov 19, 2018, at 3:06 PM, Jeff Grimmett wrote: > > Glyph, > > Belated (I was in the thick of a few unrelated crises) thanks - it helps > to understand a

[Twisted-Python] asyncio.reactor.install()

2018-12-18 Thread Jeff Grimmett
This pattern works: *from twisted.internet import wxreactorreactor = wxreactor.install()* *endpoint = endpoints.TCP4ServerEndpoint(reactor, cfg.port)endpoint.listen(site)* This does not: *from twisted.internet import asyncioreactorreactor = asyncioreactor.install()* *factory = reactor.li

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

2019-03-29 Thread Jeff Grimmett
I don't have any skin in this game other than as a consumer, but I agree that the proposed plan makes sense, FWIW. Freezing at a specific version in sync (ish) with the Py2 support notification has a certain symmetry to it :) Regards, Jeff ___ Twisted