Fequme / Economy-bot-discord-v2

Экономический бот, написан на nextcord
MIT License
7 stars 1 forks source link

ошибочка #5

Open defencebomb opened 2 months ago

defencebomb commented 2 months ago

помогите пожалуйста Traceback (most recent call last): File "/storage/emulated/0/Download/eco/bot.py", line 2, in import nextcord File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/nextcord/init.py", line 42, in from .health_check import * File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/nextcord/health_check.py", line 3, in from pkg_resources import DistributionNotFound, get_distribution ModuleNotFoundError: No module named 'pkg_resources'

Crone720 commented 2 months ago

ModuleNotFoundError: No module named 'pkg_resources'

Fequme commented 2 months ago

pip install -U setuptools

defencebomb commented 2 months ago

pip install -U setuptools

теперь это Traceback (most recent call last): File "/storage/emulated/0/Download/eco/bot.py", line 64, in for filename in os.listdir(".\cogs"): ^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: '.\cogs'

defencebomb commented 2 months ago

теперь это Traceback (most recent call last): File "/storage/emulated/0/Download/eco/bot.py", line 64, in for filename in os.listdir(".\cogs"): ^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: '.\cogs'

Fequme commented 2 months ago

зайди в bot.py и поменяй "./cogs" на "cogs", может помочь

defencebomb commented 2 months ago

теперь это Traceback (most recent call last): File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/nextcord/ext/commands/bot.py", line 740, in _load_from_module_spec spec.loader.exec_module(lib) # type: ignore ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "/storage/emulated/0/Download/eco/cogs/delete.py", line 6, in from captcha.image import ImageCaptcha ModuleNotFoundError: No module named 'captcha'

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/storage/emulated/0/Download/eco/bot.py", line 66, in bot.load_extension(f"cogs.{filename[:-3]}") File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/nextcord/ext/commands/bot.py", line 862, in load_extension self._load_from_module_spec(spec, name, extras=extras) File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/nextcord/ext/commands/bot.py", line 743, in _load_from_module_spec raise errors.ExtensionFailed(key, e) from e nextcord.ext.commands.errors.ExtensionFailed: Extension 'cogs.delete' raised an error: ModuleNotFoundError: No module named 'captcha'

defencebomb commented 2 months ago

все установил

defencebomb commented 2 months ago

pandas баганый не хочет скачиваться