This guide explains how to setup your Python Bridge to begin using with be used by Saga. It includes information on prerequisites, installing Python, and installing the dependencies.
Currently the only way to get a copy of Python Bridge is by requesting it to the Saga Team, for this please talk with your Accenture consultant for assistance.You can get the Python Bridge server as part of Saga deliverables which are stored in the Saga&ESUI teams site here. At the time of writing the latest version of Saga availabe is 1.3.1
The current versions version of Python Bridge where develop developed and test tested using Python 3.7.2, but any Python 3.7.x version will suffice. At the moment of writing this guide the released version of 3.7 is Python 3.7.7 which you can download from here https://www.python.org/downloads/release/python-377/, please remember to download the 64-bit version of Python, some libraries are no compatible with the 32-bit version and will not work.
...
This will create a folder names named venv in our Python Bridge folder, a self-contained directory tree that contains a Python installation for a particular version of Python, plus a number of additional packages.
To be able to use this environment, we need to execute the active activate script for this execute the command
...
Info |
---|
This process may take a few minutes, since pip needs to download and install every dependency |
Tip |
---|
You may see a trusted or SSL certificate error message when trying to install dependencies. This because some of the hosts are not trusted by the pip tool. In that case you can tell pip to trust those hosts by adding them to a text file called "pip.ini" which you place in the "venv" folder. Create the file if it doesn't exist and add the following contents: [global] |
Finally to start the Python Bridge server, all is you need it to do is to execute the command:
Code Block | ||||
---|---|---|---|---|
| ||||
python server.py |
...