Skip to content

Commit

Permalink
YDA-5862: let playbook install custom build of pysqlcipher3
Browse files Browse the repository at this point in the history
  • Loading branch information
lwesterhof committed Aug 20, 2024
1 parent 2ac3e70 commit 5fc5482
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ python2-secrets==1.0.5
python-dateutil==2.7.0
python-magic==0.4.27
certifi==2021.10.8
pysqlcipher3==1.0.4
execnet==1.9.0
deepdiff==3.3.0
persist-queue==0.8.1
redis==3.5.3
psutil==5.9.6
iteration_utilities==0.8.0
#pysqlcipher3==1.2.1 (installed by yoda/roles/yoda_rulesets/tasks/main.yml)
10 changes: 5 additions & 5 deletions tools/list-data-access-tokens.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@
import re
import sys

try:
from pysqlcipher3 import dbapi2 as sqlite3
except ImportError:
exit_with_error("Error: pysqlcipher3 not available. It should have been installed by the Yoda playbook.")


def exit_with_error(message):
print >> sys.stderr, message
Expand Down Expand Up @@ -55,6 +50,11 @@ def get_tokens(token_database, token_database_password, user=None):
if not os.path.isfile(token_database):
exit_with_error("Error: cannot find token database")

try:
from pysqlcipher3 import dbapi2 as sqlite3
except ImportError:
exit_with_error("Error: pysqlcipher3 not available. It should have been installed by the Yoda playbook.")

conn = sqlite3.connect(token_database)
result = []

Expand Down

0 comments on commit 5fc5482

Please sign in to comment.