-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the emittance-scanner-daq wiki!
I would recommend creating a Python Virtual Environment. The code works with Python 3, and is untested with Python 2. Once inside the virtual environment, do:
pip install numpy scipy matplotlib PyQt5 pyqtgraph
You may also have to install separate packages to be used as the Qt backend. If a backend is not automatically found for Qt, it will throw an error and tell you which packages must be installed (through apt or a different package manager).
If using Windows Subsystem for Linux (WSL), you will need to install an X-server like Xming or Vcxsrv, and add the following line to your .bashrc file:
export DISPLAY=:0
The version of PyQt in the Ubuntu repository seems to work better than the version from PyPI on some Ubuntu versions. If you are receiving syntax errors relating to signals and slots, try:
sudo apt install pyqt5-dev
This installs PyQt5 system-wide. To use this version with your virtual environment, create a symbolic link between the system PyQt5 folder and the virtual environment's library folder. You will also need to create a symbolic link between the sip*.so file and the virtual environment's library folder.
Once everything is set up, simply do
python ScannerDaq.py