Skip to content

Installation

Matthijs Otterloo edited this page Feb 17, 2015 · 12 revisions

Python Interpreter Installation

SiriAPI8 is based on Python 3, a powerful scripting language. Since Python is platform independent, you can run SiriAPI8 on most computers. In the past also Windows Mobile Phones (the ancient ones around 2003) were supported.

Linux

  • On most Debian based Linux derivates you can run sudo apt-get install python3 to install Python
  • You can run Python3 scripts by entering python3 in the terminal

Windows

  • On Windows you need to download Python3 from here
  • By default there isn't any command registered which you could use in CMD to run a script. You'll need to modify your %PATH% variable or call Python using "C:\PythonVersion\python.exe" (brackets are required)

Mac OS X

  1. Open this link
  2. Double click on the installer and follow the instructions.
  3. Go to programs -> Utility's -> Open Terminal
  4. Now run the following command: git clone https://github.com/HcDevel/SiriAPI8.git
  5. Now do: cd SiriAPI8
  6. And finally run sudo python3 setup.py install If you experience problems during the installation (see issue #2), install setuptools using curl https://bootstrap.pypa.io/ez_setup.py -o - | python.

SiriAPI8 Installation

These steps are mostly platform independent.

  1. First of all, you need to download SiriAPI8. Choose one of the following ways:
  • Easy: You can download the ZIP Archive containing all required files from here. Extract it at any location you want.
  • Expert: You can clone this repository by running git clone https://github.com/HcDevel/SiriAPI8.git. Please note that git has to be installed. You can do this on most Debian based systems by running sudo apt-get install git. Clone at any directory you want
  1. Now you'll have to install the Python module
  2. Open a terminal (on Linux) or CMD (on Windows)
  3. Navigate into the directory where you have unpacked / cloned SiriAPI8. On Windows and Linux this will be done by using cd
  4. Ensure that there is a file called setup.py. Otherwise you are in the wrong directory
  5. Install SiriAPI8 by running sudo python3 setup.py install on Linux, or on Windows "C:\PythonVersion\python.exe" setup.py install If you experience problems during the installation (see issue #2), install setuptools using sudo apt-get install python3-setuptools. On other systems you can follow these instructions.
  6. If everything runs without problems or errors SiriAPI8 is successfully installed. If you experience any problems, don't hesitate to ask for help in the Issue tracker, you also might have found a bug ;)

Now you can start writing your own Python3 scripts using SiriAPI8. Take a look at the Quick Start Guide, in the example.py file (you have also a local copy) and the API Documentation.

You can’t perform that action at this time.