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

Python 3.10+ Support. #13

Closed
pauseframes opened this issue Jan 25, 2022 · 3 comments
Closed

Python 3.10+ Support. #13

pauseframes opened this issue Jan 25, 2022 · 3 comments

Comments

@pauseframes
Copy link

  • Webex Bot version: latest
  • Python version: 3.10.0
  • Operating System: MacOS 11.2.3

Description

Running the bot doesn't work in python 3.10.0. It seems to be an issue with websockets/asyncio per the traceback logs.
It looks like it was fixed in python-websockets/websockets#916

Anyway this library can be updated to support 3.10+?

What I Did

python3.10 bot.py


/lib/python3.10/site-packages/websockets/protocol.py", line 235, in __init__
    self._drain_lock = asyncio.Lock(
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/asyncio/locks.py", line 77, in __init__
    super().__init__(loop=loop)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/asyncio/mixins.py", line 17, in __init__
    raise TypeError(
TypeError: As of 3.10, the *loop* parameter was removed from Lock() since it is no longer necessary

@pauseframes
Copy link
Author

To add - i tried to use the latest version on asyncio and websockets and still received the TypeError.

@pauseframes
Copy link
Author

Error when upgrading websockets to support python 3.10.0:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
webex-bot 0.2.8 requires websockets==8.1, but you have websockets 10.1 which is incompatible.

fbradyirl pushed a commit that referenced this issue Apr 7, 2022
* Fix for [#13][i13] - Update websockets lib to latest.
@fbradyirl
Copy link
Owner

Fixed in v0.2.21

gconklin pushed a commit to gconklin/webex_bot that referenced this issue Sep 13, 2023
* Fix for [fbradyirl#13][i13] - Update websockets lib to latest.
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

2 participants