Skip to content

Doesn't work on python 3.11 version #3

@jus7nyan

Description

@jus7nyan

when running any code with this library, this error appears.
when running the wget example:

Traceback (most recent call last):
  File "/home/justnyan/MyProject/JUNQ-protocol-python/test/i2p.py", line 36, in <module>
    loop.run_until_complete(wget(i2plib.get_sam_address(), loop, url))
  File "/usr/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/home/justnyan/MyProject/JUNQ-protocol-python/test/i2p.py", line 12, in wget
    async with i2plib.Session(session_name, sam_address=sam_address, loop=loop):
  File "/usr/local/lib/python3.11/dist-packages/i2plib-0.0.14-py3.11.egg/i2plib/aiosam.py", line 198, in __aenter__
  File "/usr/local/lib/python3.11/dist-packages/i2plib-0.0.14-py3.11.egg/i2plib/aiosam.py", line 106, in create_session
  File "/usr/local/lib/python3.11/dist-packages/i2plib-0.0.14-py3.11.egg/i2plib/aiosam.py", line 28, in get_sam_socket
  File "/usr/lib/python3.11/asyncio/streams.py", line 48, in open_connection
    transport, _ = await loop.create_connection(
                         ^^^^^^^^^^^^^^^^^^^^^^^
TypeError: BaseEventLoop.create_connection() got an unexpected keyword argument 'loop'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions