CryptoSignal / Crypto-Signal

Github.com/CryptoSignal - Trading & Technical Analysis Bot - 4,100+ stars, 1,100+ forks
https://www.linkedin.com/in/AbenezerMamo
MIT License
4.89k stars 1.26k forks source link

install issues #59

Closed Tim9889 closed 6 years ago

Tim9889 commented 6 years ago

after make build which gives no errors I try to run the app using 'make run', unfortunately theres no .env folder generated, how can I do this / whats wrong with the install process?

docker run -it --rm --env-file .env crypto-signal
docker: open .env: no such file or directory.
Andreilys commented 6 years ago

Hey @aneesv you'll first need to copy template.env into .env

cp template.env .env
#update your credentials in vim
vim .env
Tim9889 commented 6 years ago

Thanks but now I get this:

docker run -it --rm --env-file .env crypto-signal Traceback (most recent call last): File "app.py", line 13, in <module> from analysis import StrategyAnalyzer File "/app/analysis.py", line 11, in <module> from strategies.bollinger_bands import BollingerBands File "/app/strategies/bollinger_bands.py", line 5, in <module> from strategy_utils import Utils ModuleNotFoundError: No module named 'strategy_utils' make: *** [run] Error 1

aneesv commented 6 years ago

@Tim9889 I have fixed that issue on #58

Andreilys commented 6 years ago

Thanks @aneesv!

Tim9889 commented 6 years ago

Still no success ...

python3.6 app.py 
Traceback (most recent call last):
  File "app.py", line 43, in <module>
    main()
  File "app.py", line 19, in main
    config = conf.Configuration()
  File "/Users/Thorsten/FREQTRADE/crypto-signal/app/conf.py", line 14, in __init__
    config = json.load(open('default-config.json'))
  File "/usr/local/Cellar/python3/3.6.4_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/__init__.py", line 299, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/local/Cellar/python3/3.6.4_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/local/Cellar/python3/3.6.4_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/Cellar/python3/3.6.4_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 4 column 22 (char 63)
aneesv commented 6 years ago

@Tim9889 You have an error on your default-config.json, You can use https://jsonlint.com/ to validate json