简体   繁体   English

Python3.8 socketpair 失败(所以 cygwin)

[英]Python3.8 socketpair failed (s.o. cygwin)

Under cygwin console:在 cygwin 控制台下:

$ python3.8

Python 3.8.7 (default, Jan 26 2021, 07:37:32)

[GCC 10.2.0] on cygwin

Type "help", "copyright", "credits" or "license" for more information.

```>>> import socket as s```

```>>> s.socketpair()```
 
 File "\<stdin\>", line 1, in <module>
  File "/usr/lib/python3.8/socket.py", line 571, in socketpair

    ```a, b = _socket.socketpair(family, type, proto)```

SystemError: <built-in function socketpair> returned NULL without setting an error

but...但...

$ python2.7

Python 2.7.18 (default, Jan  2 2021, 09:22:32)

[GCC 10.2.0] on cygwin

Type "help", "copyright", "credits" or "license" for more information.

```>>> import socket as s```

```>>> s.socketpair()```

(<socket object, fd=3, family=1, type=1, protocol=0>, <socket object, fd=4, family=1, type=1, 
protocol=0>)

I don't know where to look: :((我不知道在哪里看:((

THX谢谢

The new versions implement a workaround similar to your idea新版本实现了类似于您的想法的解决方法

https://sourceware.org/pipermail/cygwin/2021-February/247684.html https://sourceware.org/pipermail/cygwin/2021-February/247684.html

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Python 3.8:从基本目录的 Jupyter Notebook 运行不同的 Python 环境时出错 - Python 3.8: Error running different Python environments from base directory's Jupyter Notebook 带有 Python 3.8 的 Jupyter 笔记本 - NotImplementedError - Jupyter Notebook with Python 3.8 - NotImplementedError 在 Google Colaboratory 中安装 Python 3.8 kernel - Install Python 3.8 kernel in Google Colaboratory 如何在 Jupyter Notebook 中将 python 升级到 3.8? - How can I upgrade python to 3.8 in Jupyter Notebook? 强制 Jupyter 使用 Python 3.7 可执行文件而不是 Python 3.8 - Force Jupyter to use Python 3.7 executable instead of Python 3.8 Jupyter notebook 在我的机器上使用了与默认 python 版本 (Python 3.9) 不同的内核 (python 3.8) - Jupyter notebook is using different Kernel (python 3.8) from my default python version (Python 3.9) in my machine pip3 指向 python 3.8 和 jupyter notebook 指向 python 3.9。 无法同步两者 - pip3 points to python 3.8 and jupyter notebook points to python 3.9. Having trouble syncing the two Jupyter Notebook:“运行时错误:安全文件的权限分配失败:......得到&#39;0o1600&#39;而不是&#39;0o0600&#39;” - Jupyter Notebook: "RuntimeError: Permissions assignment failed for secure file: ... Got '0o1600' instead of '0o0600' " "当我尝试使用 Python 3.8 在 jupyter notebook 中安装 PySimpleGUI (4.53.0) 时,错误“没有返回名为‘PySimpleGUI’的模块" - When I try to install PySimpleGUI (4.53.0) in jupyter notebook using Python 3.8 the error "no module named 'PySimpleGUI' is returned 如何解决此归因错误 AttributeError: 'DataFrame' object has no attribute 'as_matrix' (使用 Python 3.8) - how to solve this attribution error AttributeError: 'DataFrame' object has no attribute 'as_matrix' (using Python 3.8)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM