I am trying to execute a python script via the SSIS Execute Process task. After all the usual teething problems and attendent google searches, managed to get a basic script working as follows:-
from tkinter import messagebox
messagebox.showinfo("Title", "Hello from Python script!")
The script is called TestScript.py and runs correctly from the command line. It also runs correctly from within SSIS with the following SSIS setings:-
However, when I add the following line to the script,
import pandas as pd
it fails with the following error message:-
[Execute Process Task] Error: In Executing "C:\ProgramData\Miniconda3\python.exe" "TestScript.py" at "C:\SFTP_Uploads\TTF_test", The process exit code was "1" while the expected was "0".
Clearly the issue is to do with the pandas import, but I am uncertain as to why this should be when the script runs perfectly from the command line.
Uncertain where to go, and hopefully not an obvious issue. Any suggestions greatly appreciated.
Environment is SQL Server 2016 on Windows Server 2019; Python 3.8.3, Pandas 1.1.3