diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index d3ed9bf17..8bfed0fd3 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -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: | diff --git a/continue_server.py b/continue_server.py index ec093c8e5..2528ce330 100644 --- a/continue_server.py +++ b/continue_server.py @@ -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)