diff --git a/lux/_config/config.py b/lux/_config/config.py index 89c9a941..59dd0ae5 100644 --- a/lux/_config/config.py +++ b/lux/_config/config.py @@ -348,14 +348,6 @@ def set_SQL_connection(self, connection): def set_executor_type(self, exe): if exe == "SQL": - import pkgutil - - if pkgutil.find_loader("psycopg2") is None: - raise ImportError( - "psycopg2 is not installed. Run `pip install psycopg2' to install psycopg2 to enable the Postgres connection." - ) - else: - import psycopg2 from lux.executor.SQLExecutor import SQLExecutor self.executor = SQLExecutor()