[BUG] RuntimeError: Loop is not running
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start by inspecting s3fs/core.py around line 546 and reproducing startup in the reported Sanic environment with fsspec and s3fs 2023.9.0. Compare behavior with version 2023.6.0, focusing on the unawaited ClientCreatorContext.aexit warning and subsequent loop error. Done means startup no longer emits the warning or raises RuntimeError: Loop is not running.
Written by the indexing model from the issue text.
Description
Versions:
fsspec 2023.9.0
s3fs 2023.9.0
On my Sanic app startup, I'm getting the following warning message:
/opt/python/lib/python3.10/site-packages/s3fs/core.py:546: RuntimeWarning: coroutine 'ClientCreatorContext.__aexit__' was never awaited
loop.create_task(s3.__aexit__(None, None, None))
Which I think is then what is leading to this exception later on:
RuntimeError: Loop is not running
The RuntimeError did not appear previously on version 2023.6.0.
However, the error only seems to occur on app startup. The app seems to still work fine afterwards.
- Dominant language
- Python
- Stars
- 1k
- Forks
- 305
- Avg merge
- 22h 37m
- Merged PRs (30d)
- 4
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from fsspec/s3fs
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 50/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
bancolombia/sentinel#23 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
bug client
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100