HamsterKombatBot icon indicating copy to clipboard operation
HamsterKombatBot copied to clipboard

error

Open Tomash55557777 opened this issue 1 year ago • 0 comments

(venv) C:\Users\blab4\HamsterKombatBot>python main.py Traceback (most recent call last): File "C:\Users\blab4\HamsterKombatBot\venv\Lib\site-packages\pydantic_settings\sources.py", line 375, in call field_value = self.prepare_field_value(field_name, field, field_value, value_is_complex) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\blab4\HamsterKombatBot\venv\Lib\site-packages\pydantic_settings\sources.py", line 577, in prepare_field_value raise e File "C:\Users\blab4\HamsterKombatBot\venv\Lib\site-packages\pydantic_settings\sources.py", line 574, in prepare_field_value value = self.decode_complex_value(field_name, field, value) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\blab4\HamsterKombatBot\venv\Lib\site-packages\pydantic_settings\sources.py", line 187, in decode_complex_value return json.loads(value) ^^^^^^^^^^^^^^^^^ File "C:\Users\blab4\AppData\Local\Programs\Python\Python312\Lib\json_init_.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\blab4\AppData\Local\Programs\Python\Python312\Lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\blab4\AppData\Local\Programs\Python\Python312\Lib\json\decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

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

Traceback (most recent call last): File "C:\Users\blab4\HamsterKombatBot\main.py", line 4, in from bot.utils.launcher import process File "C:\Users\blab4\HamsterKombatBot\bot\utils_init_.py", line 4, in
from . import launcher File "C:\Users\blab4\HamsterKombatBot\bot\utils\launcher.py", line 7, in
from bot.config import settings File "C:\Users\blab4\HamsterKombatBot\bot\config_init_.py", line 1, in
from .config import settings File "C:\Users\blab4\HamsterKombatBot\bot\config\config.py", line 36, in
settings = Settings() ^^^^^^^^^^ File "C:\Users\blab4\HamsterKombatBot\venv\Lib\site-packages\pydantic_settings\main.py", line 141, in init **pydantic_self._settings_build_values( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\blab4\HamsterKombatBot\venv\Lib\site-packages\pydantic_settings\main.py", line 311, in _settings_build_values return deep_update(*reversed([source() for source in sources])) ^^^^^^^^ File "C:\Users\blab4\HamsterKombatBot\venv\Lib\site-packages\pydantic_settings\sources.py", line 377, in call raise SettingsError( pydantic_settings.sources.SettingsError: error parsing value for field "RANDOM_DELAY_IN_RUN" from source "EnvSettingsSource"

(venv) C:\Users\blab4\HamsterKombatBot>main.py
Traceback (most recent call last): File "C:\Users\blab4\HamsterKombatBot\venv\Lib\site-packages\pydantic_settings\sources.py", line 375, in call field_value = self.prepare_field_value(field_name, field, field_value, value_is_complex) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\blab4\HamsterKombatBot\venv\Lib\site-packages\pydantic_settings\sources.py", line 577, in prepare_field_value raise e File "C:\Users\blab4\HamsterKombatBot\venv\Lib\site-packages\pydantic_settings\sources.py", line 574, in prepare_field_value value = self.decode_complex_value(field_name, field, value) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\blab4\HamsterKombatBot\venv\Lib\site-packages\pydantic_settings\sources.py", line 187, in decode_complex_value return json.loads(value) ^^^^^^^^^^^^^^^^^ File "C:\Users\blab4\AppData\Local\Programs\Python\Python312\Lib\json_init_.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\blab4\AppData\Local\Programs\Python\Python312\Lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\blab4\AppData\Local\Programs\Python\Python312\Lib\json\decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

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

Traceback (most recent call last): File "C:\Users\blab4\HamsterKombatBot\main.py", line 4, in from bot.utils.launcher import process File "C:\Users\blab4\HamsterKombatBot\bot\utils_init_.py", line 4, in
from . import launcher File "C:\Users\blab4\HamsterKombatBot\bot\utils\launcher.py", line 7, in
from bot.config import settings File "C:\Users\blab4\HamsterKombatBot\bot\config_init_.py", line 1, in
from .config import settings File "C:\Users\blab4\HamsterKombatBot\bot\config\config.py", line 36, in
settings = Settings() ^^^^^^^^^^ File "C:\Users\blab4\HamsterKombatBot\venv\Lib\site-packages\pydantic_settings\main.py", line 141, in init **pydantic_self._settings_build_values( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\blab4\HamsterKombatBot\venv\Lib\site-packages\pydantic_settings\main.py", line 311, in _settings_build_values return deep_update(*reversed([source() for source in sources])) ^^^^^^^^ File "C:\Users\blab4\HamsterKombatBot\venv\Lib\site-packages\pydantic_settings\sources.py", line 377, in call raise SettingsError( pydantic_settings.sources.SettingsError: error parsing value for field "RANDOM_DELAY_IN_RUN" from source "EnvSettingsSource"

Tomash55557777 avatar Jul 25 '24 21:07 Tomash55557777