BookmarkSubscribeRSS Feed
onuroruc
Fluorite | Level 6

Hi all,

 

When I run sas services (./sas.servers start), SASInformationRetrievalStudioforSAS service does not work. when ı run this command; 

./IRStudio.sh start

I get this error;

Traceback (most recent call last):
File "/sas/config/Lev1/Applications/SASInformationRetrievalStudioforSAS/start.py", line 24, in <module>
error_log_file = os.path.join(log_dir, "information-retrieval-studio-server-errors.log")
File "/usr/lib64/python3.6/posixpath.py", line 94, in join
genericpath._check_arg_types('join', a, *p)
File "/usr/lib64/python3.6/genericpath.py", line 151, in _check_arg_types
raise TypeError("Can't mix strings and bytes in path components") from None
TypeError: Can't mix strings and bytes in path components

 

How can ı fix it?

 

 

6 REPLIES 6
sys-halt
SAS Employee

Hello,

 

A) Was it working before IRStudio?

B) What has changed from last time it was running?

C) Have you maybe updated Python version from 2.7 to 3.6?

D) If IRStudio was installed with 2.x and you have updated to 3.x, it will not work

E) Have you maybe updated Python from 3.x to 3.x where now the Python symlink in /usr/bin has been removed or it is now broken.

F) have you check /usr/bin/python if the symlink exists and to where it is pointing?

 

I cant recall the file name but inside IRStudio directory in SASCONFIG there is a configuration or maybe XML file that has python path and version. check this file and see python path and its version if it exists at OS level.

 

Regards,

Ahmad

kbarath_89
Calcite | Level 5

Hi @sys-halt , 
I think i am facing the same issue.  my python got upgraded on the OS from 2.x to 3.x.  After that, the IRStudio is not coming up and i believe its compatibility issue between 2.x and 3.x.  I heard from our local IT that the python 2.x is not supported on RHEL9 system and we can't go back to RHEL8 or RHEL7 to use the python2.x.  how can we fix it ? should we try download the python2.x separately outside of OS repo and install it on RHEL9 and then point this python2.x path on the IRstudo start up script ? would that work ? Or should we modify all the python code to python3 compatible? Thanks. 

gwootton
SAS Super FREQ
See D) from the response above:

If IRStudio was installed with 2.x and you have updated to 3.x, it will not work

This is because when you deploy and configure, it will stage different python programs depending on whether you have python 3 or python 2 available, and populate them differently.

You should engage SAS Technical Support for the supported steps on getting the python 3 compatible scripts deployed.
--
Greg Wootton | Principal Systems Technical Support Engineer
sys-halt
SAS Employee

Hi @kbarath_89 ,

 

Yes you do need Python 2.x (best to be Python 2.7) for IRStudio to startup again. As @gwootton explained, your IRStudio binaries were deployed with Python 2.x andwill not function with Python 3.x.  Python 2.x and Python 3.x are not compatibles.

 

You have two options:

1. install Python 2.x and ahave /usr/bin/python symlink points to python2

2. Contact SAS Technical Support for the steps to unconfigure/uninstall and reinstall/reconfigure IRStudio.

 

Is this a recent deployment of SAS9.4 under RHEL9? I am curious how you have RHEL 9 with Python 2.x installed since the default Python version on RHEL 9 is 3.9 and SAS does not require Python 2.x as a pre-requisite to be installed, SAS should have then used default installed Python 3.9 version during SAS installation and configuration.

 

Regards,

Ahmad

kbarath_89
Calcite | Level 5

Hi @gwootton and @sys-halt , 

Thanks for your suggestions!  I was able to bring up the IR studio again by having the python2.x installed on different directory other than /usr/bin.  

Ahmad - to answer your question,  RHEL9 comes with Python3 only as you mentioned. But we did install/configure the IRstudio when we were on previous RHEL version and it was an inplace upgrade . All services and application working fine except this IRstudio as it was broken due to python3.  Now, we were able to restore it using python2.x as workaround.  will check with SAS and try reinstall/reconfigure IRstudio. 

Thanks.

kbarath_89
Calcite | Level 5

Hi @onuroruc - Just wanted to check if you got the solution for this problem? If yes, how did you fix it ?

Thanks. 

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 6 replies
  • 2143 views
  • 0 likes
  • 4 in conversation