question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ray does not work with most recent version of redis

See original GitHub issue

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Multiple
  • Ray installed from (source or binary): source (current master)
  • Ray version: -
  • Python version: Multiple
  • Exact command to reproduce: ray.init()

Describe the problem

Multiple people have installed Modin and are receiving this error. https://github.com/modin-project/modin/issues/259

redis.exceptions.DataError: Invalid input of type: 'NoneType'. Convert to a byte, string or number first.

I was able to reproduce by running

pip install -U redis

And then

import ray
ray.init()

Redis recently released. I believe we need to pin Ray to a specific version of the library dependencies for compatibility purposes.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

7reactions
simon-mocommented, Nov 19, 2018

I can re-produce this. A temporary fix will be:

pip install -U redis==2.10.6
0reactions
devin-petersohncommented, Nov 25, 2018

Closed via #3379

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I connect to pre-created redis instance? - Ray Core
Here I have a pre-created Redis instance (well, it is Azure Redis Cache), and I give the azure redis address to address parameter....
Read more >
Ray/Redis failure on ray.init. Any ideas? - Stack Overflow
1 Answer 1 ... Ray drivers are expected to run on a node in the cluster (usually the head node) and requires many...
Read more >
Supported ElastiCache for Redis versions - AWS Documentation
We recommend against using these Redis versions. If you need to use one of them, work with the AWS CLI or ElastiCache API....
Read more >
Redis in Ray: Past and future - Anyscale
The most significant change in Ray 1.11 is that Ray no longer launches Redis by default. For a Ray cluster not running Redis:...
Read more >
Redis
Run the command: Copy. sysctl -p. Having Transparent Huge Pages (THP) support enabled in your kernel will create latency and memory usage issues...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found