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
(3.6.12-2) don't
work with asyncio library. The "Hello World!" sample in python
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?
=====
$ cat hello38.py
# hello38.py (https://docs.python.org/3.8/library/asyncio.html)
import asyncio
async def main():
print('Hello ...')
await asyncio.sleep(1)
print('... World!')
asyncio.run(main())
confirmed. It looks similar to another one that I thought to have
solved.
Let me work on it
Marco
can you try the attached patch and see if it solve this problem ?
Regards
Marco
--- /usr/lib/python3.8/socket.py_bk 2021-01-31 21:07:12.360314500 +0100
+++ /usr/lib/python3.8/socket.py 2021-01-31 21:09:39.843995500 +0100
@@ -553,7 +553,9 @@
return socket(0, 0, 0, info)
__all__.append("fromshare")
-if hasattr(_socket, "socketpair"):
+## not using Cygwin socketpair
+## if hasattr(_socket, "socketpair"):
+if False:
def socketpair(family=None, type=SOCK_STREAM, proto=0):
"""socketpair([family[, type[, proto]]]) -> (socket object, socket
object)
--
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