💚 pysqlite3-binary
This commit is contained in:
parent
9a6ffb865f
commit
10f3eb65ee
2 changed files with 15 additions and 0 deletions
4
.github/workflows/preview.yaml
vendored
4
.github/workflows/preview.yaml
vendored
|
|
@ -107,6 +107,10 @@ jobs:
|
|||
run: |
|
||||
pip install -r server/requirements.txt
|
||||
|
||||
- name: Install newer sqlite on linux
|
||||
run: pip install pysqlite3-binary
|
||||
if: matrix.os == 'ubuntu-20.04'
|
||||
|
||||
- name: Install tiktoken vocab file
|
||||
# Done to avoid extra network request to download the vocab file
|
||||
run: |
|
||||
|
|
|
|||
|
|
@ -3,6 +3,17 @@ import sys
|
|||
|
||||
from server.main import main
|
||||
|
||||
# __import__('pysqlite3')
|
||||
# import sys
|
||||
# sys.modules['sqlite3'] = sys.modules.pop('pysqlite3')
|
||||
|
||||
# DATABASES = {
|
||||
# 'default': {
|
||||
# 'ENGINE': 'django.db.backends.sqlite3',
|
||||
# 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
|
||||
# }
|
||||
# }
|
||||
|
||||
if getattr(sys, "frozen", False) and hasattr(sys, "_MEIPASS"):
|
||||
ca_bundle_path = os.path.join(sys._MEIPASS, "ca_bundle", "cacert.pem")
|
||||
print("Certificates at: ", ca_bundle_path)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue