Regbot GUI

From Rsewiki
(Difference between revisions)
Jump to: navigation, search
(Install python)
Line 68: Line 68:
 
===Install python===
 
===Install python===
  
* Remove already installed python.
+
* Remove already installed python
  
* Install python from https://www.python.org/downloads/ - select install for 'all users' in install options and also select 'add to path'.
+
* 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 (rightclick on 'cmd' select 'as administrator'), to install additional packages using 'pip'.
+
After installation, start 'cmd' terminal windows as administrator (rightclick on 'cmd' select 'as administrator'), to install additional packages using 'pip'. (may work as user - i Haven't tested).
  
 
  > pip install pyqt5
 
  > pip install pyqt5
Line 84: Line 84:
 
Then make the EXE-file from the directory with the REGBOT GUI
 
Then make the EXE-file from the directory with the REGBOT GUI
  
  > cd Downloads
+
  > cd Downloads\regbotgui
> cd regbotgui
+
 
  > pyinstaller --onefile regbot.py
 
  > pyinstaller --onefile regbot.py
  
 
This takes some time, and the regbot.exe should be found in a 'dist' subdirectory.
 
This takes some time, and the regbot.exe should be found in a 'dist' subdirectory.
 +
 +
PS! tried also with Python 3.9, but regbot.exe failed with error: "PyQt5.sip not found".

Revision as of 10:03, 12 January 2021

Back to Regbot

NB! this page is for installing python3 version of the Regbot GUI.

Contents

not finished 11 jan 2021

install python

Start the command window by searching for 'cmd' after pressing Start.

In the command window type

python
Python 3.6.9 (default, Oct  8 2020, 12:12:24) 
on win32
Type "help", "copyright", "credits" or "license" for more information. 
>>> quit()

This should start python and write the version number. Version must be 3.X.X.

If not installed, then install from Microsoft store, you will probably be directed directly, if not installed.

Install packages

At the CMD prompt install

> pip install pyqt5
> pip install pyqtgraph
> pip install pyserial

If everything goes well, then you are ready to run the GUI from the Python script.

Install SVN

The source is on a SVN repository, if not available, then install:

Install TortoiseSVN from https://subversion.apache.org On left menu find "Binary packages" and from here the 'Windows' section

  • Download TortoiseSVN
  • Install, and remember to add 'command line' support.
  • restart a 'cmd' terminal after installation

Get REGBOTGUI python script

At the windows command terminal, do a checkout. Change to the Downloads folder (makes it easier to find (under Overførsler på dansk))

> cd Downloads
> svn checkout svn://repos.gbar.dtu.dk/jcan/regbot/regbotgui

Find the directory in your file browser (Stifinder)

Start the file 'regbot.py' - may be create shortcut on the desktop.

Regbot GUI

See the User interface


Make a windows EXE file

If you installed all the python stuff, then you don't need the exe file.

To make a single exe-file without need to install anything, then it is a bit more complicated (for me at least)

The Microsoft version failed in creating the exe-file

Install python

  • Remove already installed python

After installation, start 'cmd' terminal windows as administrator (rightclick on 'cmd' select 'as administrator'), to install additional packages using 'pip'. (may work as user - i Haven't tested).

> pip install pyqt5
> pip install pyqtgraph
> pip install pyserial
> pip install pyinstaller
> exit

Open a 'cmd' terminal window as normal user

Then make the EXE-file from the directory with the REGBOT GUI

> cd Downloads\regbotgui
> pyinstaller --onefile regbot.py

This takes some time, and the regbot.exe should be found in a 'dist' subdirectory.

PS! tried also with Python 3.9, but regbot.exe failed with error: "PyQt5.sip not found".

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox