abayomi185/simple-pump-and-dump-bot

mapping values are not allowed here

Blake511 opened this issue · 16 comments

Traceback (most recent call last):
File "C:\Users\jonat\Desktop\simple-pump-and-dump-bot-master\simple-pump-and-dump-bot-master\src\bot-kucoin.py", line 43, in
api_keys = yaml.safe_load(secrets_file)
File "C:\Users\jonat\AppData\Local\Programs\Python\Python39\lib\site-packages\yaml_init_.py", line 162, in safe_load
return load(stream, SafeLoader)
File "C:\Users\jonat\AppData\Local\Programs\Python\Python39\lib\site-packages\yaml_init_.py", line 114, in load
return loader.get_single_data()
File "C:\Users\jonat\AppData\Local\Programs\Python\Python39\lib\site-packages\yaml\constructor.py", line 49, in get_single_data
node = self.get_single_node()
File "C:\Users\jonat\AppData\Local\Programs\Python\Python39\lib\site-packages\yaml\composer.py", line 36, in get_single_node
document = self.compose_document()
File "C:\Users\jonat\AppData\Local\Programs\Python\Python39\lib\site-packages\yaml\composer.py", line 58, in compose_document
self.get_event()
File "C:\Users\jonat\AppData\Local\Programs\Python\Python39\lib\site-packages\yaml\parser.py", line 118, in get_event
self.current_event = self.state()
File "C:\Users\jonat\AppData\Local\Programs\Python\Python39\lib\site-packages\yaml\parser.py", line 193, in parse_document_end
token = self.peek_token()
File "C:\Users\jonat\AppData\Local\Programs\Python\Python39\lib\site-packages\yaml\scanner.py", line 129, in peek_token
self.fetch_more_tokens()
File "C:\Users\jonat\AppData\Local\Programs\Python\Python39\lib\site-packages\yaml\scanner.py", line 223, in fetch_more_tokens
return self.fetch_value()
File "C:\Users\jonat\AppData\Local\Programs\Python\Python39\lib\site-packages\yaml\scanner.py", line 577, in fetch_value
raise ScannerError(None, None,
yaml.scanner.ScannerError: mapping values are not allowed here
in "./secrets-kucoin.yaml", line 5, column 17

Hey, can you confirm you have a space in front of your colons?

Also, you may want to consider checking google or stack overflow for a solutions first. This is not an issue with the bot.

Unbenannt
I have it like this

The error shows the issue is in your secrets.yaml file

Your secrets.yaml file should look like this

Screenshot 2021-05-14 at 15 20 22

Okay, I've changed that now and it works, but when I start the bot and select which trade configuration I want, it crashes

Please send the error message

                     __              __          __ 

____________ ______ / /_____ / /_ ____ / /_
/ / / / / / __ / / __ _/ __ / __ / /
/ /
/ / / /
/ / /
/ / /
/ // /_____/ // / // / /
_// _, / ./_/_/ /./_/_/
/
__//

�[32m-- Kucoin Edition --
�[39m
'NoneType' object has no attribute 'flush'
Traceback (most recent call last):
File "C:\Users\jonat\AppData\Local\Programs\Python\Python39\lib\site-packages\PyInquirer\prompt.py", line 69, in prompt
answer = run_application(
File "C:\Users\jonat\AppData\Local\Programs\Python\Python39\lib\site-packages\prompt_toolkit\shortcuts.py", line 576, in run_application
output=create_output(true_color=true_color))
File "C:\Users\jonat\AppData\Local\Programs\Python\Python39\lib\site-packages\prompt_toolkit\shortcuts.py", line 118, in create_output
return Win32Output(stdout)
File "C:\Users\jonat\AppData\Local\Programs\Python\Python39\lib\site-packages\prompt_toolkit\terminal\win32_output.py", line 80, in init
info = self.get_win32_screen_buffer_info()
File "C:\Users\jonat\AppData\Local\Programs\Python\Python39\lib\site-packages\prompt_toolkit\terminal\win32_output.py", line 162, in get_win32_screen_buffer_info
self.flush()
File "C:\Users\jonat\AppData\Local\Programs\Python\Python39\lib\site-packages\prompt_toolkit\terminal\win32_output.py", line 288, in flush
self.stdout.flush()
AttributeError: 'NoneType' object has no attribute 'flush'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\jonat\Desktop\simple-pump-and-dump-bot-master\simple-pump-and-dump-bot-master\src\bot-kucoin.py", line 277, in
answer1 = Inquirer.prompt(question1)
File "C:\Users\jonat\AppData\Local\Programs\Python\Python39\lib\site-packages\PyInquirer\prompt.py", line 88, in prompt
raise ValueError('No question type '%s'' % type)
ValueError: No question type 'list'

This seems to occur a lot for Windows users. Are you running the bot in the command line?

I would strongly recommend using the terminal in Windows Sub-system for Linux (WSL)

I will try using the terminal in WSL

I have WSL now. Could you please explain to me what i need to do now?

When you have your Linux terminal open, you can follow the instructions on the readme from the start or navigate to the directory where you have the bot and install the Python and the required packages.

Okay, but i dont understand how i can run the bot with wsl now?

Please check online for tutorials. You run it like you would on the command line in windows. It effectively works the same. Have you gotten Ubuntu or another Linux version from the Microsoft Store?

I have Ubuntu