From 0296061e49e0e788dbc87bbcc3ebd64747fcc7b7 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 16 Jan 2023 06:54:29 +0100 Subject: [PATCH] Fix version comparison to use packaging.version --- freqtrade/util/binance_mig.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/freqtrade/util/binance_mig.py b/freqtrade/util/binance_mig.py index cba02ac9f..baa61c2cb 100644 --- a/freqtrade/util/binance_mig.py +++ b/freqtrade/util/binance_mig.py @@ -1,5 +1,7 @@ import logging +from packaging import version + from freqtrade.constants import Config from freqtrade.enums.tradingmode import TradingMode from freqtrade.exceptions import OperationalException @@ -19,7 +21,7 @@ def migrate_binance_futures_names(config: Config): # only act on new futures return import ccxt - if "2.6.6" > ccxt.__version__: + if version.parse("2.6.6") > version.parse(ccxt.__version__): raise OperationalException( "Please follow the update instructions in the docs " "(https://www.freqtrade.io/en/latest/updating/) to install a compatible ccxt version.")