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

Getting an error when running this on python 3.10 #106

Open
blindndangerous opened this issue Apr 22, 2022 · 3 comments
Open

Getting an error when running this on python 3.10 #106

blindndangerous opened this issue Apr 22, 2022 · 3 comments

Comments

@blindndangerous
Copy link

I just tried to run this on python 3.10, and get the following error.
[2022-04-22 17:20:07,973] INFO Using Password version 2.1
Traceback (most recent call last):
File "/home/stormux/Roomba980-Python/roomba/roomba.py", line 2402, in
main()
File "/home/stormux/Roomba980-Python/roomba/roomba_direct.py", line 405, in main
myroomba = Roomba(addr,
File "/home/stormux/Roomba980-Python/roomba/roomba.py", line 447, in init
self.is_connected = asyncio.Event(loop=self.loop)
File "/usr/lib/python3.10/asyncio/locks.py", line 168, in init
super().init(loop=loop)
File "/usr/lib/python3.10/asyncio/mixins.py", line 17, in init
raise TypeError(
TypeError: As of 3.10, the loop parameter was removed from Event() since it is no longer necessary

@NickWaterton
Copy link
Owner

Well, as it says, the loop parameter was removed in Python 3.10.

As Python 3.10 didn't exist when the code was written, it's not surprising that there are some incompatibilities.

Solution is to use Python 3.8 for now.

@shamitb
Copy link

shamitb commented Sep 7, 2022

Worked with Python 3.8

@NickWaterton
Copy link
Owner

I did fix the code so it works on Python 3.10 now.

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