Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build fails because of sqlcipher3 #76

Closed
Youjin1985 opened this issue Jan 30, 2024 · 4 comments
Closed

build fails because of sqlcipher3 #76

Youjin1985 opened this issue Jan 30, 2024 · 4 comments

Comments

@Youjin1985
Copy link

Youjin1985 commented Jan 30, 2024

in new conda environment, pip install pyvault

 WARNING: Legacy build of wheel for 'sqlcipher3' created no files.
  Command arguments: /home/youjin/miniconda3/envs/llm/bin/python3.11 -u -c '
  exec(compile('"'"''"'"''"'"'
  # This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py
  #
  # - It imports setuptools before invoking setup.py, to enable projects that directly
  #   import from `distutils.core` to work with newer packaging standards.
  # - It provides a clear error message when setuptools is not installed.
  # - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so
  #   setuptools doesn'"'"'t think the script is `-c`. This avoids the following warning:
  #     manifest_maker: standard file '"'"'-c'"'"' not found".
  # - It generates a shim setup.py, for handling setup.cfg-only projects.
  import os, sys, tokenize

  try:
      import setuptools
  except ImportError as error:
      print(
          "ERROR: Can not execute `setup.py` since setuptools is not available in "
          "the build environment.",
          file=sys.stderr,
      )
      sys.exit(1)

  __file__ = %r
  sys.argv[0] = __file__

  if os.path.exists(__file__):
      filename = __file__
      with tokenize.open(__file__) as f:
          setup_py_code = f.read()
  else:
      filename = "<auto-generated setuptools caller>"
      setup_py_code = "from setuptools import setup; setup()"

  exec(compile(setup_py_code, filename, "exec"))
  '"'"''"'"''"'"' % ('"'"'/tmp/pip-install-_ciyrrtx/sqlcipher3_5b8aa7f1ca464be8a56697aaa3c22eb5/setup.py'"'"',), "<pip-setuptools-caller>", "exec"))' bdist_wheel -d /tmp/pip-wheel-97z8l12b
  Command output: [use --verbose to show]
  Running setup.py clean for sqlcipher3
Failed to build sqlcipher3
ERROR: Could not build wheels for sqlcipher3, which is required to install pyproject.toml-based projects

but I definitely have setuptools

(llm) youjin@LAPTOP-UMNTCS64:~$ pip install setuptools Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Requirement already satisfied: setuptools in ./miniconda3/envs/llm/lib/python3.11/site-packages (68.2.2)

I have pyvault working in another environment, so its not some missing library
Also sqlcipher3 is installed:
(llm) youjin@LAPTOP-UMNTCS64:~$ pip install sqlcipher3 Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Requirement already satisfied: sqlcipher3 in ./miniconda3/envs/llm/lib/python3.11/site-packages (0.5.2)

@Youjin1985
Copy link
Author

Youjin1985 commented Jan 30, 2024

It even works if I copy vault executable from working environment bin folder to new... Just fails to install in fresh environment.
Seems that sqlcipher3==0.5.2 can be installed, and ==0.4.5 fails. Maybe you can test and update requirements.txt?

@gabfl
Copy link
Owner

gabfl commented Jan 31, 2024

Hi @Youjin1985

I will test sqlcipher3==0.5.2 and get back to you. Can you let me know what hardware/OS you are using?

@Youjin1985
Copy link
Author

I am using WSL 2 with ubuntu 20.04, CPU i7-11370H, /etc/debian_version: bullseye/sid, gcc compiler: system default gcc-9.4.0

@gabfl
Copy link
Owner

gabfl commented Feb 13, 2024

@Youjin1985 since your issue is with sqlcypher3, please open a ticket on https://github.com/coleifer/sqlcipher3 instead
I am not sure what is the process (or what are the concerns) installing it on WSL

@gabfl gabfl closed this as completed Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants