samre12 / deep-trading-agent

Deep Reinforcement Learning based Trading Agent for Bitcoin
MIT License
751 stars 212 forks source link

ERROR: No section: 'global' #9

Closed cTatu closed 6 years ago

cTatu commented 6 years ago

Hello, I tried running the code with the config file shown in the image and I still getting that error. But the 'global' section is at the beginning of the file.

image

>sudo cat config/config.cfg
[global]
PARENT_DIR = /home/mmnkl9/deep-trading-agent/code/

[logging]
LOG_FILE = logs/run.log
SAVE_DIR = logs/saved_models/
TENSORBOARD_LOG_DIR = logs/tensorboard/

[preprocessing]
DATASET_PATH = data/btc.csv

[dataset]
BATCH_SIZE = 32
HISTORY_LENGTH = 180
samre12 commented 6 years ago

Hi @cTatu , try providing the absolute path of the configuration file while running the code. If the problem still persists, let me know.

cTatu commented 6 years ago

Thanks for answering @samre12 , I also tried that but still get the same error. I thought that was reading another file but the folder only has that one file.

samre12 commented 6 years ago

Hi @cTatu , I am still not able to understand the cause of the issue. I am not able to reproduce the problem on my system. Googling about the issue indicates a possible issue with re package. But still there might other causes for the same issue.

hullyang commented 5 years ago

I had the same issue, and I found that config.cfg file path was wrong. Hope this would help you.

samre12 commented 5 years ago

@hullyang, yeah, generally the cause for this kind of issue is not providing the correct path or relative path for configuration file.