enpass-cli: Unable to use on Linux.

The issue that I get is an “Invalid Password” error.

So with the code I added with my forks, I removed the import statement from pysqlcipher3 because it didn’t work on Linux. The original import statement worked just fine on OS X.

This was the original statement: from pysqlcipher3 import dbapi2 as sqlite

I changed it to: from sqlite3 import dbapi2 as sqlite

Which fixed the issue described here of ‘pysqlcipher3 module not found’: Install Issues

However, I can’t seem to decrypt the file on Linux. This is the output of the error that I get: sqlite3.DatabaseError: file is not a database which results in an “Invalid Password” notification due to the try/except statement.

I tried using the original code from your commit history before my forks but that won’t work as I keep running into the ‘pysqlcipher3 module not found’.

Any ideas on knowing how to fix this on Linux? I have only tested on Ubuntu and Kali Linux. I have not tried the program on any non-Debian based Linux distros yet.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 27 (21 by maintainers)

Most upvoted comments

Install libsqlcipher-dev

sudo apt update sudo apt install libsqlcipher-dev

then build pysqlcipher3 from source

git clone https://github.com/rigglemania/pysqlcipher3 cd pysqlcipher3 python setup.py build_amalgamation python setup.py install

Done!

I am gonna check with my linux machine on monday.