Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error while importing library "modin" in Python 3.6

import modin.pandas as pd

I am importing modin.pandas library in my windows 10 machine but getting error

"AttributeError: module 'ray' has no attribute 'utils'"

Anything missed while installing modin library?

like image 310
Learnings Avatar asked May 01 '21 11:05

Learnings


2 Answers

"AttributeError: module 'ray' has no attribute 'utils'"

It looks like, you should be able to fix the issue if you just install the 1.1 version of ray, by doing the following :

pip install ray==1.1

The modin.pandas creators haven't release support for versions of ray greater then 1.1.

Here is the discussion thread on github : https://github.com/modin-project/modin/issues/3059

like image 118
Akash Dubey Avatar answered Oct 16 '22 07:10

Akash Dubey


Check which version of ray you have; ray.utils used to be called ray.experimental.

You'll either need to upgrade version of the module you're using that has ray as a dependency (meaning the module currently uses the out-of-date version of ray), or downgrade the version of the ray (to be compatible with the module you're using).

like image 1
Ann Zen Avatar answered Oct 16 '22 06:10

Ann Zen