Installation
This guide covers how to install evid
on your system using Poetry, the project's dependency manager. For Windows users, we also provide instructions for setting up evid
using Windows Subsystem for Linux (WSL2), which is recommended for a smoother experience with GUI and LaTeX features.
Prerequisites
- Python: Version 3.9 or higher (but less than 4.0).
- Poetry: For dependency management and virtual environment setup.
- Git: To clone the repository and enable optional Git-based version control for datasets.
- Optional: A LaTeX distribution (e.g., TeX Live) for generating LaTeX documents.
- For WSL2 (Windows): A Linux distribution (e.g., Ubuntu) installed via WSL2, plus additional system dependencies for GUI support.
Installation Options
Choose one of the following installation methods based on your operating system:
- Standard Installation (Linux, macOS, or Windows with native Python)
- WSL2 Installation (Recommended for Windows users)
Standard Installation
These steps work for Linux, macOS, or Windows (if using native Python without WSL2).
- Clone the Repository
git clone <repository-url>
cd evid
- Install Poetry
If you don't have Poetry installed, run:
curl -sSL https://install.python-poetry.org | python3 -
Ensure Poetry is in your PATH. On Linux/macOS, you may need to add:
export PATH="$HOME/.local/bin:$PATH"
On Windows (without WSL2), Poetry is typically added to your PATH automatically, but you can verify by running poetry --version
in a Command Prompt.
- Install System Dependencies (Linux/macOS)
For Linux, install the following dependencies to support the GUI and optional Git features:
sudo apt update
sudo apt install -y git python3 python3-pip python3-dev qt6-base-dev libx11-xcb1 libxcb-cursor0 libegl1 libxkbcommon-x11-0 libxcb-xinerama0 libxcb-xinput0 libfontconfig1 libgl1 libglu1-mesa libopengl0 libxcb-glx0
For macOS, use Homebrew to install Git:
brew install git
Note: Some Qt6 dependencies may require additional setup on macOS; consult the PyQt6 documentation if issues arise.
- Install Dependencies
Use Poetry to install all required dependencies:
poetry install
This sets up a virtual environment and installs dependencies like PyQt6
, pymupdf
, pyyaml
, and gitpython
(for optional Git support).
- Verify Installation
Run the application to ensure it launches:
poetry run evid
This should open the evid
GUI with a dark theme.
WSL2 Installation for Windows
For Windows users, we recommend using Windows Subsystem for Linux (WSL2) to run evid
. WSL2 provides a Linux environment that simplifies GUI and LaTeX support. These instructions are designed for beginners who have never used WSL2 before.
Step 1: Set Up WSL2
- Enable WSL2:
- Open the Windows Start menu, search for "Turn Windows features on or off," and open it.
- Scroll down, check the boxes for "Windows Subsystem for Linux" and "Virtual Machine Platform," then click OK.
-
Restart your computer when prompted.
-
Install a Linux Distribution:
- Open the Microsoft Store app on Windows.
- Search for "Ubuntu" and install "Ubuntu 20.04 LTS" (or the latest version available).
-
Launch Ubuntu from the Start menu. It will take a few minutes to set up, and you'll be asked to create a username and password (e.g., username:
user
, password:yourpassword
). Remember these credentials. -
Update WSL2:
- Open a Windows Command Prompt (search for "cmd" in the Start menu).
- Run the following command to ensure WSL2 is set as the default:
wsl --set-default-version 2
- Verify the installation by running
wsl --list --verbose
in the Command Prompt. You should see Ubuntu listed with "2" as the version.
Step 2: Install an X Server for GUI Support
To display the evid
GUI in WSL2, you need an X server on Windows to handle Linux GUI applications.
- Install VcXsrv:
- Download VcXsrv from SourceForge (click the green "Download" button).
-
Run the installer, choosing default options, and complete the installation.
-
Configure VcXsrv:
- Launch "XLaunch" from the Start menu (installed with VcXsrv).
- In the XLaunch wizard:
- Select "Multiple windows" and click Next.
- Select "Start no client" and click Next.
- Check "Disable access control" (important for WSL2) and click Next.
- Click Finish to start the X server. A small icon will appear in your system tray.
- Keep XLaunch running whenever you use
evid
's GUI.
Step 3: Install System Dependencies in Ubuntu
- Open Ubuntu:
-
Launch Ubuntu from the Start menu or run
wsl
in a Windows Command Prompt. -
Update Ubuntu:
- Run the following commands to update the package lists and installed packages:
sudo apt update sudo apt upgrade -y
-
Enter your Ubuntu password when prompted.
-
Install Required Dependencies:
- Install the system dependencies needed for
PyQt6
and GUI functionality, plus Git for version control:sudo apt install -y git python3 python3-pip python3-dev qt6-base-dev libx11-xcb1 libxcb-cursor0 libegl1 libxkbcommon-x11-0 libxcb-xinerama0 libxcb-xinput0 libfontconfig1 libgl1 libglu1-mesa libopengl0 libxcb-glx0
-
These packages ensure that the GUI and graphical components work correctly in WSL2.
-
Optional: Install LaTeX:
- To generate LaTeX documents (e.g., for labels and rebuttals), install TeX Live:
sudo apt install -y texlive-full
- Note: This is a large package (several GB), so you can skip it if you don't need LaTeX features.
Step 4: Clone and Install evid
- Clone the Repository:
-
In the Ubuntu terminal, clone the
evid
repository:git clone <repository-url> cd evid
-
Install Poetry:
- Install Poetry in the Ubuntu environment:
curl -sSL https://install.python-poetry.org | python3 -
- Add Poetry to your PATH by adding this line to your
~/.bashrc
:echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc source ~/.bashrc
-
Verify Poetry is installed by running:
poetry --version
-
Install Dependencies:
- Install
evid
dependencies using Poetry:poetry install
Step 5: Configure GUI Display
- Set the DISPLAY Environment Variable:
- In the Ubuntu terminal, add the following line to your
~/.bashrc
to configure the display for GUI applications:echo 'export DISPLAY=$(ip route list default | awk "{print \$3}" | head -1):0' >> ~/.bashrc source ~/.bashrc
- This sets the DISPLAY variable to point to your Windows X server.
Step 6: Verify Installation
- Ensure XLaunch is Running:
-
Make sure XLaunch (VcXsrv) is running on Windows (check for the system tray icon).
-
Run evid:
- In the Ubuntu terminal, from the
evid
directory, run:poetry run evid
- The
evid
GUI should appear on your Windows desktop with a dark theme.
Troubleshooting WSL2
- GUI Doesn't Appear: Ensure XLaunch is running and the
DISPLAY
variable is set correctly. Try restarting XLaunch and runningexport DISPLAY=:0
in the Ubuntu terminal. - Dependency Errors: If
poetry install
fails, ensure all system dependencies were installed (qt6-base-dev
,git
, etc.). Re-runsudo apt install
for missing packages. - Slow Performance: Ensure your WSL2 instance has enough memory (check via
wsl --list --verbose
). You can allocate more resources in a.wslconfig
file (search online for WSL2 performance tuning). - LaTeX Issues: If LaTeX documents fail to generate, verify that
texlive-full
is installed or install specific LaTeX packages as needed.
Troubleshooting (General)
- Poetry errors: Ensure Python 3.9+ is installed and Poetry is correctly configured. Try
poetry env use python3.9
if Poetry uses the wrong Python version. - Missing LaTeX: If LaTeX documents fail to generate, install a LaTeX distribution like TeX Live (included in WSL2 instructions above).
- GUI issues: Verify that
PyQt6
is installed correctly. Check for Qt-related errors in the terminal output. For WSL2, ensure the X server is running.
For further help, check the Development section or file an issue on the repository.