[Ray 1.8] "ray memory" fails with "No module named 'aiohttp.signals'"
See original GitHub issueSearch before asking
- I searched the issues and found no similar issues.
Ray Component
Ray Core
What happened + What you expected to happen
Hi Ray team,
I can run most ray
commands like ray status
and ray timeline
but when I try ray memory
I get the following error:
Traceback (most recent call last):
File "/home/metalcycling/.local/bin/ray", line 8, in <module>
sys.exit(main())
File "/home/metalcycling/.local/lib/python3.8/site-packages/ray/scripts/scripts.py", line 1969, in main
return cli()
...
File "/home/metalcycling/.local/lib/python3.8/site-packages/ray/dashboard/optional_deps.py", line 8, in <module>
import aiohttp.signals
ModuleNotFoundError: No module named 'aiohttp.signals'
I manually imported the code on my Python shell and while import aiohttp
works, import aiohttp.signals
doesn’t work. On the aio-libs page somebody reported the same issue here, so this is a problem on their side, really. But it seems they are not following their own deprecation process and that means the signals module is not available. Is there a way to fix Ray so I can use the memory utility?
Thanks, Pedro
Versions / Dependencies
metalcycling@linux:~$ python3 --version
Python 3.8.8
>>> import aiohttp
>>> aiohttp.__version__
'3.8.1'
>>>
>>> import ray
>>> ray.__version__
'1.8.0'
>>>
Reproduction script
metalcycling@linux:~$ ray memory
Anything else
No response
Are you willing to submit a PR?
- Yes I am willing to submit a PR!
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Dashboard and python 3.8 aiohttp signal - Ray
Hi, I had issue on a fresh installation of ray with python 3.8. I've used latest ray 1.8 but I think the issue...
Read more >[Fixed] ModuleNotFoundError: No module named 'aiohttp'
How to Fix “ModuleNotFoundError: No module named 'aiohttp'” in PyCharm · Open File > Settings > Project from the PyCharm menu. · Select...
Read more >python 3.x - ModuleNotFoundError: No module named 'aiohttp'
Looking to find a workaround for this existing issue.
Read more >Python on Biowulf - NIH HPC
The general use python modules set OMP_NUM_THREADS to 1 requiring users to explicitly set the variable higher to take advantage of implicit multithreading....
Read more >Bug listing with status UNCONFIRMED as at 2022/12/20 15 ...
... Bug:381969 - "Asus Notebook keyboard/backlight support kernel modules ... crashes with confusing error when out of memory: TypeError: an integer is ...
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
pip install aiohttp==3.7.4
This is a known problem that is fixed in the Ray master in https://github.com/ray-project/ray/pull/20261.
In the current Ray release you can pin
aiohttp
by runningpip install aiohttp==3.7
which will fix it.