check version explicitly, use "python" in venv

This commit is contained in:
Matthias 2018-08-15 08:37:20 +02:00
parent a0bc17d1ef
commit d007ac4b96
2 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,5 @@
import logging
import sys
from copy import deepcopy
from freqtrade.strategy.interface import IStrategy
@ -20,7 +21,7 @@ def import_strategy(strategy: IStrategy, config: dict) -> IStrategy:
# Delete '_abc_impl' from dict as deepcopy fails on 3.7 with
# `TypeError: can't pickle _abc_data objects``
# This will only apply to python 3.7
if '_abc_impl' in comb:
if sys.version_info.major == 3 and sys.version_info.minor == 7 and '_abc_impl' in comb:
del comb['_abc_impl']
attr = deepcopy(comb)

View File

@ -211,7 +211,7 @@ function install () {
echo "-------------------------"
echo "Run the bot"
echo "-------------------------"
echo "You can now use the bot by executing 'source .env/bin/activate; ${PYTHON} freqtrade/main.py'."
echo "You can now use the bot by executing 'source .env/bin/activate; python freqtrade/main.py'."
}
function plot () {