This is a shell script that will install the following:
- ICS python library: python-ics docs
- xlib python library: xlib(formerly VspyX) docs
- All required dependencies for controlling the membrane using python: membrane example for python
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" %}
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.
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.