Installation
Requirements (Windows)
-
.NET Framework 4.7.2
-
Drivers included with PSTrace5.x, MultiTrace4.x, PSTrace Xpress or the included driver installer
Python 3.13 contains a known issue which will print errors to the output due to threads not being disposed correctly, these errors can safely be ignored.
|
Requirements (Linux)
-
Python version 3.10 or newer. Use your system’s package manager to install Python.
-
.NET Runtime 9.0 or newer, see this link for more information. Typically this is called something like
dotnet-runtime-9.0
in your system’s package manager. -
Optional: FTDI d2xx drivers available on the ftdi website.
If you do not use them it is recommended to disable scanning for FTDI devices.
available_instruments = pypalmsens.discover(ftdi=False)
Virtual environments
Virtual enviroments are used to create isolated Python installations. Tools like venv or conda help you create and update environment that have different versions of Python and/or packages installed in them. This makes them useful for software development.
This section shows how to set up and activate an environment.
Setting up a virtual environment using Python, pip and venv:
python -m venv .venv
.venv/Scripts/activate.ps1
python -m pip install -e .[develop]
Alternatively, setting up a virtual environment using Conda:
conda create -n pypalmsens python=3.13
conda activate pypalmsens
pip install pypalmsens
Visual Studio Code
VS Code supports virtual environments. In combination with the Python, Python Debugger and Pylance extensions, VS code makes it easy to create virtual environments and load the python dependencies.
See the VSCode documentation for how to set this up.