modin ray.utils not found, attribute error
See original GitHub issueSystem 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:
- Created 2 years ago
- Reactions:1
- Comments:13 (6 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I believe in zsh, you have to wrap the
modin[ray]
in quotes:Does that fix the issue?
@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.