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

websockets.State does not exist below websockets 14, but realtime-py claims to work with a minimum version of 11. #279

Open
2 tasks done
Sandr0x00 opened this issue Feb 25, 2025 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Sandr0x00
Copy link
Contributor

Sandr0x00 commented Feb 25, 2025

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

Realtime is NOT working with websockets below 14.

7e9429f#diff-f53a023eedfa3fbf2925ec7dc76eecdc954ea94b7e47065393dbad519613dc89

This update added a check for websockets.State.OPEN while also setting websocket-version to websockets = ">=11,<15".

I had websockets 13.0, and State did not exist:

>>> websockets.__version__
'13.0'
>>> websockets.State
Traceback (most recent call last):
  File "<python-input-4>", line 1, in <module>
    websockets.State
  File "<redacted>/websockets/imports.py", line 92, in __getattr__
    raise AttributeError(f"module {package!r} has no attribute {name!r}")
AttributeError: module 'websockets' has no attribute 'State'

Which means: the minimum version of websockets which is supported is not 11, but 14.2.

>>> websockets.__version__
'14.2'
>>> websockets.State
<enum 'State'>

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Install websockets 13
  2. Try to use realtime-py

Expected behavior

I want realtime-py to at least complain at installation about dependency-inconsistencies and have them properly maintained.

@Sandr0x00 Sandr0x00 added the bug Something isn't working label Feb 25, 2025
@Sandr0x00 Sandr0x00 changed the title websockets.State does not exist below websockets 14, but realtime-py claims a minimum version of 11. websockets.State does not exist below websockets 14, but realtime-py claims to work with a minimum version of 11. Feb 25, 2025
@silentworks
Copy link
Contributor

Yeah there were breaking changes released in the last minor version, we are working to rectify this at the moment.

@silentworks silentworks self-assigned this Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants