Python | Discord>Roblox ban system - Cannot import name from

:wave:| Hello Cookie Tech community!

I’m currently making a Discord>Roblox ban system using Trello

I’m not sure if anyone can help me with these errors!

Thanks,
Aspect


image

This is an issue with importing trello, in your code you import trello and them from the module trello you specifically import the “TrelloClient”.

Here is what you should do:

  • #1 Remove the line where you just do import trello, as you’re not using it.
  • #2 Run pip show trello

Then send the output from #2, thanks!

image

Ok, I think you’ve got the correct code, but you got the wrong module installed. Try uninstalling that module:

pip uninstall trello

Following this install “py-trello”:

pip install py-trello

image

client = commands.Bot(command_prefix=prefix)

Great, your trello issue is now resolved, this is an issue to do with dsicord.py. I would make the title to this post (E.g: “Issue with py trello (Error shortname)” ) more specific and then mark the post above as solution.

Make a new post for that issue.

This topic was automatically closed after 7 days. New replies are no longer allowed.