Hi guys I'm new to twisted and would appreciate some beginner guidance.
I'm trying to use the "python -m twisted.conch.stdio" command in command prompt but it does not work and gives the following error: C:\WINDOWS\system32>python -m twisted.conch C:\Users\Melanie\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\python.exe: No module named twisted.conch.*main*; 'twisted.conch' is a package and cannot be directly executed *I'm hoping that this will solve the rest of the error messages I'm having. I want to eventually be ably to run :* >>> from twisted.names import client >>> client.getHostByName('www.example.com') <Deferred at 0xf5c5a8 waiting on Deferred at 0xf5cb90> >>> _ <Deferred at 0xf5c5a8 current result: '2606:2800:220:6d:26bf:1447:1097:aa7'> >>> client.lookupMailExchange('twistedmatrix.com') <Deferred at 0xf5cd40 waiting on Deferred at 0xf5cea8> >>> _ <Deferred at 0xf5cd40 current result: ([<RR name=twistedmatrix.com type=MX class=IN ttl=1s auth=False>], [], [])> *The aim is to get the deferred responses as shown in previous code, but all I get is:* >>> from twisted.names import client >>> client.getHostByName('www.example.com') <Deferred at 0x263d27b9dc8 waiting on Deferred at 0x263d27b9f48> >>> _ <Deferred at 0x263d27b9dc8 waiting on Deferred at 0x263d27b9f48> >>> client.lookupMailExchange('twistedmatrix.com') <Deferred at 0x263d27c6a88 waiting on Deferred at 0x263d27c6c08> >>> _ <Deferred at 0x263d27c6a88 waiting on Deferred at 0x263d27c6c08> Please help. I'm trying to send this to the twisted mailing group. If I'm wrong please nudge me in the right direction. Thanks in advance. M On Mon, Jul 19, 2021 at 12:43 AM Richard van der Hoff <rich...@matrix.org> wrote: > On 16/07/2021 20:27, Glyph wrote: > > > >> One particular problem I came across was the type annotation on > >> inlineCallbacks. I've filed > >> https://twistedmatrix.com/trac/ticket/10231 about it - would > >> appreciate thoughts. > >> > > This definitely looks wrong; there should be a TypeVar in there. Adi, > > I'd go so far as to say that this should be a release blocker, > > although the change should be fairly minimal. > > > > Richard, could you please make a proper PR for this to get CI kicked > > off and make sure the new annotation doesn't cause any failures? > Done, in the form of https://github.com/twisted/twisted/pull/1632. > > _______________________________________________ > Twisted-Python mailing list > Twisted-Python@twistedmatrix.com > https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python >
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python