personal Altair SLC supports import export in R but not Python
Odd personal Altair SLC supports import export in R but not Python
PYTHON
&init;
options set=PYTHONHOME "D:\python310";
PROC PYTHON;
EXPORT DATA=sd1.have PYTHON=df;
SUBMIT;
df.info()
dfo=df
ENDSUBMIT;
IMPORT DATA=sd1.dfo PYTHON=dfo;
run;quit;
ERROR
2025-09-23 07:57:36 [wps.exec][19852] internal error (class wpc::PipeException) Error writing to pipe : The pipe is being closed.
249 ODS ALL CLOSE;
250 FILENAME WPSWBHTM TEMP;
NOTE: Writing HTML(WBHTML) BODY file d:\wpswrk_TD31120#LN00012
251 ODS HTML(ID=WBHTML) BODY=WPSWBHTM GPATH="d:\wpswrk_TD31120";
252 &init;
253 options set=PYTHONHOME "D:\python310";
254 PROC PYTHON;
255 EXPORT DATA=sd1.have PYTHON=df;
NOTE: Creating Python data frame 'df' from data set 'SD1.have'
ERROR: Received unknown response [10]
256 SUBMIT;
257 df.info()
258 dfo=df
259 ENDSUBMIT;
NOTE: Submitting statements to Python:
WARNING: Could not cleanly terminate Python worker: Error writing to pipe : The pipe is being closed.
ERROR: Altair SLC has encountered a problem - please contact Altair Data Analytics Customer Support
260 IMPORT DATA=sd1.dfo PYTHON=dfo;
261 quit; run;
262 ODS ALL CLOSE;
263 FILENAME WPSWBHTM CLEAR;
ERROR: Expected a statement keyword : found "IMPORT"
264 run;quit;
R
&init;
OPTIONS NOERRORABEND;
options set=RHOME "D:\d451";
PROC r;
EXPORT DATA=sd1.have r=df;
SUBMIT;
df.info()
dfo=df
ENDSUBMIT;
IMPORT DATA=sd1.dfo r=dfo;
90 ODS ALL CLOSE;
291 FILENAME WPSWBHTM TEMP;
NOTE: Writing HTML(WBHTML) BODY file d:\wpswrk_TD31120#LN00014
292 ODS HTML(ID=WBHTML) BODY=WPSWBHTM GPATH="d:\wpswrk_TD31120";
293 &init;
294 OPTIONS NOERRORABEND;
295 proc datasets lib=sd1
296 nodetails nolist;
297 delete dfo;
298 run;quit;
NOTE: Deleting "SD1.DFO" (memtype="DATA")
NOTE: Procedure datasets step took :
real time : 0.000
cpu time : 0.000
NOTE: Directory contains files of mixed engine types
299 libname sd1 "d:/sd1";
NOTE: Library sd1 assigned as follows:
Engine: WPD
Physical Name: d:\sd1
300 options set=RHOME "D:\d451";
301 PROC r;
NOTE: Using R version 4.5.1 (2025-06-13 ucrt) from d:\r451
302 EXPORT DATA=sd1.have r=df;
NOTE: Creating R data frame 'df' from data set 'SD1.have'
303 SUBMIT;
304 df.info()
305 dfo=df
306 ENDSUBMIT;
NOTE: Submitting statements to R:
Error in df.info() : could not find function "df.info"
NOTE: Processing of R statements complete
dfo=df
307 IMPORT DATA=sd1.dfo r=dfo;
NOTE: Creating data set 'SD1.dfo' from R data frame 'dfo'
NOTE: Data set "SD1.dfo" has 5 observation(s) and 4 variable(s)
308 run;quit;
NOTE: Procedure r step took :
real time : 0.282
cpu time : 0.015
309
310 proc print data=sd1.dfo;
311 run;
NOTE: 5 observations were read from "SD1.dfo"
NOTE: Procedure print step took :
real time : 0.004
cpu time : 0.000
312 quit; run;
313 ODS ALL CLOSE;
314 FILENAME WPSWBHTM CLEAR;