Configuration instructions to upgrade Python for SAS® Information Retrieval Studio on SAS® 9.4


Support for Python 2.7 ended in January 2020. Complete the following instructions to upgrade to a newer Python version:

1. Install a newer Python version. See the Python section in SAS® 9.4 Support for Other Third-Party Software Products for instructions. 

In a UNIX operating environment, you need to create a softlink called 'python' to point to the new Python version.

Here is an example:

cd /usr/bin

ln -s /usr/bin/python3.8 python

This softlink should produce a result similar to the following:  

lrwxrwxrwx 1 root root 18 May 13 09:10 python -> /usr/bin/python3.8

2. Stop the SAS Information Retrieval Studio service as follows:

3. Back-up the existing Python BIN files in the SAS Information Retrieval Studio configuration folder located in ..SAS-configuration-directory/Lev1/Applications/SASInformationRetrievalStudioforSAS/bin.

  1. Delete the existing files in ..SAS-configuration-directory/Lev1/Applications/SASInformationRetrievalStudioforSAS/bin.
  2. Copy all files from {SASHome}/SASInformationRetrievalStudioforSAS/1.5X/StaticPy3/bin to ..SAS-configuration-directory/Lev1/Applications/SASInformationRetrievalStudioforSAS/bin.
  3. Copy all files from {SASHome}/SASInformationRetrievalStudioforSAS/1.5X/StaticPy3/bin/post
    processors
    to ..SAS-configuration-directory/Lev1/Applications/SASInformationRetrievalStudioforSAS/bin/post
    processors
    .
  4. After copying the postprocessor files, delete all .db and .pid files from ..SAS-configuration-directory/Lev1/Applications/SASInformationRetrievalStudioforSAS/work.

 

4. In a UNIX operating environment, verify that the PYTHON_EXEC= parameter in the IRStudio.sh script in ..SAS-configuration-directory/Lev1/Applications/SASInformationRetrievalStudioforSAS points to the correct python3 path.

In Windows Servers only, you need to uninstall and re-install the SAS Information Retrieval Studio service.

    1. Open a command prompt as administrator window.
    2. Navigate to ..SAS-configuration-directory/Lev1/Applications/SASIformationRetrievalStudioforSAS.
    3. Submit the following:

IRStudio.bat remove
IRStudio.bat install

5. Start SAS Information Retrieval Studio service as follows:

6. Submit the following manual commands to start the servers and open the terminal service:

cd ..SAS-configuration-directory/Lev1/Applications/SASInformationRetrievalStudioforSAS/bin

 

python information-retrieval-studio-client.py   --get-proxy-server-status

python information-retrieval-studio-client.py   --start-proxy-server

 

python information-retrieval-studio-client.py  --get-pipeline-server-status

python information-retrieval-studio-client.py --start-pipeline-server

                                                  

python information-retrieval-studio-client.py  --get-indexing-server-status

python information-retrieval-studio-client.py  --start-indexing-server

 

python information-retrieval-studio-client.py --get-query-server-status

python information-retrieval-studio-client.py --start-query-server

 

Note: SAS Information Retrieval Studio servers should run on the correct ports: proxy on 10661, pipeline on 10691, indexing on 10721, and query on 10731.

 

7. Restart SASServer12 service:

8. If any technical issues occur after you complete the above steps, zip and send following to SAS Technical Support: