[Help] ModuleNotFoundError
for discord.app_commands
with py-cord 2.6.1
#2848
-
Hello, I'm encountering a Error DetailsHere is my import line: from discord.app_commands import CommandTree, Group, command Here is the full traceback I receive: c:\Users\krazydev\AppData\Local\Programs\Python\Python313\python.exe
Traceback (most recent call last):
File "c:\Users\krazydev\Documents\BOT\KrazyDev.py", line 11, in <module>
from discord.app_commands import CommandTree, Group, command
ModuleNotFoundError: No module named 'discord.app_commands' Troubleshooting Steps I've Taken
Name: py-cord
Version: 2.6.1
Summary: A Python wrapper for the Discord API
c:\Users\krazydev\AppData\Local\Programs\Python\Python313\python.exe -m pip uninstall discord.py py-cord -y
Despite all these steps, the Additional Information
import sys
print(sys.executable)
import discord, json,gzip, os, asyncio, time, os, random, datetime, asyncio, psutil, re, aiohttp, sys, signal, ast, requests, functools, base64, codecs, aiohttp, io, openai, platform, shutil, GPUtil, traceback, pvporcupine, queue, sqlite3, uuid, math, logging, pytz
from discord import Member, SelectOption, Permissions, Embed, Color, ButtonStyle, Embed, Color, ButtonStyle, ui, Interaction, Role, VerificationLevel, NotificationLevel, ContentFilter, SystemChannelFlags, Status, ActivityType, Activity, Streaming, Game, PartialEmoji
from discord.ext import commands, tasks
from discord import app_commands
import matplotlib.pyplot as plt
from discord.enums import VerificationLevel, NotificationLevel, ContentFilter
from googletrans import Translator
from openai import OpenAI
from collections import defaultdict, deque
from typing import Optional, List, Any, Tuple, Dict, Callable, Literal, Union
from blagues_api import BlaguesAPI
from discord.ui import Button, View, Modal, Select
from PIL import Image, ImageDraw, ImageFont
from io import BytesIO
from datetime import datetime, timezone, timedelta
from functools import partial, wraps
from deep_translator import GoogleTranslator
import speech_recognition as sr
import numpy as np
from vosk import Model, KaldiRecognizer
from together import Together
from gtts import gTTS
from discord.ext.commands import MemberConverter
from discord.ui import Modal, TextInput
from transformers import pipeline Any help would be greatly appreciated. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
That is discord.py not py-cord |
Beta Was this translation helpful? Give feedback.
That is discord.py not py-cord