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

Questions about the initialization of the Ray server. #53

Closed
XuChunqiao opened this issue Sep 7, 2020 · 3 comments
Closed

Questions about the initialization of the Ray server. #53

XuChunqiao opened this issue Sep 7, 2020 · 3 comments

Comments

@XuChunqiao
Copy link

Hi, I've tried to run the code for searching policies, but I have trouble in initializing the Ray server.
It seems that there is someting wrong with the code "ray.init(redis_address=args.redis)" in search.py Line 164

Traceback (most recent call last):
File "search.py", line 166, in
ray.init(redis_address=args.redis)
File "/home/xcq/anaconda3/envs/pytorch-video/lib/python3.6/site-packages/ray/worker.py", line 1425, in init
redis_address = services.address_to_ip(redis_address)
File "/home/xcq/anaconda3/envs/pytorch-video/lib/python3.6/site-packages/ray/services.py", line 145, in address_to_ip
ip_address = socket.gethostbyname(address_parts[0])
UnicodeError: encoding with 'idna' codec failed (UnicodeError: label empty or too long)

Any suggestion about what I could be doing wrong/ how to workaround this?
ray version==0.6.5

@koi-boy
Copy link

koi-boy commented Mar 10, 2021

请问解决了没有?

@XuChunqiao
Copy link
Author

请问解决了没有?

解决了。
我把ray.init(redis_address=args.redis) 换成ray.init(num_cpus=8, num_gpus=2)就可以了

@koi-boy
Copy link

koi-boy commented Mar 10, 2021

请问解决了没有?

解决了。
我把ray.init(redis_address = args.redis)换成ray.init(num_cpus = 8,num_gpus = 2)就可以了

谢谢谢谢,我去尝试下

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

2 participants