From 734b95b8a593bba46d607b8438fc1ae019ca4803 Mon Sep 17 00:00:00 2001 From: Eric Pinzur Date: Fri, 21 Jun 2024 11:03:29 +0200 Subject: [PATCH] fixed issues with distutils --- ragulate/cli.py | 2 ++ ragulate/pipelines/base_pipeline.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/ragulate/cli.py b/ragulate/cli.py index 7bdcc8d..c7e186c 100644 --- a/ragulate/cli.py +++ b/ragulate/cli.py @@ -1,3 +1,5 @@ +# this must be imported first for dynamic module loading to function properly +import setuptools # isort: skip import argparse from dotenv import load_dotenv diff --git a/ragulate/pipelines/base_pipeline.py b/ragulate/pipelines/base_pipeline.py index e7815d3..ce1f050 100644 --- a/ragulate/pipelines/base_pipeline.py +++ b/ragulate/pipelines/base_pipeline.py @@ -1,5 +1,6 @@ import importlib.util import inspect +import traceback from abc import ABC, abstractmethod from typing import Any, Dict, List @@ -96,6 +97,7 @@ def __init__( logger.fatal( f"Issue loading recipe {self.recipe_name} on {self.script_path}/{self.method_name} with passed ingredients: {self._passed_ingredients}: {e}" ) + traceback.print_exc() exit(1) def get_method(self):