Installing GUI Serial Tool COMTool on LCKFB TaishanPi

The TaishanPi is pretty good indeed, JLC rocks!

Steps

Follow the steps titled “Install as a Python package” provided by the software and execute them in order:

1
2
sudo apt install git python3-pyqt5 python3-numpy
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple comtool

pyqt5 is error-prone to install with pip, so install it with the system package manager.

Note

The default system image of the TaishanPi does not include pip; install it with the following command:

1
sudo apt install python3-pip

After installing with pip, I ran into the problem that the comtool command was not found and the serial port tool could not be launched. I have already replied about this on the git repository as follows:

If pip installation succeeds but running comtool reports that the command is not found, you can directly run:

1
python -m COMTool.Main

For convenience, you can add an alias to run comtool. Zsh is used as an example here; Bash works much the same:

1
nano ~/.zshrc # edit the zsh configuration

Add the following at the last line:

1
alias comtool='python -m COMTool.Main' # specify the alias comtool

References