Skip to main content

In the 'Using Python with FME Server' doc, step 2 asks to run the command python get-pip.py however, the server we are configuring is offline so we get an error 'Failed to establish a new connection'.

What are the steps to get get-pip installed?

If your server is offline, with no internet connection, get-pip will be of little use since it is for installing packages via the internet and requires an internet connection.

You will need to install the python modules manually by uploading the modules using the FME Server WebUI.

First, locate the python modules on a system that already has them or you will need to download them using a system that has access to the internet and a python module downloader like get-pip.py.

As indicated in step 4 on the Using Python with FME Server doc, once downloaded, the modules should exist in your local profile. Locate any *.pyc files and the sub-directory that contains the init.pyc and main.pyc files of your package. These will need to be uploaded to FME Server using the Web UI.

Further from the Doc above you'll find a section called 'Uploading the Python Module', it instructs:

Use the Upload tool on the Resources page of the Web User Interface, and upload it to the folder under Engine\\Plugins\\python that corresponds to the Python release compatible with the module (for example, python27).

In addition, this article Install python modules into FME contains a section for FME Server that shows an example for uploading python modules to FME Server engine resources. Review the section called 'FME Server' where it shows the steps to upload a python module called PyExecJS.

Hope this helps someone.


If your server is offline, with no internet connection, get-pip will be of little use since it is for installing packages via the internet and requires an internet connection.

You will need to install the python modules manually by uploading the modules using the FME Server WebUI.

First, locate the python modules on a system that already has them or you will need to download them using a system that has access to the internet and a python module downloader like get-pip.py.

As indicated in step 4 on the Using Python with FME Server doc, once downloaded, the modules should exist in your local profile. Locate any *.pyc files and the sub-directory that contains the init.pyc and main.pyc files of your package. These will need to be uploaded to FME Server using the Web UI.

Further from the Doc above you'll find a section called 'Uploading the Python Module', it instructs:

Use the Upload tool on the Resources page of the Web User Interface, and upload it to the folder under Engine\\Plugins\\python that corresponds to the Python release compatible with the module (for example, python27).

In addition, this article Install python modules into FME contains a section for FME Server that shows an example for uploading python modules to FME Server engine resources. Review the section called 'FME Server' where it shows the steps to upload a python module called PyExecJS.

Hope this helps someone.

You may experience the following error message when attempting to run the python get-pip.py:

 

Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connec

 

tion broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.conne

 

ction.VerifiedHTTPSConnection object at 0x03326850>: Failed to establish a new c

 

onnection: oErrno 10061] No connection could be made because the target machine

 

actively refused it',)': /simple/pip/

 


Could not find a version that satisfies the requirement pip (from versions: )
No matching distribution found for pip This is most likely due to lack of internet access or firewalls blocking access to the internet from the system.

 

Try using another system to download the necessary python libraries and then copy them to the system.

Reply