delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/01/31/15:19:57

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0963C3860C3B
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1612124352;
bh=R919kE+ZchKw0h5HD90nLJ/TfYezvMDTl1DxX2Ia8nM=;
h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=JUdxA4CKcRJCNc3f8HvG04muDtlS+pGTaXWBo0xLtiha/lZxWlkJOV2I9AKboi4bh
I2yTI7LL8YLJWHA5KFLw7Aq6o0W9mX+XOr10ATz7k9UpbquGXu0FUlMRimRiROEbnl
EVTAW/B96Q76oe7+5gzEHcsY5PYRYwwL8LtewZrQ=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org DCDD83857C68
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:subject:from:to:references:message-id:date
:user-agent:mime-version:in-reply-to:content-language;
bh=r0e4ImWuV5qnh67LpvEuijAh8xxwUAevrSUta1s5bqI=;
b=iiuIEOEzNpixRyZRyGidithB+nvkUfGHJR125yrnRpK8r5hfDUbAzIgaTEn718725F
ymJG7IbCcRxZBA5Ez9V7cZh/tGUDXkfhAa4kK4DKUvMee1MuMyju/fk6fFNJUQho1FX9
ILuiZ4LT3H2Ry1vF+pFMah1DQHpeS0Y7su3nzbjZ5edBvGE9HgXFRkFnWFQ7vd9e1khv
o2YeZVtZc1+R39qv57s4HZfsWrqq8A+o0ZbP3T8FmOdLjSoEsp0+Koxp5wHEhw50p8FY
WT0S3aspCfzPgDPbw594I6V37RRTsijSJ/RgSNZ+fpgukiSJB/8o97VU43Rq/RFztm9B
6Opw==
X-Gm-Message-State: AOAM531EMdV5R1kfoakhOjtT06B09Itt0l8SskPQ6Wt6ntv4F/WjEpDF
+TOiezD6mlQsbebiQNdvKBOYbFLD1/Q=
X-Google-Smtp-Source: ABdhPJyJMxppv52VoL34gNx8ejtccFeCbqkbXFZ5cvR/EMNvXbTYpOvk1vBIEo8WFYuf2jaZ8xTmOw==
X-Received: by 2002:a17:906:af41:: with SMTP id
ly1mr6128990ejb.525.1612124347670;
Sun, 31 Jan 2021 12:19:07 -0800 (PST)
Subject: Re: python doesn't work with asyncio library
To: cygwin AT cygwin DOT com
References: <5ce60195-9b4f-a54d-491d-fb0c361586d4 AT gmail DOT com>
<dc0438a9-e5f4-7f4d-d003-5cc8bdfcec21 AT gmail DOT com>
Message-ID: <e183f54c-d929-6f55-75e4-61b9d3b5fff1@gmail.com>
Date: Sun, 31 Jan 2021 21:19:05 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.7.0
MIME-Version: 1.0
In-Reply-To: <dc0438a9-e5f4-7f4d-d003-5cc8bdfcec21@gmail.com>
X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00, BODY_8BITS,
DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM,
NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS,
TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Marco Atzeri via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

This is a multi-part message in MIME format.
--------------1381A8EE2A532845C669A6BE
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable

On 23.01.2021 23:13, Marco Atzeri wrote:
> On 23.01.2021 22:09, ggl329 via Cygwin wrote:
>> Hi Marco,
>>
>> Thank you for maintaining python related packages.
>>
>> I found that the updated python38 (3.8.6-2, 3.8.7-1) and python36=20
>> (3.6.12-2) don't
>> work with asyncio library. The "Hello World!" sample in python=20
>> documentation fails.
>> Using python38 (3.8.3-1) or python36 (3.6.10-1), it succeeds.
>> This issue prevents ipython from starting up.
>> Could you check if this issue is reproducible on your environment?
>>
>> =3D=3D=3D=3D=3D
>> $ cat hello38.py
>> # hello38.py (https://docs.python.org/3.8/library/asyncio.html)
>> import asyncio
>> async def main():
>> =C2=A0=C2=A0=C2=A0=C2=A0 print('Hello ...')
>> =C2=A0=C2=A0=C2=A0=C2=A0 await asyncio.sleep(1)
>> =C2=A0=C2=A0=C2=A0=C2=A0 print('... World!')
>> asyncio.run(main())
>>
>=20
> confirmed. It looks similar to another one that I thought to have
> solved.
>=20
> Let me work on it
>=20
> Marco
>=20

can you try the attached patch and see if it solve this problem ?

Regards
Marco

--------------1381A8EE2A532845C669A6BE
Content-Type: text/plain; charset=UTF-8;
 name="socketpair.patch"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="socketpair.patch"

LS0tIC91c3IvbGliL3B5dGhvbjMuOC9zb2NrZXQucHlfYmsJMjAyMS0wMS0zMSAyMTowNzox
Mi4zNjAzMTQ1MDAgKzAxMDAKKysrIC91c3IvbGliL3B5dGhvbjMuOC9zb2NrZXQucHkJMjAy
MS0wMS0zMSAyMTowOTozOS44NDM5OTU1MDAgKzAxMDAKQEAgLTU1Myw3ICs1NTMsOSBAQAog
ICAgICAgICByZXR1cm4gc29ja2V0KDAsIDAsIDAsIGluZm8pCiAgICAgX19hbGxfXy5hcHBl
bmQoImZyb21zaGFyZSIpCiAKLWlmIGhhc2F0dHIoX3NvY2tldCwgInNvY2tldHBhaXIiKToK
KyMjIG5vdCB1c2luZyBDeWd3aW4gc29ja2V0cGFpcgorIyMgaWYgaGFzYXR0cihfc29ja2V0
LCAic29ja2V0cGFpciIpOgoraWYgRmFsc2U6CiAKICAgICBkZWYgc29ja2V0cGFpcihmYW1p
bHk9Tm9uZSwgdHlwZT1TT0NLX1NUUkVBTSwgcHJvdG89MCk6CiAgICAgICAgICIiInNvY2tl
dHBhaXIoW2ZhbWlseVssIHR5cGVbLCBwcm90b11dXSkgLT4gKHNvY2tldCBvYmplY3QsIHNv
Y2tldCBvYmplY3QpCg==
--------------1381A8EE2A532845C669A6BE
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

--------------1381A8EE2A532845C669A6BE--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019