gpt4 book ai didi

python - 浏览器中的 Ray Dashboard 错误 "ERR_CONNECTION_REFUSED"

转载 作者:行者123 更新时间:2023-12-02 02:21:23 27 4
gpt4 key购买 nike

在 jupyter notebook 中启动 ray 1.2.0 时:

import ray
ray.init(num_cpus = 8)

日志显示仪表板可用于:

2021-02-25 16:21:23,636 INFO services.py:1174 -- View the Ray dashboard at http://127.0.0.1:8265

但我在浏览器中收到“ERR_CONNECTION_REFUSED”。

最佳答案

我发现了问题,我将日志置于 Debug模式:

import ray
import logging
ray.init(num_cpus = 8, ignore_reinit_error=True, logging_level=logging.DEBUG)

这给了你线索:

2021-02-25 16:21:23,641 DEBUG node.py:844 -- Process STDOUT and STDERR is being redirected to C:\tmp\ray\session_2021-02-25_16-21-22_158008_35392\logs

在日志文件夹中有一个 dashboard.log 错误:

FileNotFoundError: [Errno 2] Dashboard build directory not found. If installing from source, please follow the additional steps required to build the dashboard(cd python/ray/new_dashboard/client && npm install && npm ci && npm run build): 'E:\\Development\\Anaconda3\\lib\\site-packages\\ray\\new_dashboard\\client\\build'

如果你用谷歌搜索这个错误,你会发现这是 Windows 中的一个已知错误。

https://github.com/ray-project/ray/issues/9114

要点:

[TODO] 仪表板在 Windows 上不工作(与节点不兼容有关)

关于python - 浏览器中的 Ray Dashboard 错误 "ERR_CONNECTION_REFUSED",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66368808/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com