Closed EpicBirb closed 2 years ago
also.
without using import discord_ui
it will have the NoModuleFoundError because of line 29
Can u try to remove the .client after discord_ui?
so: from discord_ui import UI
seems like imports in nextcord are a bit different, I'll fix that, sorry for the trouble
alrighty, that issue should be fixed in v5.1.2, thanks for reporting and sorry for the wait.
I'll leave this issue open in case the issue should still exsist or you still got any problems, if it's fixed for you, just close the issue :)
Can u try to remove the .client after discord_ui? so:
from discord_ui import UI
Failed to import discord_ui on 5.1.2
More context for above screenshot:
can you import discord
? A discord
package sould be installed together with nextcord for migration support ('alias'). It seems that the discord package is not existing ('discord' (unknown location)
)
can you try a simple import and tell me the output?
import discord
from discord import __version__
can you import
discord
? Adiscord
package sould be installed together with nextcord for migration support ('alias'). It seems that the discord package is not existing ('discord' (unknown location)
)can you try a simple import and tell me the output?
import discord from discord import __version__
huh that's weird. Can you try to reinstall nextcord? I tried reproducing that and in my case both imports didn't raise any exceptions.
py -3.10 -m pip uninstall nextcord && py -3.10 -m pip install nextcord
My ouput was:
Python 3.10.0 (tags/v3.10.0:b494f59, Oct 4 2021, 19:00:18) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import discord
>>> from discord import __version__
>>>
Btw thank you very much for your patience!
It works perfectly now, thank you :D
VS code:![image](https://user-images.githubusercontent.com/68750348/145481377-0380d83f-cc72-4310-ba63-115903b20bdc.png)
Python interpreter:![image](https://user-images.githubusercontent.com/68750348/145481595-82d2a145-ada4-47a5-bdcd-33fa9b27e68b.png)