Regbot EXE for windows
(Created page with "Back to Regbot == Run the GUI == === The python version === In the regbot_gui directory, run the regbot.py script. * On Linux, this command line should work: cd regb...") |
Latest revision as of 14:03, 7 December 2023
Back to Regbot
Contents |
[edit] Run the GUI
[edit] The python version
In the regbot_gui directory, run the regbot.py script.
- On Linux, this command line should work:
cd regbot_gui python3 regbot.py
- On Windows
Find the directory in your file browser (Stifinder)
Start the file 'regbot.py' - maybe create a shortcut on the desktop.
If there are errors about libraries, then check if they are installed (from the list above).
[edit] Regbot.exe for Windows
A windows executable is generated (using the instructions below); this is found in a subdirectory called "dist".
> cd Downloads > cd regbot > cd regbot_gui > cd dist > regbot
Use the browser to locate the file and execute it. It also holds all the needed python-libraries, so it takes a long time to start.
The regbot.exe file is made on a Windows 10 (I don't have anything newer if there are problems; revert to the Python version)
NB! the version from 2022 does not work anymore; it has to have a date from 2023.
[edit] Regbot GUI use
See the User interface
[edit] Make a windows EXE file
If you installed all the python stuff, you don't need the exe file.
To make a single exe-file without the need to install anything, then it is a bit more complicated (for me at least)
[edit] Install python
- Install python (tested with version 3.8) from https://www.python.org/downloads/ - select 'all users' in install options and also select 'add to path'.
After installation, start 'cmd' terminal windows as administrator (right-click on 'cmd' and select 'as administrator') to install additional packages using 'pip'.
> pip install pyqt5 > pip install pyqtgraph > pip install pyserial > pip install pyinstaller > exit
[edit] Generate EXE file
Open a 'cmd' terminal window as a normal user
Then make the EXE-file from the directory with the REGBOT GUI
> cd Downloads\regbot_gui > pyinstaller --onefile regbot.py
This takes some time, and the regbot.exe should be found in a 'dist' subdirectory.
Try:
> cd dist > regbot.exe
PS! tried also with Python 3.9, but regbot.exe failed with the error: "PyQt5.sip not found".