-
Notifications
You must be signed in to change notification settings - Fork 185
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
[BUG] Class Intents
received an invalid and unexpected value (Python 3.12.3)
#1657
Comments
The temporary workaround I am using for now is switching back to Python 3.11 |
Intents
received an invalid and unexpected value (Python 3.12)Intents
received an invalid and unexpected value (Python 3.12.3)
I put a traceback on it Traceback (most recent call last):
File "D:\Scratch\Documents\Git\June\Lib\site-packages\interactions\models\discord\enums.py", line 112, in __call__
return super().__call__(int_value, names, module=module, qualname=qualname, type=type, start=start)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\...\AppData\Local\Programs\Python\Python312\Lib\enum.py", line 757, in __call__
return cls.__new__(cls, value)
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\...\AppData\Local\Programs\Python\Python312\Lib\enum.py", line 1179, in __new__
raise exc
File "C:\Users\...\AppData\Local\Programs\Python\Python312\Lib\enum.py", line 1156, in __new__
result = cls._missing_(value)
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\...\AppData\Local\Programs\Python\Python312\Lib\enum.py", line 1422, in _missing_
raise ValueError(
ValueError: (0, None) is not a valid Intents
Class `Intents` received an invalid and unexpected value `0`, a new enum item will be created to represent this value. Please update interactions.py or report this issue on GitHub - https://github.com/interactions-py/interactions.py/issues |
There's some migration issues with using Python 3.12.x, I suggest working with 3.11.x for now. I have also found problems on my end using the newer version |
This seems to be an issue with 3.12.3 specifically. We're looking into it. |
Reproduced on 3.12.3, elevating issue |
Will be fixed by #1658. Use Python 3.12.2 or a 3.11 version in the meantime. |
Fixed by #1659. |
Library Version
5.11.0
Describe the Bug
Since yesterday, my console when running the bot is filled with these messages.
I am using Python 3.12.3 on MacOS 14.4.1
Class
Intents
received an invalid and unexpected value33026
, a new enum item will be created to represent this value. Please update interactions.py or report this issue on GitHub - https://github.com/interactions-py/interactions.py/issuesSteps to Reproduce
Expected Results
The bot should function normally and my console isn't polluted with all these errors
Minimal Reproducible Code
No response
Traceback
Checklist
Additional Information
No response
The text was updated successfully, but these errors were encountered: