beeb / pancaketrade

Limit orders for PancakeSwap
GNU General Public License v3.0
200 stars 92 forks source link

Error while running "poetry run trade" #49

Closed DjdjHacks closed 2 years ago

DjdjHacks commented 2 years ago

I'm getting this error on running poetry run trade.

2021-11-14 13:50:17 INFO |Bye! Traceback (most recent call last): File "", line 1, in File "C:\Users\HACKER\Desktop\beeb-pancaketrade-558a540.venv\lib\site-packages\click\core.py", line 829, in call return self.main(args, kwargs) File "C:\Users\HACKER\Desktop\beeb-pancaketrade-558a540.venv\lib\site-packages\click\core.py", line 782, in main rv = self.invoke(ctx) File "C:\Users\HACKER\Desktop\beeb-pancaketrade-558a540.venv\lib\site-packages\click\core.py", line 1066, in invoke return ctx.invoke(self.callback, ctx.params) File "C:\Users\HACKER\Desktop\beeb-pancaketrade-558a540.venv\lib\site-packages\click\core.py", line 610, in invoke return callback(args, **kwargs) File "C:\Users\HACKER\Desktop\beeb-pancaketrade-558a540\pancaketrade\trade.py", line 28, in main config = read_config(config_file) File "C:\Users\HACKER\Desktop\beeb-pancaketrade-558a540\pancaketrade\utils\config.py", line 82, in read_config data = yamale.make_data(config_file_path) File "C:\Users\HACKER\Desktop\beeb-pancaketrade-558a540.venv\lib\site-packages\yamale\yamale.py", line 29, in make_data raw_data = readers.parse_yaml(path, parser, content=content) File "C:\Users\HACKER\Desktop\beeb-pancaketrade-558a540.venv\lib\site-packages\yamale\readers\yaml_reader.py", line 35, in parse_yaml return parse(f) File "C:\Users\HACKER\Desktop\beeb-pancaketrade-558a540.venv\lib\site-packages\yamale\readers\yaml_reader.py", line 11, in _pyyaml return list(yaml.load_all(f, Loader=Loader)) File "C:\Users\HACKER\Desktop\beeb-pancaketrade-558a540.venv\lib\site-packages\yaml__init__.py", line 130, in load_all yield loader.get_data() File "C:\Users\HACKER\Desktop\beeb-pancaketrade-558a540.venv\lib\site-packages\yaml\constructor.py", line 45, in get_data return self.construct_document(self.get_node()) File "yaml_yaml.pyx", line 699, in yaml._yaml.CParser.get_node File "yaml_yaml.pyx", line 725, in yaml._yaml.CParser._compose_document File "yaml_yaml.pyx", line 776, in yaml._yaml.CParser._compose_node File "yaml_yaml.pyx", line 892, in yaml._yaml.CParser._compose_mapping_node File "yaml_yaml.pyx", line 905, in yaml._yaml.CParser._parse_next_event yaml.scanner.ScannerError: while scanning a simple key in "user_data\config.yml", line 6, column 1 could not find expected ':' in "user_data\config.yml", line 7, column 17

Can you clarify what's this??? image

beeb commented 2 years ago

Did you follow all instructions in the Readme, installed the required packages with poetry install and wrote your config file? what is the content of your config file? do no publish any sensitive information of course.

DjdjHacks commented 2 years ago

Did you follow all instructions in the Readme, installed the required packages with poetry install and wrote your config file? what is the content of your config file? do no publish any sensitive information of course. config.txt

beeb commented 2 years ago

Thanks. The file should be named config.yml as explained in the docs. I don't know if you have any information on line 6 next to secrets: but that line should be empty afterwards.

DjdjHacks commented 2 years ago

This is the config '*' denotes my data and i've uploaded it in txt cuz yml is not supported.

DjdjHacks commented 2 years ago

I'm an idiot. Sorry for wasting your time

DjdjHacks commented 2 years ago

Thanks for that fast reply, I thought the space next to secrets: is where my private keys goes. Again , I didn't expected that fast reply. Thanks. There are no bugs, It was my little mind unable to comprehend little things.

BTW do you cut any charges in the program?

beeb commented 2 years ago

Ok good to know nothing was wrong with the script. There are no dev fees in the program, it's completely free to use, as stated in the license. You can check the source for yourself as it is open source.

Best of luck