diff --git a/strategies/apollo/apollo_telegram_bot.py b/strategies/apollo/apollo_telegram_bot.py index 61b225e..f7d487d 100644 --- a/strategies/apollo/apollo_telegram_bot.py +++ b/strategies/apollo/apollo_telegram_bot.py @@ -230,7 +230,7 @@ def cmd_analyze(symbol: str): spec = importlib.util.spec_from_file_location( "apollo_cycle", Path(__file__).parent / "apollo_cycle.py" ) - mod = importlib.util.load_from_spec(spec) + mod = importlib.util.module_from_spec(spec) spec.loader.exec_module(mod) result = mod.run_analysis(sym) except Exception as e: @@ -247,7 +247,7 @@ def cmd_scan(): spec = importlib.util.spec_from_file_location( "apollo_cycle", Path(__file__).parent / "apollo_cycle.py" ) - mod = importlib.util.load_from_spec(spec) + mod = importlib.util.module_from_spec(spec) spec.loader.exec_module(mod) symbols = CFG["symbols"] diff --git a/strategies/ares/ares_telegram_bot.py b/strategies/ares/ares_telegram_bot.py index 86ba5fd..91ad350 100644 --- a/strategies/ares/ares_telegram_bot.py +++ b/strategies/ares/ares_telegram_bot.py @@ -230,7 +230,7 @@ def cmd_analyze(symbol: str): "ares_cycle", Path(__file__).parent / "ares_cycle.py" ) - mod = importlib.util.load_from_spec(spec) + mod = importlib.util.module_from_spec(spec) spec.loader.exec_module(mod) result = mod.run_analysis(symbol) # Returns signal dict or None diff --git a/strategies/athena/athena_telegram_bot.py b/strategies/athena/athena_telegram_bot.py index 161f169..fa156af 100644 --- a/strategies/athena/athena_telegram_bot.py +++ b/strategies/athena/athena_telegram_bot.py @@ -213,7 +213,7 @@ def _run_analysis(sym): spec = importlib.util.spec_from_file_location( "athena_cycle", Path(__file__).parent / "athena_cycle.py" ) - mod = importlib.util.load_from_spec(spec) + mod = importlib.util.module_from_spec(spec) spec.loader.exec_module(mod) return mod.run_analysis(sym) except Exception as e: