pyscript icon indicating copy to clipboard operation
pyscript copied to clipboard

Exception in </config/pyscript/main.py> line 10: from discord.ext import commands ^ AttributeError: module 'discord.ext' has no attribute 'commands'

Open JohnoCZ opened this issue 2 years ago • 1 comments

Exception in </config/pyscript/main.py> line 10: from discord.ext import commands ^ AttributeError: module 'discord.ext' has no attribute 'commands'

Any tips how to run discord bot on a home assistant? On the computer in PyCharm was everything working correctly.

JohnoCZ avatar Sep 29 '21 14:09 JohnoCZ

Pyscript does have known problems loading certain modules. If you are having problems loading a module directly from pyscript, try doing it from a native python module (see the docs), and then calling that module from pyscript.

craigbarratt avatar Sep 29 '21 16:09 craigbarratt

@Johno95CZ could you please update or close the issue? Thank you

ALERTua avatar Sep 21 '23 09:09 ALERTua