Install Python & Argparse in HMIBSC

- Guides
- FAQ
- Quick Setup
Post Reply
Kah
Site Admin
Posts: 6
Joined: January 4th, 2020, 8:09 pm

Install Python & Argparse in HMIBSC

Post by Kah » June 2nd, 2022, 5:49 pm

If you wish to use Modbus-Read nodes you might run into trouble with Python out of date when trying to download from npm repository. Here is how to update Python.

1) Download python from our repository:

Code: Select all

wget -U 'Mozilla' emaxcontrol.com/files/hmibsc/Python-3.10.5.tgz
2) Make a new directory Python with

Code: Select all

mkdir 
command and

Code: Select all

cd Python-3.10.5
into it.

3) Untar this file

Code: Select all

tar -xf Python-3.10.5.tgz
4) Check new directory has been created with

Code: Select all

dir
and

Code: Select all

cd 
into this new folder.

5) Configure the package

Code: Select all

./configure
6) Make & Build (This will take a long time)

Code: Select all

make
make install
7) Reboot

INSTALL ARGPARSE

8) Make a new directory and download argparse

Code: Select all

mkdir argparse

Code: Select all

cd argparse

Code: Select all

curl -JLO https://files.pythonhosted.org/packages/18/dd/e617cfc3f6210ae183374cd9f6a26b20514bbb5a792af97949c5aacddf0f/argparse-1.4.0.tar.gz

Code: Select all

tar -xf argparse-1.4.0.tar.gz

Code: Select all

cd argparse-1.4.0

Code: Select all

python3 setup.py install

Post Reply