Forum Discussion
Anonymous
5 years agoNot applicable
saspy.sasexceptions.SASIONotSupportedError: Cannot use STDIO I/O module on Windows.
Hi All,
I'm trying to read SAS file in power Bi using python script. While running my code in python IDE, I'm getting below error can anyone help me to figure it out.
Error:
saspy.sasexceptions.SASIONotSupportedError: Cannot use STDIO I/O module on Windows. Try the following: IOM
My Code:
import saspy as sas
import pandas as pd
code=open(r'My file path.sas').read()
#results.dict=sas.submit(code)
S=sas.SASsession()
results_dict=S.submit(code)
df=pd.DataFrame.from_dict(results_dict,orient='records')
df.head()
2 Replies
- amitchandak
Super User
Anonymous , refer if these can help
- v-yingjl
Community Support
Hi Anonymous ,
Please check whether you have configured saspy correctly in your environment. You are trying to use a local Windows install of SAS in you desktop, which requires you to use the IOM access method. You need java on the machine too.
Refer:
Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.