Skip to content

Commit

Permalink
Merge pull request #352 from thyneb19/Database-Executor
Browse files Browse the repository at this point in the history
Removed psycopg2 from Lux requirements
  • Loading branch information
thyneb19 committed Apr 11, 2021
2 parents 2298f13 + 284f5ba commit 1e02ad6
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lux/_config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 1e02ad6

Please sign in to comment.