abayomi185 / simple-pump-and-dump-bot

Simple pump-and-dump bot for Binance and Kucoin Cryptocurrency Exchange
Apache License 2.0
78 stars 21 forks source link

mapping values are not allowed here #13

Closed Blake511 closed 3 years ago

Blake511 commented 3 years ago

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

abayomi185 commented 3 years ago

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

abayomi185 commented 3 years ago

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

Blake511 commented 3 years ago

Unbenannt I have it like this

abayomi185 commented 3 years ago

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

Blake511 commented 3 years ago

Unbenannt

abayomi185 commented 3 years ago

Your secrets.yaml file should look like this

Screenshot 2021-05-14 at 15 20 22

Blake511 commented 3 years ago

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

abayomi185 commented 3 years ago

Please send the error message

Blake511 commented 3 years ago
                     __              __          __ 

____ __ / / / / / /_ / / / / / / \/ / __/ \/ \/ / / /_/ / / // / // / // // // // / // / /_
_// _, / ._/_/____/ /./__/__/
/____/
/

-- Kucoin Edition --  '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'

abayomi185 commented 3 years ago

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)

Blake511 commented 3 years ago

I will try using the terminal in WSL

Blake511 commented 3 years ago

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

abayomi185 commented 3 years ago

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.

Blake511 commented 3 years ago

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

abayomi185 commented 3 years ago

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?

Blake511 commented 3 years ago

I have Ubuntu