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.

modin ray.utils not found, attribute error

See original GitHub issue

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Apple M1, BigSur
  • Modin version (modin.__version__):0.9.1
  • Python version:3.8
  • Code we can use to reproduce:
import modin.pandas as pd
 df = pd.DataFrame()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/prabhant/opt/anaconda3/envs/env/lib/python3.8/site-packages/modin/pandas/dataframe.py", line 90, in __init__
    Engine.subscribe(_update_engine)
  File "/Users/prabhant/opt/anaconda3/envs/env/lib/python3.8/site-packages/modin/config/pubsub.py", line 107, in subscribe
    callback(cls)
  File "/Users/prabhant/opt/anaconda3/envs/env/lib/python3.8/site-packages/modin/pandas/__init__.py", line 117, in _update_engine
    initialize_ray()
  File "/Users/prabhant/opt/anaconda3/envs/env/lib/python3.8/site-packages/modin/engines/ray/utils.py", line 143, in initialize_ray
    0.6 * ray.utils.get_system_memory() // 10 ** 9 * 10 ** 9
AttributeError: module 'ray' has no attribute 'utils'

Describe the problem

Seems like the ray.utils does not really exist in ray 1.3.0

import ray
ray.utils
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'ray' has no attribute 'utils'

Source code / logs

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
devin-petersohncommented, May 18, 2021

I believe in zsh, you have to wrap the modin[ray] in quotes:

pip install "modin[ray]"

Does that fix the issue?

3reactions
devin-petersohncommented, May 14, 2021

@samueldominguez You should be able to fix the issue with pip install ray==1.1. We haven’t released Ray 1.3 support yet, and it looks like they have changed their API.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error while importing library "modin" in Python 3.6
"AttributeError: module 'ray' has no attribute 'utils'". It looks like, you should be able to fix the issue if you just install the...
Read more >
AttributeError: module 'ray' has no attribute 'utils'
I installed Ray==1.1 and was able to import modin.pandas. Unfortunately, my read_csv is behaving weird and giving me an error message:.
Read more >
Unable to connect to external Ray cluster - Errors/Issues
It looks like some utility or library is accessing internal attributes of a pandas DataFrame, but Modin does not have the same memory...
Read more >
Release 0+untagged.50.g9a95a2f.dirty Modin contributors
pip install modin[ray] # Install Modin dependencies and Ray to run on Ray ... AttributeError: partially initialized module 'pandas' has no attribute 'core' ......
Read more >
ray.rllib.utils.framework — Ray 2.1.0 - the Ray documentation
Source code for ray.rllib.utils.framework ... WARN) # No compat.v1 -> return tf as is. except AttributeError: tf1_module = tf_module if not ...
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