Regbot GUI

From Rsewiki
(Difference between revisions)
Jump to: navigation, search
 
(51 intermediate revisions by one user not shown)
Line 1: Line 1:
 
Back to [[Regbot]]
 
Back to [[Regbot]]
  
NB! this page is for installing python3 version of the Regbot GUI.
+
Back to [[Robobot]]
  
== not finished 11 jan 2021 ==
 
  
== install python ==
+
== Install Python ==
  
Start the command window  by searching for 'cmd' after pressing Start.
+
Install python and the python install program pip.
  
In the command window type
+
=== Windows ===
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.
+
Install Python from Microsoft store (Includes pip).
 +
(Should be python version 3.x)
  
If not installed, then install from Microsoft store, you will probably be directed directly, if not installed.
+
=== Mac ===
  
=== Install packages ===
+
Install Python (version 3.x)
 +
Maybe it is installed by default
 +
(I have no MAC)
  
At the CMD prompt install
+
=== Linux ===
  
> pip install pyqt5
+
install pip (Python Install Program)
> pip install pyqtgraph
+
> pip install pyserial
+
  
If everything goes well, then you are ready to run the GUI from the Python script.
+
sudo apt install python3
 +
sudo apt install pip
  
===Install SVN===
+
== Install Python packages ==
  
The source is on a SVN repository, if not available, then install:
+
=== Windows ===
  
Install TortoiseSVN from https://subversion.apache.org
+
Open a terminal window (search for 'cmd' app)
On left menu find "Binary packages" and from here the 'Windows' section
+
  
* Download TortoiseSVN
+
At the command prompt install these packages:
* Install, and remember to add 'command line' support.
+
* restart a 'cmd' terminal after installation
+
  
=== Get REGBOTGUI python script ===
+
> pip install pyqt4
 +
> pip install pyserial
 +
> pip install pyqtgraph
 +
> pip install numpy
  
At the windows command terminal, do a checkout.
+
=== MAC ===
Change to the Downloads folder (makes it easier to find (under Overførsler på dansk))
+
  
> cd Downloads
+
The same packages are needed.
> svn checkout svn://repos.gbar.dtu.dk/jcan/regbot/regbotgui
+
  
Find the directory in your file browser (Stifinder)
+
=== Linux ===
  
Start the file 'regbot.py' - may be create shortcut on the desktop.
+
> pip install pyqt5
 +
> pip install pyqtgraph
 +
> pip install pyserial
 +
> pip install numpy
  
=== Regbot GUI ===
+
== Get REGBOT GUI ==
  
See the [[User interface]]
+
The REGBOT GUI is just a set of python files
  
 +
There are two options
 +
* Get the python files from a zip-file (available in Learn)
 +
* Get the newest version from repository (SVN)
  
== Make a windows EXE file ==
+
=== From zip file ===
  
If you installed all the python stuff, then you don't need the exe file.
+
Unzip the Python files (many files (23), so keep them in a clean directory).
  
To make a single exe-file without need to install anything, then it is a bit more complicated (for me at least)
+
=== From SVN repository ===
  
The Microsoft version failed in creating the exe-file
+
Make sure your PC has SVN (Apache subversion) support.
  
===Install python===
+
===== Windows =====
  
* Remove already installed python.
+
Install e.g. SilkSVN (https://sliksvn.com/download/), this is a command-line interface, but there are other packages too.
  
* Install python from https://www.python.org/downloads/ - select install for 'all users' in install options and also select 'add to path'.
+
Start a 'cmd' terminal after installation.
  
After installation, start 'cmd' terminal windows as administrator (rightclick on 'cmd' select 'as administrator'), to install additional packages using 'pip'.
+
===== Linux (and MAC) =====
  
> pip install pyqt5
+
sudo apt install subversion
> pip install pyqtgraph
+
 
  > pip install pyserial
+
==== Get the GUI Python files ====
  > pip install pyinstaller
+
 
  > exit
+
Open a terminal window, change the directory, to where you want to install, e.g. called 'svn'
 +
 
 +
  mkdir svn
 +
  cd svn
 +
  svn checkout svn://repos.gbar.dtu.dk/jcan/regbot/regbot_gui
 +
cd regbot_gui
 +
 
 +
There should be several Python files, including 'regbot.py'.
 +
 
 +
== Start the Regbot GUI ==
  
Open a 'cmd' terminal window as normal user
+
Go to the directory, where the Python files are placed.
  
Then make the EXE-file from the directory with the REGBOT GUI
+
* Execute the 'regbot.py' file.
  
> cd Downloads
+
From a terminal
> cd regbotgui
+
> pyinstaller --onefile regbot.py
+
  
This takes some time, and the regbot.exe should be found in a 'dist' subdirectory.
+
cd regbot_gui
 +
python3 regbot.py

Latest revision as of 14:02, 7 December 2023

Back to Regbot

Back to Robobot


Contents

[edit] Install Python

Install python and the python install program pip.

[edit] Windows

Install Python from Microsoft store (Includes pip). (Should be python version 3.x)

[edit] Mac

Install Python (version 3.x) Maybe it is installed by default (I have no MAC)

[edit] Linux

install pip (Python Install Program)

sudo apt install python3
sudo apt install pip

[edit] Install Python packages

[edit] Windows

Open a terminal window (search for 'cmd' app)

At the command prompt install these packages:

> pip install pyqt4
> pip install pyserial
> pip install pyqtgraph
> pip install numpy

[edit] MAC

The same packages are needed.

[edit] Linux

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

[edit] Get REGBOT GUI

The REGBOT GUI is just a set of python files

There are two options

  • Get the python files from a zip-file (available in Learn)
  • Get the newest version from repository (SVN)

[edit] From zip file

Unzip the Python files (many files (23), so keep them in a clean directory).

[edit] From SVN repository

Make sure your PC has SVN (Apache subversion) support.

[edit] Windows

Install e.g. SilkSVN (https://sliksvn.com/download/), this is a command-line interface, but there are other packages too.

Start a 'cmd' terminal after installation.

[edit] Linux (and MAC)

sudo apt install subversion

[edit] Get the GUI Python files

Open a terminal window, change the directory, to where you want to install, e.g. called 'svn'

mkdir svn
cd svn
svn checkout svn://repos.gbar.dtu.dk/jcan/regbot/regbot_gui
cd regbot_gui

There should be several Python files, including 'regbot.py'.

[edit] Start the Regbot GUI

Go to the directory, where the Python files are placed.

  • Execute the 'regbot.py' file.

From a terminal

cd regbot_gui
python3 regbot.py
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox