Closed theAbdoSabbagh closed 2 years ago
Would be nice if you could codeblock your errors next time but no issue
ImportError: cannot import name 'ui' from 'discord' (C:\Users\aboud\AppData\Local\Programs\Python\Python310\lib\site-packages\discord_init_.py)
Jishaku is meant for discord.py, after discord.py updated to have Views, so did Jishaku, the version of Jishaku you're using is meant for discord.py 2.0, which has discord.ui
and other classes.
Please try using an older version of Jishaku (one that's meant to be used with discord.py 1.7.3) and let us know if it works.
Indeed it does not. This is not a lib bug.
I might maintain a fork of it eventually (the fork I have right now is not for selfbots).
Summary
title
Reproduction Steps
load jishaku as a cog and import something from it and run your bot
Code
Expected Results
jishaku should work
Actual Results
Traceback (most recent call last): File "C:\Users\aboud\Desktop\My files\Other\Discord Projects\z Private\My Alt\alt.py", line 6, in
from jishaku.functools import executor_function
File "C:\Users\aboud\AppData\Local\Programs\Python\Python310\lib\site-packages\jishaku__init.py", line 15, in
from jishaku.cog import * # noqa: F401
File "C:\Users\aboud\AppData\Local\Programs\Python\Python310\lib\site-packages\jishaku\cog.py", line 16, in
from jishaku.features.filesystem import FilesystemFeature
File "C:\Users\aboud\AppData\Local\Programs\Python\Python310\lib\site-packages\jishaku\features\filesystem.py", line 26, in
from jishaku.paginators import PaginatorInterface, WrappedFilePaginator, use_file_check
File "C:\Users\aboud\AppData\Local\Programs\Python\Python310\lib\site-packages\jishaku\paginators.py", line 23, in
from jishaku.shim.paginator_200 import PaginatorEmbedInterface, PaginatorInterface
File "C:\Users\aboud\AppData\Local\Programs\Python\Python310\lib\site-packages\jishaku\shim\paginator_200.py", line 17, in
from discord import ui
ImportError: cannot import name 'ui' from 'discord' (C:\Users\aboud\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\ init__.py)
System Information
doesnt work
Checklist
Additional Information
No response