Created
May 21, 2015 14:57
-
-
Save minorsecond/93706951d2dbdecf0c44 to your computer and use it in GitHub Desktop.
Seg fault 'EVP_CIPHER_key_length () from /lib64/libcrypto.so.1.0.0' When running queries sel or job_sel.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if encryption is True: | |
print("***PYPER TIMESHEET UTILITY***") | |
print("\nEnter encryption password below:") | |
key = str(getpass.getpass()) | |
DB_NAME = ".timesheet.db" | |
engine = create_engine( | |
'sqlite+pysqlcipher://:{0}@/{1}?' | |
'cipher=aes-256-cfb&kdf_iter=64000'.format(key, DB_NAME)) | |
DBSession = sessionmaker(bind=engine) | |
session = DBSession() | |
sel = session.query(Timesheet).order_by(Timesheet.id.desc()).all() | |
job_sel = session.query(Job).order_by(Job.id.desc()).all() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment