Skip to content

Latest commit

 

History

History

software-setup

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Software Setup

6. Python ICS installation

Install ICS software on pi

About

This is a shell script that will install the following:

  1. ICS python library: python-ics docs
  2. xlib python library: xlib(formerly VspyX) docs
  3. All required dependencies for controlling the membrane using python: membrane example for python

Running the install script

1. Download the install_script.zip file attached and unzip it in the PI's home directory.

Run ls in your home directory to make sure you can see install_ics.sh and requirements.txt

{% file src="../.gitbook/assets/install_script.zip" %}

2. Run the install script

In your terminal window run the following 2 commands:

sudo chmod +x $HOME/install_ics.sh
./install_ics.sh

It could take up to 20 minutes to complete.

If you see "Licensing error! Please place a valid license in /home/pi/.vspyx/Licenses" then the installation was successful.

Usage

There are two ways of using the environment. First one is to activate it with pyenv:

pyenv activate xlib_env

Then just use python myscript.py.

The second way to use it without activating the environment but still using it:

sudo $HOME/.pyenv/versions/xlib_env/bin/python myscript.py

To use xlib you will need a valid licence from ICS, so if you do not have one please contact ICS support.

ICS-python is free to use without any licenses.