TIBCO Spotfire Analyst Python package management tool is unable to access python repository if using a proxy

TIBCO Spotfire Analyst Python package management tool is unable to access python repository if using a proxy

book

Article ID: KB0072555

calendar_today

Updated On:

Products Versions
Spotfire Analyst 10.10 (10.10.3 HF-022 and higher), 11.2 and higher

Description

Using a machine that is configured to go through a proxy to access the Internet, when using TIBCO Spotfire Analyst 10.10 (10.10.3 HF-022 or higher), or 11.2 or higher, the Python repository from Python Tool package management is inaccessible - it throws the following error:

Package repository not accessible
Python Package index is not accessible, Most functionality will be unavailable. 
See logs for more information. 


TIBCO Spotfire Analyst comes with a bundled Python Interpreter, which includes a urllib library. In TIBCO Spotfire Analyst 10.10 (10.10.3 HF-022 or higher), or 11.2 or higher, there is a bug in this urllib library that mis-parses Windows proxy settings. As a result, when pip tries to access a https url to PyPI to download packages via proxy, it assumes the proxy server is also https, even if it's only an http proxy, and the connection fails.

The full Python issue is described here: https://bugs.python.org/issue42627

Issue/Introduction

TIBCO Spotfire Analyst Python package management tool is unable to access python repository under internet proxy, if using version 10.10 (10.10.3 HF-022 or higher), or 11.2 or higher. This is due to a bug with the Python interpreter itself embedded with Spotfire analyst. Setting environment variables "http_proxy" and "https_proxy" can resolve the issue as a workaround.

Environment

All

Resolution

A workaround for now is to set the environment variables http_proxy and https_proxy both to the correct http:// proxy url in the user's client machine.