Error when runing code discord.ext import app_commands

please someone help me, last time i used it just fine, but now when i try to run my code again it wont run. here is the error

Traceback (most recent call last):
  File "/home/runner/discord-bot/main.py", line 5, in <module>
    from discord.ext import app_commands
ImportError: cannot import name 'app_commands' from 'discord.ext' (unknown location)
An error occurred during configuration: option use-feature: invalid choice: 'content-addressable-pool' (choose from 'fast-deps', 'truststore', 'no-binary-enable-wheel-cache')
from discord.ext import app_commands

First, try this:

Then reload the shell.

Then, you need to fix your import. Possibly, app_commands is no longer part of discord.ext, it is just discord.app_commands?

from discord import app_commands
1 Like

There is no that path on my replit dir, but i create new one. And then i tryed to run it again in the shell, but nothing hapened

Remove the path you created, just try the other part:

from discord import app_commands