Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File not found #19

Closed
bot5995 opened this issue May 30, 2023 · 5 comments
Closed

File not found #19

bot5995 opened this issue May 30, 2023 · 5 comments

Comments

@bot5995
Copy link

bot5995 commented May 30, 2023

I have some issues with the launching file : I have installed python 3.10 and used the installer file but after using the launcher, it gets me to this error.

C:\Users\daxer\OneDrive\Bureau\lol-bot-main\scripts>python bot.py
Traceback (most recent call last):
File "C:\Users\daxer\OneDrive\Bureau\lol-bot-main\scripts\bot.py", line 58, in
main()
File "C:\Users\daxer\OneDrive\Bureau\lol-bot-main\scripts\bot.py", line 13, in main
logging.basicConfig(
File "C:\Users\daxer\AppData\Local\Programs\Python\Python310\lib\logging_init_.py", line 2031, in basicConfig
h = FileHandler(filename, mode,
File "C:\Users\daxer\AppData\Local\Programs\Python\Python310\lib\logging_init_.py", line 1167, in init
StreamHandler.init(self, self.open())
File "C:\Users\daxer\AppData\Local\Programs\Python\Python310\lib\logging_init
.py", line 1197, in _open
return open_func(self.baseFilename, self.mode,
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\daxer\Desktop\log.txt'

C:\Users\daxer\OneDrive\Bureau\lol-bot-main\scripts>pause

(Sorry if its an obvious error, i dont know anything about python)

@iholston
Copy link
Owner

No worries, do you know what the path to your Desktop is ?

@bot5995
Copy link
Author

bot5995 commented May 30, 2023

Oh, for some reason my desktop folder was moved to OneDrive. The path is : C:\Users\daxer\Bureau\
But I actually have no log.txt appearing in it

@iholston
Copy link
Owner

Yea so basically the logger wants to make a file on your desktop at 'C:\Users\daxer\Desktop\log.txt' but since that path doesn't exist it throws an error. You can either set ur Desktop folder back to normal or comment out line 14 in bot.py and it should work fine. If neither works let me know.

@bot5995
Copy link
Author

bot5995 commented May 30, 2023

Everything is working ! I commented out the line and I just did a game , everything seems to work fine :D Thank you so much ! Have a great night

@iholston
Copy link
Owner

Np!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants