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 1.8] "ray memory" fails with "No module named 'aiohttp.signals'"

See original GitHub issue

Search 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
2726651506commented, Dec 3, 2021

pip install aiohttp==3.7.4

2reactions
pcmoritzcommented, Nov 24, 2021

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 running pip install aiohttp==3.7 which will fix it.

Read more comments on GitHub >

github_iconTop 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 >

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