I'm having trouble building a python binding for SQL cipher on my Windows machine. I have already sucessfully built the python binding for Macintosh. I would like to use my python script on both Mac and PC.
I’m new to python and don’t fully understand why it is failing but I began trying to debug the setup.py
script and found the error is in the build_extension(self, ext)
method at line 147.
Steps I took to build:
- https://github.com/rigglemania/pysqlcipher3
- https://github.com/sqlcipher/sqlcipher
- http://www.jerryrw.com/howtocompile.php
I cloned the repos above and followed Jerry’s instructions on how to build sqlcipher. I took the sqlite3.c and sqlite3.h files and placed them in your amalgamation folder then I attempted to build amalgamation. I got the error below. I attempted to just build and that failed with the same error as well.
Error:
running build_amalgamation
Builds a C extension using a sqlcipher amalgamation
building 'pysqlcipher3._sqlite3' extension
['path']
Questions:
- Is there any way I can build the sqlcipher on my mac and use it for PC? (transfer the files over from MAC to PC)?
- Can someone help me build sqlcipher3 python binding for PC?
I'm new to python and any help would be appreciated.