Closed GasmiAbdou closed 7 months ago
Change cogs\event.py line12 -> from src.log import setup_logger
@FuseFairy Traceback (most recent call last):
File "c:\Users\MSI-PC\Downloads\DiscordBot-EdgeGPT-main\DiscordBot-EdgeGPT-main\bot.py", line 7, in
Strange, because src\log.py exists
support server plz @FuseFairy
@FuseFairy Traceback (most recent call last): File "c:\Users\MSI-PC\Downloads\DiscordBot-EdgeGPT-main\DiscordBot-EdgeGPT-main\bot.py", line 7, in from cogs.event import set_chatbot File "c:\Users\MSI-PC\Downloads\DiscordBot-EdgeGPT-main\DiscordBot-EdgeGPT-main\cogs\event.py", line 12, in from src.log import setup_logger ModuleNotFoundError: No module named 'src.log' stilll
This is not a problem with the code, but with your environment setup. At least I can confirm that it can run normally on localhost or fly.io
@GasmiAbdou Try using Docker to run the bot
@FuseFairy try to run it on replit and see the issue there s a bug !! broo
Create an empty __init__.py
file in the src folder and it will run fine.
the issue still !! plase can you send me that replit project just to fork it !
used the repl above ^ and got this error, what should i do? please reply asap!
/nix/store/8w6mm5q1n7i7cs1933im5vkbgvjlglfn-python3-3.10.13/bin/python3: can't open file '/home/runner/DiscordBot-EdgeGPT/main.py': [Errno 2] No such file or directory
i installed all requirements and when i did python bot.py i got this in VSC :
PS C:\Users\MSI-PC\Downloads\DiscordBot-EdgeGPT-main\DiscordBot-EdgeGPT-main> c:; cd 'c:\Users\MSI-PC\Downloads\DiscordBot-EdgeGPT-main\DiscordBot-EdgeGPT-main'; & 'C:\Users\MSI-PC\AppData\Local\Programs\Python\Python310\python.exe' 'c:\Users\MSI-PC.vscode\extensions\ms-python.python-2023.22.1\pythonFiles\lib\python\debugpy\adapter/../..\debugpy\launcher' '56240' '--' 'c:\Users\MSI-PC\Downloads\DiscordBot-EdgeGPT-main\DiscordBot-EdgeGPT-main\bot.py' Traceback (most recent call last): File "c:\Users\MSI-PC\Downloads\DiscordBot-EdgeGPT-main\DiscordBot-EdgeGPT-main\bot.py", line 7, in
from cogs.event import set_chatbot
File "c:\Users\MSI-PC\Downloads\DiscordBot-EdgeGPT-main\DiscordBot-EdgeGPT-main\cogs\event.py", line 12, in
from src import log
ImportError: cannot import name 'log' from 'src' (C:\Users\MSI-PC\AppData\Local\Programs\Python\Python310\lib\site-packages\src__init__.py)
PS C:\Users\MSI-PC\Downloads\DiscordBot-EdgeGPT-main\DiscordBot-EdgeGPT-main>