Products | Versions |
---|---|
Spotfire Analyst | 10.8.0 and later |
==============================
IMPORTANT NOTE (2020-12-16):
"pip search" is used in both the original implementation of the "Python Tools" feature in Spotfire and the original workaround (for dealing with proxies) outlined at the end of this knowledge base article's Resolution section.
"pip search" is a feature in an online Python API that was disabled this week (mid-December, 2020).
This is discussed online at the following (non-TIBCO) website:
https://github.com/pypa/pip/issues/5216
Attempts to use "pip search" from a commands window currently fail with the following error:
-----
raise Fault(**self._stack[0])
xmlrpc.client.Fault: <Fault -32500: 'RuntimeError: This API has been temporarily disabled due to unmanageable load and will be deprecated in the near future. Please use the Simple or JSON API instead.'>
-----
IMPORTANT UPDATE: A fix for the "pip search" issue in Python Tools has been implemented in the following Spotfire Analyst desktop client hotfixes for Spotfire 10.10 LTS and Spotfire 11.1 (released January 19, 2021):
TS_10.10.2.51 LTS HF-010
TS_11.1.0.61 HF-001
If you are using one of these releases (10.10.x or 11.1.x) with a lower client hotfix number (or no hotfix applied at all), the best way to resolve this issue is to apply the latest cumulative Spotfire client hotfix for the release you are using.
As noted in the following public knowledge base article, Spotfire Server hotfixes and Spotfire client hotfixes each have their own separate sequential numbering system. All Spotfire hotfixes are cumulative.
https://support.tibco.com/s/article/When-applying-hotfixes-to-TIBCO-Spotfire-are-the-hotfix-numbers-for-Spotfire-Server-TSS-and-the-Spotfire-client-TS-supposed-to-match
For example, if you are running Spotfire Server 10.10.4, that does not automatically mean that you have the latest Spotfire 10.10.x client hotfix applied.
Below is a link for the list of hotfixes and the related fix details:
https://community.tibco.com/wiki/list-hotfixes-tibco-spotfire-clients-analyst-web-player-consumerbusiness-author-and-automation#toc-4
TS-65377 - In Python Tools, the Package Management tab ceased to work after removal of an underlying API at pypi.org (the Python Package Index). You would receive an error with the message 'Python Package Index is not accessible.
~~~~~~~
For Spotfire desktop clients that do not have this fix implemented (or available), you may find the following command-line workaround useful:
-------------------
Question: What is the manual workaround for Spotfire users who need to install Python packages, without using "pip search" to find them in the Python Index?
Answer: You need to install them by name from the command line:
1. Copy the path to Python from the Spotfire desktop client's "Tools > Python Tools" dialog.
2. Paste the copied path into a Notepad text editor.
3. Use that copied path to build a sequence of two commands like the following:
cd <path to the folder that contains python.exe>
python.exe -m pip install --<package name>
4. Use the Windows operating system's "cmd" command to open a Windows command prompt window.
5. Paste in the (case sensitive) commands built in step 3, then press the <Enter> key.
-------------------
An example (for installing the 'xgboost' package):
cd "C:\Program Files (x86)\TIBCO\Spotfire\10.10.0\Modules\Modules\Python Interpreter_3.7.5.0\python"
python.exe -m pip install --user xgboost
IMPORTANT NOTE:
The following approach will not work:
(Windows command shell: )
python.exe
(interactive Python console session: )
-m pip install --user xgboost
The interactive Python console session opened by a simple call to "python.exe" does not have a way to run the rest of that Windows shell command.
All of that Windows shell command must be entered at the "cmd" window's command prompt, like this:
python.exe -m pip install --user xgboost
Additional notes:
Python is case sensitive, so that "xgboost" and "xgBoost" (for example) are not the same.
Python is a third-party product. TIBCO does not publish Python.
==============================
~~~~~~~~~~~~~
For reference, the following is the original Summary for this knowledge base article (from before the Python community's "pip search" feature was disabled):
Under some conditions, an attempt to use the Spotfire desktop client's point-and-click "Tools > Python Tools > Package Management" feature may return the following error in a pop-up window:
_____________________________________________________
Python Tools x
Engine /Package Management\
-----------------------------------------------------
Package repository not accessible
Python Package Index is not accessible.
Most functionality will be unavailable.
See logs for more information.
[OK]
-----------------------------------------------------
_____________________________________________________