SAP Knowledge Base Article - Preview

2715479 - Execute Python script through exec() - SAP Data Services and SAP Cloud Integration for Data Services

Symptom

  •  How to execute Python files by exec() command in a Designer script or Preload script (CIDS).
  • Script can be executed successfully by command line. 
  • Adding a Print function to trace the exec() command captured the below errors or similar:
    Error "can't open file '<directory>\python.exe: can't open file '<filepath>': [Errno 2] No Such file or directory"
    Error "command "python" or python.exe is not recognized"


Read more...

Environment

SAP Data Services

Product

SAP Data Services 4.2

Keywords

function, running, doesn't generate expected CSV file, CIDS, CPIDS, CPI, CI-DS, HCI , KBA , EIM-DS-EXE , Job Execution , EIM-DS , Data Services , LOD-HCI-DS-AGNT , On-Premise Agent, Connectivity, Task Run errors , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.