Skip to content

Commit d5c546c

Browse files
authored
fix: add async-timeout dependency to address loading error (#13)
error: File "app.py", line 4, in <module> from jsonrpc_websocket import Server File "(snip)/lib/python3.11/site-packages/jsonrpc_websocket/__init__.py", line 1, in <module> from .jsonrpc import Server, TransportError # noqa: F401, F403 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "(snip)/lib/python3.11/site-packages/jsonrpc_websocket/jsonrpc.py", line 7, in <module> import async_timeout cause: Actually async-timeout is using in jsonrpc-websocket, it was not added to dependency explicitly. But aiohttp depends on async-timeout until py310, so loading error was not happened until py310. From py311, aiohttp drop async-timeout dependency, after that jsonrpc-websocket cause loading error. see also aio-libs/aiohttp#7558 .
1 parent e077593 commit d5c546c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
install_requires=[
2323
'jsonrpc-base>=2.1.0',
2424
'aiohttp>=3.0.0',
25+
'async-timeout>=4.0.0',
2526
],
2627
classifiers=[
2728
'Development Status :: 5 - Production/Stable',

0 commit comments

Comments
 (0)