iholston / lol-bot

An account leveling bot for League of Legends written in Python
MIT License
294 stars 49 forks source link

starting error #43

Closed viasbox closed 1 year ago

viasbox commented 1 year ago

Hello, I get an error when trying to start the bot. I made sure to have all the requirements from the txt file and added my normal python folder along with the scripts & libs folder to the system variables path. Also updated my install path, so I'm not sure what's wrong. This is the error message:

[2023-07-29 02:32:13,532] [INFO ] [launch_league ] Overwriting/creating game config [2023-07-29 02:32:13,534] [WARNING] [main ] Unexpected Error: Traceback (most recent call last): File "C:\Users\x\lol-bot\scripts\bot.py", line 38, in main launcher.launch_league() File "C:\Users\x\lol-bot\scripts\launcher.py", line 27, in launch_league shutil.copy2(LOCAL_GAME_CONFIG_PATH, LEAGUE_GAME_CONFIG_PATH) File "C:\Program Files\Python311\Lib\shutil.py", line 436, in copy2 copyfile(src, dst, follow_symlinks=follow_symlinks) File "C:\Program Files\Python311\Lib\shutil.py", line 258, in copyfile with open(dst, 'wb') as fdst: ^^^^^^^^^^^^^^^ OSError: [Errno 22] Invalid argument: 'D:\x0colders\Riot Games\League of Legends/Config/game.cfg'

C:\Users\x\lol-bot\scripts>pause

iholston commented 1 year ago

i believe you should change

D:\x0colders\Riot Games\League of Legends/Config/game.cfg

to

D:/x0colders/Riot Games/League of Legends/Config/game.cfg

viasbox commented 1 year ago

that was it, thank you!