Installation

Create a virtual environment and install pyx2cscope using the following commands (Windows):

pyX2Cscope currently supports Python 3.10 to 3.15.

python -m venv .venv
.venv\Scripts\activate
pip install "pyx2cscope[gui]"

Optional features

pip install pyx2cscope installs only the library: the X2CScope class, the ELF parser and the serial, CAN and TCP/IP interfaces. That is all you need for scripts, automated tests and your own user interfaces. The GUIs and plotting packages are optional extras:

Install

Adds

pip install pyx2cscope

Library only

pip install "pyx2cscope[qt]"

Qt desktop GUI (PyQt5, pyqtgraph, numpy)

pip install "pyx2cscope[web]"

Web GUI (Flask, Flask-SocketIO)

pip install "pyx2cscope[examples]"

numpy, matplotlib and pandas: everything the scripts in pyx2cscope/examples need, and plotting in your own scripts

pip install "pyx2cscope[gui]"

Both GUIs

Extras can be combined, e.g. pip install "pyx2cscope[web,examples]" (used by the Raspberry Pi installer). Starting a GUI whose extra is not installed stops with the pip install command to run. The quotes keep shells such as zsh from interpreting the brackets.

The standalone executable always contains both GUIs, numpy and matplotlib, as before; nothing changes for its users. Other packages a script needs, such as pandas or scipy, are added with pyX2Cscope.exe --install (see Command-Line Interface).

System installation

It is highly recommended to install python libraries underneath a virtual environment.

Nevertheless, to install at system level, we advise to install it on user area. (Global installation may not work.) Execute the following lines:

pip install --user pyx2cscope
pip install --upgrade pyx2cscope

In case of unexpected issues executing pyx2cscope try to reinstall manually:

pip uninstall pyx2cscope
pip cache purge
pip install --user pyx2cscope

After install you may check the current pyx2cscope version, in a terminal, run the following command:

pyx2cscope --version

For help or additional command line options, type:

pyx2cscope --help

The log level used by pyX2Cscope is ERROR by default, possible values are DEBUG, INFO, WARNING, ERROR, and CRITICAL. To set a different log level start pyX2Cscope with argument -l or –log-level

pyx2cscope --log-level DEBUG