Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: timeout() got an unexpected keyword argument 'loop' #5

Closed
jdittr opened this issue Nov 28, 2021 · 2 comments
Closed

TypeError: timeout() got an unexpected keyword argument 'loop' #5

jdittr opened this issue Nov 28, 2021 · 2 comments

Comments

@jdittr
Copy link

jdittr commented Nov 28, 2021

./test_asyncio.py /dev/ttyUSB0

Traceback (most recent call last):
File "./test_asyncio.py", line 69, in
main(argv[1])
File "./test_asyncio.py", line 59, in main
loop.run_until_complete(proto.connect(loop=loop))
File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "/usr/local/lib/python3.8/dist-packages/pysml-0.0.5-py3.8.egg/sml/asyncio.py", line 126, in connect
File "/usr/local/lib/python3.8/dist-packages/pysml-0.0.5-py3.8.egg/sml/asyncio.py", line 107, in _reconnect
TypeError: timeout() got an unexpected keyword argument 'loop'

The problem here seem to be, that /usr/local/lib/python3.8/dist-packages/async_timeout-4.0.1-py3.8.egg does not want to be provided with the loop anymore. It'll detect the current running one. So, I was able to fix the issue by changing the asyncio.py in line 107 to not provide the loop anymore.

@mh7d
Copy link
Contributor

mh7d commented Jan 2, 2022

I tried to fix this issue in PR #6

@mtdcr
Copy link
Owner

mtdcr commented Jan 4, 2022

Fixed by #6. Thank you!

@mtdcr mtdcr closed this as completed Jan 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants