在软件包管理器中安装或更新软件包时,会出现Canopy Canopy - “IOError:[Errno 10038]”

时间:2017-01-02 15:43:56

标签: enthought

我安装了Canopy 1.7.4.3348(64位)。我的操作系统是Windows 10(64位)。我有最新的Canopy和Windows 10.

当我尝试在软件包管理器中更新并安装任何软件包时,“状态”将变为“错误”,我收到了消息:

IOError: [Errno 10038] An operation was attempted on something that is not a socket. 

我在microsoft.com(https://msdn.microsoft.com/en-us/library/windows/desktop/ms740668(v=vs.85).aspx)上查找了错误代码,发现了Microsoft对套接字错误10038的定义:

WSAENOTSOCK 10038
Socket operation on nonsocket.
An operation was attempted on something that is not a socket. 
Either the socket handle parameter did not reference a valid socket, 
or for select, a member of an fd_set was not valid.

我认为Canopy的这个错误可能只存在于Windows中,但不存在于Linux等其他操作系统中。有谁可以请帮忙解决这个问题?真的很感激!!

详细信息如下:

Warming up...

Traceback (most recent call last):
 File "build\bdist.win-amd64\egg\canopy_dashboard\packman\package_action_worker.py", line 54, in run
 File "build\bdist.win-amd64\egg\canopy_dashboard\packman\package_action.py", line 193, in execute
 File "build\bdist.win-amd64\egg\canopy_dashboard\packman\packman.py", line 346, in <lambda>
 File "build\bdist.win-amd64\egg\canopy_dashboard\packman\packman.py", line 893, in _install
 File "build\bdist.win-amd64\egg\canopy_platform\cpython_packages_manager.py", line 98, in install_package
 File "build\bdist.win-amd64\egg\canopy_platform\enpkg_api.py", line 102, in install_package
 File "build\bdist.win-amd64\egg\canopy_platform\enpkg_api.py", line 177, in _execute_in_subprocess
 File "build\bdist.win-amd64\egg\canopy_platform\enpkg_api.py", line 212, in _propagate_progress_events
IOError: [Errno 10038] An operation was attempted on something that is not a socket

1 个答案:

答案 0 :(得分:1)

请在Canopy帮助菜单中提交有关Enthought技术支持记录的错误报告(请参阅报告中的此SO问题)。

我不知道导致这种罕见错误的原因,但它应该在Canopy 2.0中消失,它使用不同的包管理器后端,基于Enthought Deployment Manager (EDM)

同时,您可以使用Canopy命令提示符中的命令行程序包安装程序enpkg来避免此错误。有关详细信息,请参阅此知识库文章:https://support.enthought.com/entries/22415022-Using-enpkg-to-update-Canopy-EPD-packages