Skip to content

Installation Guide

This guide provides detailed instructions for installing GateWizard on different platforms.

Prerequisites

Before installing GateWizard, ensure you have:

  • Conda (Miniconda or Anaconda): Download here
  • Git (for cloning the repository): Download here
  • Python 3.8+ (will be installed via conda)

Full API installation (Linux or WSL)

Use this when the new machine should build membranes, orient with MemPrO, and run OpenMM or GROMACS. NAMD stays a separate download.

conda create -n gatewizard -c conda-forge python sqlite ambertools=26 parmed=4.3.0 openmm cudatoolkit gromacs -y
conda activate gatewizard
conda install -c conda-forge -c bioconda reduce -y
pip install "gatewizard[full]"
python -c "import gatewizard; print(gatewizard.__version__)"
which pdb4amber
which mempro

On macOS, omit cudatoolkit. Prefer the CPU gromacs package. A CUDA GROMACS build in this same environment often stalls in the solver; see GROMACS: CPU vs CUDA.

AmberTools 26 does not ship reduce. conda install -c bioconda reduce puts that binary in the same environment so pdb4amber --reduce can add Amber hydrogens.

The same stack from a git checkout:

git clone https://github.com/maurobedoya/gatewizard.git
cd gatewizard
conda env create -f environment.yml
conda activate gatewizard

environment.yml already installs the package with pip install -e ".[full]", including CPU MemPrO (mempro ≥ 0.3.1). pip install "gatewizard[full]" installs that same CPU package. A GPU build is optional and goes into this conda env only; see MemPrO on a GPU.

For the desktop app, install gatewizard-gui separately. On first launch the GUI embeds its own micromamba runtime. That runtime is not this conda env. See Desktop GUI runtime (GROMACS / CUDA) below.

API package only

This installs the Python library without OpenMM or MemPrO:

conda create -n gatewizard -c conda-forge python sqlite ambertools=26 parmed=4.3.0 -y
conda activate gatewizard
conda install -c conda-forge -c bioconda reduce -y
pip install gatewizard
python -c "import gatewizard; print(gatewizard.__version__)"

Platform-Specific Instructions

Linux

Follow Full API installation above. For the desktop app, see Desktop GUI.

macOS

Follow the same conda and pip steps, and leave out cudatoolkit. OpenMM uses Metal or OpenCL on macOS. For the desktop app, see Desktop GUI.

Windows

Use WSL 2. Inside Ubuntu, follow the Linux API install. Native Windows conda can install the library for scripting, but the desktop app has no native Windows build — install the Linux package inside WSL (see Desktop GUI).

If Windows Task Manager shows VmmemWSL using several GB after you close the app, cap the VM — see Troubleshooting: VmmemWSL RAM.

Desktop GUI

Get the installer for your platform from gatewizard-gui Releases. The first time you open the app, it sets up its own Python environment (micromamba) and downloads the packages it needs. That can take several minutes — leave the splash screen open and watch the progress there until the main window appears. Plan on at least 8 GB of free disk space for the app and that embedded environment (under ~/.config/gatewizard-gui on Linux / WSL, or ~/Library/gatewizard-gui on macOS).

Install logs:

  • Linux / WSL: ~/.config/gatewizard-gui/runtime-install.log
  • macOS: ~/Library/gatewizard-gui/runtime-install.log

Linux and WSL

Native Windows installers are not published. On a Windows PC, install WSL 2 and use the Linux build (full MD workflow: AmberTools, membrane builder, OpenMM).

Supported distros (tested):

Environment Ubuntu / Debian / Fedora Notes
WSL 24.04 Recommended. Tested with WSLg
WSL 26.04 Tested. The app selects Mesa d3d12 when /dev/dxg and libd3d12.so are present
WSL 22.04 Not supported. The .deb and the launcher refuse this distro
Native Linux 22.04 or newer Full support on a desktop with X11 or Wayland

Use WSL 2 with WSLg (wsl --version lists WSLg). If the window reports Maximum number of clients reached, the Windows display is full. From Windows PowerShell run wsl.exe --shutdown, open one Ubuntu, and start gatewizard-gui-linux once.

Install the .deb (Ubuntu/Debian/WSL)

sudo apt install ./gatewizard-gui-*-linux-amd64.deb
gatewizard-gui-linux

The installer checks Electron’s system libraries (including ALSA, libasound.so.2) and a C compiler (cc) before it unpacks. If anything is missing, the install stops and the console prints sudo apt update plus one apt install line. Run those commands, then install the .deb again. The same check runs when you start gatewizard-gui-linux.

Install AppImage

chmod +x gatewizard-gui-*-linux-x86_64.AppImage
./gatewizard-gui-*-linux-x86_64.AppImage

AppImage does not install .deb dependencies. On a fresh Ubuntu / WSL box, install ALSA first if the launcher reports libasound.so.2:

sudo apt update
sudo apt install libasound2t64 || sudo apt install libasound2

If any other .so is missing, gatewizard-gui-linux (and the AppImage) print the apt / dnf command and exit.

Fedora Linux

sudo dnf install -y fuse fuse-libs alsa-lib
chmod +x gatewizard-gui-*-linux-x86_64.AppImage
./gatewizard-gui-*-linux-x86_64.AppImage

Display GPU (splash and Visualize) and renderer memory overrides are in Troubleshooting.

Uninstall the .deb

Remove the app but keep the embedded Python environment (~/.config/gatewizard-gui/mamba-env, often several GB):

sudo apt remove gatewizard-gui-linux

Remove the app and delete that environment for the user who ran sudo (including mamba-env and the install log):

sudo apt purge gatewizard-gui-linux

Purge does not delete a separate conda env such as ~/miniconda3/envs/gatewizard, and it does not uninstall ALSA, GTK, or other system libraries. For AppImage, delete the AppImage file; the same ~/.config/gatewizard-gui folder can be removed by hand if you want a clean slate. See also Uninstallation.

macOS desktop app

GateWizard releases from GitHub are not Apple-notarized yet. macOS may block the app the first time.

  1. Download the .dmg for your Mac from Releases (Apple Silicon: *-mac-arm64.dmg).
  2. Double-click the .dmg to open it.
  3. Drag gatewizard-gui-mac.app into Applications.
  4. Eject the disk image.
  5. Open Applications and launch gatewizard-gui-mac (do not run the app from inside the .dmg).

If macOS says it cannot verify the app:

  1. Try to open the app once (it will be blocked).
  2. Open System Settings → Privacy & Security.
  3. Scroll down and click Open Anyway next to the GateWizard message.
  4. Confirm Open, then launch again from Applications.

Alternatives: right-click → Open → Open, or remove the quarantine flag:

xattr -cr /Applications/gatewizard-gui-mac.app

Do not click Move to Trash in the Gatekeeper dialog — that deletes the app.

Wait on the splash screen until the main window appears (first run often 5–15 minutes). Update the API later from Settings (gear) → Versions & updates → Check for updates.

If the log shows SSL module is not available or libcrypto.3.dylib (not a mach-o file), the embedded environment under ~/Library/gatewizard-gui/mamba-env is corrupted. Quit GateWizard, then:

rm -rf ~/Library/gatewizard-gui/mamba-env
rm -f ~/Library/gatewizard-gui/runtime-state.json

Relaunch from Applications. If it happens again, exclude ~/Library/gatewizard-gui from iCloud Desktop & Documents sync. Verify with:

~/Library/gatewizard-gui/mamba-env/bin/python -c "import ssl; print(ssl.OPENSSL_VERSION)"

Dependencies

Core Python Dependencies

Installed by pip install gatewizard:

  • Python ≥ 3.8
  • NumPy ≥ 1.21.0
  • Matplotlib ≥ 3.5.0
  • requests ≥ 2.25.0
  • MDAnalysis ≥ 2.0.0
  • lipyphilic ≥ 0.12.0
  • freud-analysis ≥ 2.5.0
  • Propka ≥ 3.2.0
  • Pillow ≥ 9.0.0
  • RDKit ≥ 2023.3.1
  • psique ≥ 1.2.1
  • gemmi ≥ 0.6.5

pip install "gatewizard[full]" also installs ParmEd, OpenMM, PDBFixer, and the CPU build of MemPrO. AmberTools, reduce, the conda ParmEd build, OpenMM’s CUDA toolkit, and CPU GROMACS come from conda, not from that pip extra.

Scientific Computing Dependencies

Must be installed via conda:

  • AmberTools 26 - Molecular dynamics preparation and analysis
  • reduce (bioconda) - Amber hydrogens for pdb4amber --reduce. AmberTools 26 does not ship this binary.
  • Parmed 4.3.0 - Parameter/topology manipulation (must be from conda-forge)
  • PDBFixer ≥ 1.9 - short loops of 1–6 residues. Installed by gatewizard[full], not by pip install gatewizard alone.

External Requirements

  • NAMD - Required for NAMD equilibration (separate install; not on conda-forge)
  • Recommended: NAMD 3.0.1 or later (namd3)
  • Download from: NAMD Official Website
  • Must be on PATH or selectable via the GUI engine picker
  • OpenMM (optional for API users) - Python MD engine via conda-forge
  • conda install -c conda-forge openmm cudatoolkit on Linux/WSL with an NVIDIA driver for the CUDA platform
  • macOS uses Metal/OpenCL (no cudatoolkit)
  • Auto-selects CUDA → OpenCL → CPU; override with PLATFORM=CUDA when running equilibration scripts
  • GROMACS (optional) - Recommended via conda-forge; the GUI also installs a build into its embedded runtime
  • CPU (recommended default): conda install -c conda-forge gromacs
  • CUDA (Linux only, advanced): conda install -c conda-forge 'gromacs=*=nompi_cuda*'
  • System installs under /usr/local/gromacs (with GMXRC) are auto-detected
  • See the notes below before choosing the CUDA conda build

GROMACS: CPU vs CUDA (conda-forge)

GateWizard equilibration works with either a CPU or CUDA gmx. Prefer the CPU package unless you specifically need a conda CUDA GROMACS binary.

Goal Command / behavior
Reliable conda install conda install -c conda-forge gromacs
CUDA GROMACS (opt-in) conda install -c conda-forge 'gromacs=*=nompi_cuda*'
GPU OpenMM (separate) conda install -c conda-forge openmm cudatoolkit

Why CUDA GROMACS often fails or hangs

  • Installing gromacs=*=nompi_cuda* into an environment that already has OpenMM + cudatoolkit can stall for a very long time in the dependency solver (little or no log output after Pinned packages:).
  • Log lines about the CUDA Toolkit EULA or Anaconda Terms of Service are informational. Non-interactive installs (conda/micromamba with -y) do not wait for you to type “yes”.
  • If the CUDA solve is cancelled or times out, installing the CPU gromacs package normally succeeds quickly.
  • For GPU MD with GateWizard, OpenMM + cudatoolkit is usually enough. Use a system CUDA GROMACS (or GMXRC) if you need gmx on the GPU, or keep conda GROMACS on CPU.

Desktop GUI runtime (GROMACS / CUDA)

gatewizard-gui bootstraps an embedded micromamba env on first launch (see Desktop GUI and runtime-install.log).

  • OpenMM: on Linux/WSL, if nvidia-smi sees a GPU, the GUI installs openmm + cudatoolkit into the embedded env (unless GATEWIZARD_SKIP_CONDA_CUDA=1).
  • GROMACS (default): the GUI installs a modern CPU conda-forge build (gromacs>=2023). Older freezes could land on 2019.x, which cannot read many current .tpr files. Relaunching the app after an update re-syncs the embedded GROMACS when the install policy revision changes.
  • GROMACS CUDA (opt-in): set GATEWIZARD_CONDA_GROMACS_CUDA=1 before launching the GUI. The bootstrap tries a frozen CUDA install with a short timeout, then falls back to CPU GROMACS (≥2023) if the solve stalls or the CUDA build is too old.
  • Quitting mid-install kills leftover micromamba processes for that env so a relaunch is not blocked by an orphaned solver.
  • Linux/WSL log: ~/.config/gatewizard-gui/runtime-install.log (look for [gromacs] starting… / failed / installed).
  • The embedded env is ~/.config/gatewizard-gui/mamba-env. To delete it with the package, use sudo apt purge gatewizard-gui-linux — see Uninstall the .deb.

Manual API environments should follow the same preference: install CPU gromacs by default; only add the CUDA matchspec if you accept a long or fragile solve.

MemPrO on a GPU

gatewizard[full] and the desktop app both install the CPU package (mempro with jax[cpu]). Neither installs mempro[gpu]. The API conda env and the GUI micromamba env are separate Pythons. Installing the GPU extra in one does not change the other. The extra is jax[cuda12], for Linux with CUDA 12 drivers. macOS, Windows, and a machine with no NVIDIA driver stay on CPU. Asking for a GPU still fails when the card is not visible, including WSL without GPU passthrough.

API. Use the conda env from this page, not a pip that belongs to another env:

conda activate gatewizard
python -m pip install "mempro[gpu]"

MemPrO.run(..., device="gpu") then uses that env. device="cpu" and device="auto" still run on CPU when JAX sees no GPU.

Desktop app. Quit GateWizard first. The GPU choice in Visualize reads JAX inside the embedded env, not the conda env above. On Linux or WSL:

~/.config/gatewizard-gui/mamba-env/bin/python -m pip install "mempro[gpu]"

On macOS:

~/Library/gatewizard-gui/mamba-env/bin/python -m pip install "mempro[gpu]"

Start the app again. The GPU choice stays off until that env’s JAX can see a GPU. There is no native Windows installer; on a Windows PC this is the WSL command above, inside the Linux distro, not Windows Python and not %APPDATA%\gatewizard-gui\mamba-env.

Verifying Installation

After installation, verify that everything works:

# Activate environment
conda activate gatewizard

# Check Python version
python --version  # Should be 3.8+

# Check key dependencies
python -c "import MDAnalysis; print('MDAnalysis:', MDAnalysis.__version__)"
python -c "import parmed; print('ParmEd:', parmed.__version__)"
python -c "import openmm; print([openmm.Platform.getPlatform(i).getName() for i in range(openmm.Platform.getNumPlatforms())])"

# Check AmberTools
which pdb4amber  # Should show path in conda environment

# Verify GateWizard API
python -c "import gatewizard; print(gatewizard.__version__)"

Upgrading GateWizard

To upgrade to the latest version from PyPI:

# Activate environment
conda activate gatewizard

# Upgrade GateWizard
pip install --upgrade gatewizard

# Verify new version
python -c "import gatewizard; print(gatewizard.__version__)"

Check for updates: You can check if a newer version is available:

pip list --outdated | grep gatewizard

Force reinstall (if needed): If you encounter issues after an update:

pip install --force-reinstall gatewizard

Troubleshooting Installation

Issue: conda GROMACS CUDA install hangs after “Pinned packages”

Cause: The gromacs=*=nompi_cuda* solve often conflicts with an environment that already has OpenMM/cudatoolkit. The solver can run for a very long time with almost no new log lines. EULA / Terms-of-Service messages in the log are not interactive prompts.

Solution:

# Cancel the stuck install (Ctrl+C), then install CPU GROMACS:
conda install -c conda-forge gromacs -y

# Optional: use a system CUDA GROMACS / GMXRC instead of the conda CUDA build

For gatewizard-gui, leave the default (CPU GROMACS). Only set GATEWIZARD_CONDA_GROMACS_CUDA=1 if you explicitly want the timed CUDA attempt. See Desktop GUI runtime (GROMACS / CUDA).

Issue: ImportError with numpy.compat

Cause: Version conflict between NumPy and Parmed.

Solution:

# Reinstall Parmed from conda-forge
conda install -c conda-forge parmed=4.3.0 --force-reinstall

Issue: pdb4amber command not found

Cause: AmberTools not properly installed or environment not activated.

Solution:

# Ensure environment is activated
conda activate gatewizard

# Reinstall AmberTools
conda install -c conda-forge ambertools=26
conda install -c conda-forge -c bioconda reduce

Issue: Module not found errors

Cause: Installation incomplete or wrong environment.

Solution:

# Ensure you're in the correct environment
conda activate gatewizard

# Reinstall the API
cd /path/to/gatewizard
pip install -e ".[full]" --force-reinstall

Tip: GateWizard follows semantic versioning. Check the releases page for changelog and new features.

For Development Installation

If you installed from source:

# Update repository
cd /path/to/gatewizard
git pull origin main

# Update dependencies if needed
conda env update -f environment.yml

# Reinstall
pip install -e ".[full]" --force-reinstall

# Re-verify import
python -c "import gatewizard; print(gatewizard.__version__)"

Uninstallation

Python API (conda)

conda deactivate
conda env remove -n gatewizard
# Optional: remove a git checkout
rm -rf /path/to/gatewizard

Desktop GUI (Linux / WSL .deb)

Keep the embedded runtime (reinstall later without a full download):

sudo apt remove gatewizard-gui-linux

Remove the package and the embedded environment under ~/.config/gatewizard-gui (including mamba-env):

sudo apt purge gatewizard-gui-linux

Purge uses the home directory of the user who ran sudo. It does not remove ~/miniconda3/envs/gatewizard or system libraries. Details: Uninstall the .deb.

Desktop GUI (macOS)

Quit the app, move gatewizard-gui-mac out of Applications, then optionally delete the embedded environment:

rm -rf ~/Library/gatewizard-gui

Next Steps

After successful installation:

  1. Read the User Guide to learn about features
  2. Try the example workflows
  3. Check the Troubleshooting Guide if you encounter issues

For additional help, please contact the developers or check the GitHub repository.