sotolko / csgo-market-sniper

Bot that monitors desirable skins and will automatically buy them
GNU General Public License v3.0
96 stars 28 forks source link

Chrome opens and closes and gettings errors #29

Closed Stefanalf closed 1 year ago

Stefanalf commented 1 year ago

So I wanted to test the script but I've gotten a bit stuck. I've done pip install requirements. And edited the config file with this: skins:

And then started the program with python csgo-market-sniper.py. A Chrome window will open for a second and then it will close. This is the tracebacks I got

Loading config file... Traceback (most recent call last): File "C:\Users\stefa\Desktop\csgo-market-sniper-main\csgo-market-sniper.py", line 9, in url_info = load_config() ^^^^^^^^^^^^^ File "C:\Users\stefa\Desktop\csgo-market-sniper-main\config.py", line 7, in load_config config = yaml.safe_load(f) ^^^^^^^^^^^^^^^^^ File "C:\Users\stefa\AppData\Local\Programs\Python\Python312\Lib\site-packages\yaml__init__.py", line 125, in safe_load return load(stream, SafeLoader) ^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\stefa\AppData\Local\Programs\Python\Python312\Lib\site-packages\yaml__init__.py", line 81, in load return loader.get_single_data() ^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\stefa\AppData\Local\Programs\Python\Python312\Lib\site-packages\yaml\constructor.py", line 49, in get_single_data node = self.get_single_node() ^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\stefa\AppData\Local\Programs\Python\Python312\Lib\site-packages\yaml\composer.py", line 36, in get_single_node document = self.compose_document() ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\stefa\AppData\Local\Programs\Python\Python312\Lib\site-packages\yaml\composer.py", line 55, in compose_document node = self.compose_node(None, None) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\stefa\AppData\Local\Programs\Python\Python312\Lib\site-packages\yaml\composer.py", line 84, in compose_node node = self.compose_mapping_node(anchor) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\stefa\AppData\Local\Programs\Python\Python312\Lib\site-packages\yaml\composer.py", line 133, in compose_mapping_node item_value = self.compose_node(node, item_key) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\stefa\AppData\Local\Programs\Python\Python312\Lib\site-packages\yaml\composer.py", line 82, in compose_node node = self.compose_sequence_node(anchor) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\stefa\AppData\Local\Programs\Python\Python312\Lib\site-packages\yaml\composer.py", line 111, in compose_sequence_node node.value.append(self.compose_node(node, index)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\stefa\AppData\Local\Programs\Python\Python312\Lib\site-packages\yaml\composer.py", line 84, in compose_node node = self.compose_mapping_node(anchor) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\stefa\AppData\Local\Programs\Python\Python312\Lib\site-packages\yaml\composer.py", line 133, in compose_mapping_node item_value = self.compose_node(node, item_key) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\stefa\AppData\Local\Programs\Python\Python312\Lib\site-packages\yaml\composer.py", line 64, in compose_node if self.check_event(AliasEvent): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\stefa\AppData\Local\Programs\Python\Python312\Lib\site-packages\yaml\parser.py", line 98, in check_event self.current_event = self.state() ^^^^^^^^^^^^ File "C:\Users\stefa\AppData\Local\Programs\Python\Python312\Lib\site-packages\yaml\parser.py", line 449, in parse_block_mapping_value if not self.check_token(KeyToken, ValueToken, BlockEndToken): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\stefa\AppData\Local\Programs\Python\Python312\Lib\site-packages\yaml\scanner.py", line 115, in check_token while self.need_more_tokens(): ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\stefa\AppData\Local\Programs\Python\Python312\Lib\site-packages\yaml\scanner.py", line 152, in need_more_tokens self.stale_possible_simple_keys() File "C:\Users\stefa\AppData\Local\Programs\Python\Python312\Lib\site-packages\yaml\scanner.py", line 291, in stale_possible_simple_keys raise ScannerError("while scanning a simple key", key.mark, yaml.scanner.ScannerError: while scanning a simple key in "settings/config.yaml", line 8, column 5 could not find expected ':' in "settings/config.yaml", line 9, column 5 PS C:\Users\stefa\Desktop\csgo-market-sniper-main> python csgo-market-sniper.pypython csgo-market-sniper.py

v00d0079 commented 4 months ago

how did you fix this issue?