iholston / lol-bot

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

2.30 KeyError: 'level' #212

Closed 909oce closed 8 months ago

909oce commented 8 months ago

Describe the bug Exits itself with error

Version 2.30

Log Files [15:12:05] [INFO ] Launching League [15:12:11] [INFO ] Launching League [15:12:17] [INFO ] Launching League [15:12:22] [INFO ] Launch Success [15:12:22] [INFO ] Closing riot client [15:12:31] [INFO ] Checking for Client Updates [15:12:31] [INFO ] Client is up to date [15:12:31] [INFO ] Overwriting game configs [15:12:31] [ERROR ] 'level' [15:12:31] [ERROR ] Traceback (most recent call last): File "lolbot\bot\client.py", line 69, in account_loop File "lolbot\bot\client.py", line 104, in leveling_loop File "lolbot\bot\client.py", line 316, in account_leveled KeyError: 'level'

[15:12:31] [ERROR ] Unknown Error. Exiting [15:13:34] [INFO ] Bot Successfully Terminated


Traceback (most recent call last): File "C:\Users\909\Desktop\bot\main.pyw", line 5, in from lolbot.view.main_window import MainWindow File "C:\Users\909\Desktop\bot\lolbot\view\main_window.py", line 10, in import dearpygui.dearpygui as dpg File "C:\Users\909\AppData\Local\Programs\Python\Python312\Lib\site-packages\dearpygui\dearpygui.py", line 22, in import dearpygui._dearpygui as internal_dpg ImportError: DLL load failed while importing _dearpygui: The specified module could not be found.

Additional context Everything has been fine until today, I reinstalled Windows and now I get these errors. I usually just run as python script from source but I'm getting a weird import error despite having all requirements, so I tried from .exe and I get the KeyError: 'level'.

Let me know if I'm missing something like a version of .net framework maybe?

iholston commented 8 months ago

to run it as a python script in the newly installed Windows, you are probably missing Microsoft C and C++ (MSVC) runtime libraries. If you didn't install them that should be the issue. Let me know.

909oce commented 8 months ago

That fixed it, thank you so much for the quick reply!