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

Error on ray.init() #3400

Closed
Yangtiancoder opened this issue Nov 25, 2018 · 1 comment
Closed

Error on ray.init() #3400

Yangtiancoder opened this issue Nov 25, 2018 · 1 comment

Comments

@Yangtiancoder
Copy link

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04):Linux Ubuntu 16.04
  • Ray installed from (source or binary):Latest wheel
  • Ray version:0.5.3
  • Python version:3.6.5

Describe the problem

When I run ray.init(), will report an error.

Source code / logs

demo like this

# 导入ray,并初始化执行环境
import ray
ray.init(use_raylet=True)

# 定义ray remote函数
@ray.remote
def hello():
    return "Hello world !"

# 异步执行remote函数,返回结果id
object_id = hello.remote()

# 同步获取计算结果
hello = ray.get(object_id)

# 输出计算结果
print (hello)

log like this,i didn't know why,can you help me,thanks

Process STDOUT and STDERR is being redirected to /tmp/raylogs/.
Waiting for redis server at 127.0.0.1:28701 to respond...
Waiting for redis server at 127.0.0.1:10021 to respond...
Starting the Plasma object store with 1.00 GB memory.

Traceback (most recent call last):
File "/home/yangtian/PycharmProjects/untitled/ministray.py", line 3, in
ray.init(use_raylet=True)
File "/home/yangtian/anaconda3/envs/py36/lib/python3.6/site-packages/ray/worker.py", line 1866, in init
use_raylet=use_raylet)
File "/home/yangtian/anaconda3/envs/py36/lib/python3.6/site-packages/ray/worker.py", line 1727, in _init
use_raylet=use_raylet)
File "/home/yangtian/anaconda3/envs/py36/lib/python3.6/site-packages/ray/worker.py", line 2165, in connect
worker.redis_client.hmset(b"Drivers:" + worker.worker_id, driver_info)
File "/home/yangtian/anaconda3/envs/py36/lib/python3.6/site-packages/ray/utils.py", line 387, in _wrapper
return orig_attr(*args, **kwargs)
File "/home/yangtian/anaconda3/envs/py36/lib/python3.6/site-packages/redis/client.py", line 2636, in hmset
return self.execute_command('HMSET', name, *items)
File "/home/yangtian/anaconda3/envs/py36/lib/python3.6/site-packages/redis/client.py", line 754, in execute_command
connection.send_command(*args)
File "/home/yangtian/anaconda3/envs/py36/lib/python3.6/site-packages/redis/connection.py", line 619, in send_command
self.send_packed_command(self.pack_command(*args))
File "/home/yangtian/anaconda3/envs/py36/lib/python3.6/site-packages/redis/connection.py", line 659, in pack_command
for arg in imap(self.encoder.encode, args):
File "/home/yangtian/anaconda3/envs/py36/lib/python3.6/site-packages/redis/connection.py", line 124, in encode
"byte, string or number first." % typename)
redis.exceptions.DataError: Invalid input of type: 'NoneType'. Convert to a byte, string or number first.

@robertnishihara
Copy link
Collaborator

Closing because I think this is the same issue as #3334. It should be fixed in the latest wheels as of #3379. Let me know if that's not the case.

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