Installation Guide#

Requirements#

  • Python 3.10 – 3.13 (Python 3.14 is not yet recommended — many compiled-binding wheels are still flaky)

  • conda (Anaconda or Miniconda) or pip


Alternative: pip install (no conda)#

From source (development mode)#

git clone https://github.com/jilavsky/pyirena.git
cd pyirena

# GUI install (includes PySide6 + pyqtgraph)
pip install -e ".[gui]"

Core only (no GUI)#

pip install -e .

Trying a pre-release (beta) version from PyPI#

Beta releases (e.g. 1.2.0b1) are published to PyPI ahead of a stable release for early testing. pip ignores pre-releases by default, so pass --pre explicitly:

pip install --pre "pyirena[gui]"

Or pin an exact version:

pip install "pyirena[gui]==1.1.0"

See CHANGELOG.md for what changed, and report issues at https://github.com/jilavsky/pyirena/issues.


Dependencies#

Core (always required)#

Package

Version

Purpose

numpy

≥ 2.0

Numerical arrays

scipy

≥ 1.13

Optimization, fitting

h5py

≥ 3.0

HDF5 / NXcanSAS file I/O

igor2

≥ 0.5.16

Igor Pro .pxp / .ibw import

GUI (required to run the interactive GUI)#

Package

Version

Purpose

PySide6

≥ 6.6 (not 6.7.x, 6.10.x)

Qt6 Python bindings

pyqtgraph

≥ 0.13

Fast scientific plotting

matplotlib

≥ 3.3

Additional plot export

Development / testing (optional)#

Package

Purpose

pytest ≥ 7.0

Test runner

pytest-cov

Coverage reports


Verifying the Installation#

# Check the package is importable
python -c "import pyirena; print('pyirena', pyirena.__version__)"

# Full environment + dependency report
pyirena-doctor

# Launch the GUI
pyirena-gui

Troubleshooting#

Start with pyirena-doctor#

pyirena-doctor

It reports the interpreter in use, every required and optional dependency (marking each as installed, missing, or installed but failing to load), and whether the pyirena-gui launcher runs the same Python as your pip. Paste its output into any bug report — it usually identifies the problem outright.

“GUI dependencies not installed” — but pip says they are#

Almost always one of two things:

1. pip and the launcher are different Pythons. pyirena-gui is a script with a hard-coded interpreter path. If you installed with a pip belonging to a different environment, the packages are invisible to the launcher. Use the module form so both always agree:

python -m pip install "pyirena[gui]"
python -m pyirena.gui.launch

pyirena-doctor detects this case explicitly and prints both paths.

2. PySide6 is installed but cannot load. Reinstalling will not help. Common causes:

Symptom in the error

Cause

Fix

incompatible architecture

x86_64 wheel under arm64 Python (or a Rosetta terminal)

Reinstall with a matching interpreter; check python -c "import platform; print(platform.machine())"

libGL.so.1: cannot open shared object file

Linux missing OpenGL runtime

sudo apt install libgl1 libglib2.0-0

libxkbcommon… / xcb errors

Linux missing X11 libraries

sudo apt install libxkbcommon-x11-0 libxcb-cursor0

DLL load failed

Windows missing MSVC runtime

Install the Visual C++ Redistributable (x64)

shiboken6 mismatch

Partial upgrade

python -m pip install --force-reinstall PySide6 shiboken6

pyIrena names the likely cause for each of these automatically.

Quote the brackets. In zsh, pip install pyirena[gui] is glob-expanded and fails or silently installs without the extras. Always write pip install "pyirena[gui]".

For the full traceback behind any startup failure:

PYIRENA_DEBUG=1 pyirena-gui

Startup failures are also logged with full tracebacks to ~/.pyirena/logs/gui.log.

HDF5 / h5py build errors#

conda env create installs pre-built binaries and avoids this entirely. If using pip on Linux:

sudo apt-get install libhdf5-dev   # Debian/Ubuntu
pip install h5py

On macOS:

brew install hdf5
pip install h5py

PySide6 / GUI not found#

Make sure you installed with [gui] extras or that the conda environment was created from environment.yml:

pip install -e ".[gui]"        # pip route
# or
conda env create -f environment.yml   # conda route

ImportError after installation#

Make sure the pyirena conda environment is active:

conda activate pyirena
python -c "import pyirena"

“DLL load failed while importing QtCore” (Windows)#

Symptom — pyirena-gui prints:

Error: GUI dependencies not installed.
Details: Neither PySide6 nor PyQt6 found.

But pip show PySide6 reports it is installed. Confirm with:

python -c "from PySide6 import QtCore"

If that gives DLL load failed ... The specified procedure could not be found, you have a mixed conda + pip Qt install. Easiest fix is to recreate the env so pip is the only Qt installer:

conda deactivate
conda env remove -n pyirena -y
conda env create -f environment.yml
conda activate pyirena
pyirena-gui

(The current environment.yml already routes the GUI stack through pip to prevent this — older envs created before that change are the ones at risk.)

Python 3.14 wheels are flaky#

Python 3.14 was released October 2025. Several scientific Python wheels (including PySide6 on Windows) advertise cp314 support but in practice fail with DLL or symbol-resolution errors. Stick with Python 3.10 – 3.13 until your stack of choice has caught up. The environment.yml caps Python at <3.14 for this reason.


Platform Notes#

Windows#

Conda is strongly recommended — it provides pre-built PySide6 and h5py binaries that avoid compiler requirements.

macOS#

  • Intel and Apple Silicon both supported via conda-forge packages.

  • If building from source with pip, Xcode Command Line Tools are required: xcode-select --install

Linux#

  • Conda is the easiest path; all packages are available on conda-forge.

  • With pip, install system HDF5 headers first (see Troubleshooting above).


Next Steps#

After installation, see: