produvia / kryptos

Kryptos AI is a virtual investment assistant that manages your cryptocurrency portfolio
http://twitter.com/kryptos_ai
MIT License
48 stars 8 forks source link

SyntaxError: Non-ASCII character #1

Closed slavakurilyak closed 6 years ago

slavakurilyak commented 6 years ago

Dear CTP Maintainers,

Before I tell you about my issue, let me describe my environment:

Environment

Description of Issue

Reproduction Steps

  1. cd scripts
  2. python run_strategies.py

What steps have you taken to resolve this already?

I modified scripts/run_strategies.py to

def get_output_file(algo):
    perf_dir = CONFIG.PERF_DIR
    algo_dir = os.path.join(perf_dir, algo.NAMESPACE)

    # Before
    # os.makedirs(algo_dir)

    # After
    try:
        os.makedirs(algo_dir)
    except OSError:
        if not os.path.isdir(algo_dir):
            raise

Sincerely, skurilyak

slavakurilyak commented 6 years ago

Reinstalling the dependencies and the library resolved this issue