Skip to content
This repository has been archived by the owner on Nov 16, 2024. It is now read-only.

Latest commit

 

History

History
74 lines (56 loc) · 1.4 KB

Installation.md

File metadata and controls

74 lines (56 loc) · 1.4 KB

Installation Guide

Create Python virtual environment

python3 -m venv .venv

Activate virtual environment

On UNIX (macOS/Linux)
source .venv/bin/activate
On Windows
.venv\Scripts\activate

Install dependencies

pip install -r requirements.txt

Run application

python3 juris.py

Video Walkthrough - Codespace

Codespace_setup.mp4
Skip to sections 00:00 - Create Python virtual environment
00:13 - Activate virtual environment
00:18 - Install dependencies
04:20 - sqlite3 error (Error + how to fix)
05:15 - Run Application

Common Errors

Your system has an unsupported version of sqlite3. Chroma requires sqlite3 >= 3.35.0

  1. Run
    pip install pysqlite3-binary
    
  2. Open juris.py and uncomment (not delete!) line 14 by removing #
    14   """
    15   import chromadb
    16   """
    17   import sys
    18   __import__('pysqlite3')
    19   sys.modules['sqlite3'] = sys.modules.pop('pysqlite3')
    20   import chromadb
    21   #"""
    
    This will toggle from using the first block (line 15) to using the second block (line 17 - 20)
  3. Save and run juris.py