-
|
Using Python 3.14.0 in a virtual environment, I'm unable to use Assuming this meant Am I missing something obvious? Maybe 3.14 is not yet supported? EDIT 1: I tested on Python 3.8.10 and I can import. Soooo probably a 3.14 issue? EDIT 2: Adding full stack trace: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
|
How are you installing discord.py? |
Beta Was this translation helpful? Give feedback.
-
|
You're likely encountering aio-libs/aiohttp#11603, an issue with aiohttp (a dependency of discord.py) that should be fixed in its next release. |
Beta Was this translation helpful? Give feedback.
-
|
If you built python3.14 yourself, You should probably rebuild python with zstandard stupport. I wouldn't expect most developers to guard for it existing. It was more surprising to see aiohttp and discord.py both add a guard here rather than say they require python to be built with all relevent optional modules, as this is pretty much the same as guarding an import to zlib, which is also optional in theory, yet all major prebuilt python redistributions include both it and zstandard. Python's own Ccore developers just expect these to be present outside of exceptional cases, because they are only optional so that python can still be used in those exceptional cases, not with the expectation that they will be absent in general use. from ongoing discussion of how optional module support should be documented in python:
while the comment mentions zlib by name, the sentiment as a whole is that at distributions missing this are not for general use. |
Beta Was this translation helpful? Give feedback.
Yeah, you're encountering aio-libs/aiohttp#11603.
I would just wait until the next aiohttp release. If you really need it now, the fix is already in the master branch of aiohttp, with aio-libs/aiohttp#11611 / aio-libs/aiohttp@4929094.