Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 导入ray模块时,无法导入 #42

Open
songchao12 opened this issue Sep 13, 2024 · 0 comments
Open

Python 导入ray模块时,无法导入 #42

songchao12 opened this issue Sep 13, 2024 · 0 comments

Comments

@songchao12
Copy link

from ray import tune
from ray.tune.schedulers import ASHAScheduler
这两行导入时有问题,具体报错信息如下:

Traceback (most recent call last):
File "C:\Users\宋超\AppData\Local\Programs\Python\Python39\lib\site-packages\ray_private\node.py", line 312, in init
ray._private.services.wait_for_node(
File "C:\Users\宋超\AppData\Local\Programs\Python\Python39\lib\site-packages\ray_private\services.py", line 385, in wait_for_node
raise TimeoutError("Timed out while waiting for node to startup.")
TimeoutError: Timed out while waiting for node to startup.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "c:\Users\宋超\Desktop\销量预测.py", line 433, in
analysis = tune.run(train_model, config=config, scheduler=scheduler, num_samples=10, metric="loss", mode="min")
File "C:\Users\宋超\AppData\Local\Programs\Python\Python39\lib\site-packages\ray\tune\tune.py", line 374, in run
_ray_auto_init()
File "C:\Users\宋超\AppData\Local\Programs\Python\Python39\lib\site-packages\ray\tune\tune.py", line 888, in _ray_auto_init
ray.init()
File "C:\Users\宋超\AppData\Local\Programs\Python\Python39\lib\site-packages\ray_private\client_mode_hook.py", line 105, in wrapper
return func(*args, **kwargs)
File "C:\Users\宋超\AppData\Local\Programs\Python\Python39\lib\site-packages\ray_private\worker.py", line 1420, in init
_global_node = ray._private.node.Node(
File "C:\Users\宋超\AppData\Local\Programs\Python\Python39\lib\site-packages\ray_private\node.py", line 319, in init
raise Exception(
Exception: The current node has not been updated within 30 seconds, this could happen because of some of the Ray processes failed to startup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant