0

i am new to sqlcipher, i want to access sqlcipher database from python script. for that I need to install pysqlcipher3 on my windows computer but when I do:

pip install pysqlcipher3

i get this:

Collecting pysqlcipher3
  Using cached pysqlcipher3-1.0.4.tar.gz (102 kB)
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: pysqlcipher3
  Building wheel for pysqlcipher3 (setup.py) ... done
  WARNING: Legacy build of wheel for 'pysqlcipher3' created no files.
  Command arguments: 'd:\python\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Program Files\\KMSpico\\temp\\pip-install-nan658wo\\pysqlcipher3_0470ec5ef649436e8525126e70042d5e\\setup.py'"'"'; __file__='"'"'C:\\Program Files\\KMSpico\\temp\\pip-install-nan658wo\\pysqlcipher3_0470ec5ef649436e8525126e70042d5e\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Program Files\KMSpico\temp\pip-wheel-6iocsl31'
  Command output: [use --verbose to show]
  Running setup.py clean for pysqlcipher3
Failed to build pysqlcipher3
Installing collected packages: pysqlcipher3
    Running setup.py install for pysqlcipher3 ... done
Successfully installed pysqlcipher3
WARNING: You are using pip version 21.3; however, version 21.3.1 is available.
You should consider upgrading via the 'd:\python\python.exe -m pip install --upgrade pip' command.

it says faild to build pysqlcipher3 and successfully installed pysqlcipher3 at a same time, i am confused in it..

when i try to access pysqlcipher3 from python shell i says :

Python 3.8.7 (tags/v3.8.7:6503f05, Dec 21 2020, 17:59:51) [MSC v.1928 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>> import pysqlcipher3
>>> from pysqlcipher3 import dbapi2 as sqlite
Traceback (most recent call last):
  File "<pyshell#1>", line 1, in <module>
    from pysqlcipher3 import dbapi2 as sqlite
  File "D:\python\lib\pysqlcipher3\dbapi2.py", line 33, in <module>
    from pysqlcipher3._sqlite3 import *
ModuleNotFoundError: No module named 'pysqlcipher3._sqlite3'
>>> 

I tried that with python3.8. I think it's like this problem: install pysqlcipher3 windows but I did not succeed to resolve the problem

Someone can help me please?

  • This question should be closed It is related to system administration, not programming. Also it looks that OP has abandoned it. – Yuri Ginsburg Dec 22 '21 at 02:46

0 Answers0