Installing nio on a Raspberry Pi

The easiest installation method is to run this script by following the instructions in the README of that github repository. This is recommended for most users and/or fresh Raspbian images. Otherwise, if you have an existing environment set up on your Pi, follow the instructions below.

[info] Raspbian System Requirements

GCC or similar C compiler
Check for an installation of GCC by typing the command gcc --version into your terminal. This should have been included with Raspbian.
If you do not have a C complier, follow the instructions to install GCC here.

Git 1.8.4 or later
Git is a fast, scalable, distributed version-control system with a rich command set that the nio System Designer relies on for adding and updating blocks as part of your nio instance.
In your terminal, type git --version to see if git is installed.
Follow this installation guide to get started with Git, sudo apt install git

APT or similar package tool (recommended )
Check for an installation of APT by typing the command apt --version into your terminal. This should have been included with Raspbian.

The following must be in your environment to run nio. You can install these requirements globally if you have a dedicated, fresh machine running Python and nio. If you intend to run other Python projects on the same machine, we recommend you avoid version conflicts by using a separate Python environment containing these requirements.

The nio Platform requires the following for local installation.

[info] nio Requirements

Python version 3.4+
In your terminal, type python3 --version to see which version of Python 3 you have installed.
If you don't have Python 3 or have an older version, download Python 3 by typing the following command in your terminal sudo apt install python3.

Pip is a package management system built for software written in Python. We recommend updating to the most recent version of pip3.
In your terminal, type pip3 --version to see which version of pip you have installed.
If you do not have pip installed you can do so by running the following commands in your terminal:

python3 --user
echo 'export PATH=/home/pi/.local/bin:$PATH' >> ~/.bashrc && source ~/.bashrc

Or, update to the most recent version of pip3 with the following commands:

curl -o
python3 —-user
echo 'export PATH=/home/pi/.local/bin:$PATH' >> ~/.bashrc && source ~/.bashrc

After running these commands, typing pip3 --version should return with the most up to date version of the Pip package manager.

You will also need the following, provided by nio:

[info] nio

A nio binary: (you'll need to agree to the license).


Open a terminal, and install nio using Python’s pip3 installer (substitute your filepath and binary filename below—the Xs represent the date of the binary in YYYYMMDD format):

[info] Additional Dependencies

Installing the default communication module's dependencies requires that the following be executed before continuing:

sudo apt update
sudo apt install python3-dev libssl-dev libffi-dev

From the command line, type

pip3 install -U ~/Downloads/nio_full-XXXXXXXX-py3-none-any.whl --user

You can test that nio is correctly installed by running the following command:

which niod

You should see a path to niod.

Once you have nio installed, you will need a project with a nio.conf file to run it against. Follow these instructions to create a project and run nio.

results matching ""

    No results matching ""