Python Data Function Temp File Not Found - Python Engine Version Change?

Modules imported and script has run fine previously with Pandas etc, PyDf has now stopped working. Environment variables are all set up set up.

It is possible my Python Engine has changed, i noticed before it was 3.4 and running fine, now it is 3.7.4 and there is no option to revert it.

Error Message:

Could not execute function call 'outputcheck'

File not found: C:\Users\w55207\AppData\Local\Temp\tmpDD7D.stdf

   at Spotfire.Dxp.Data.Import.FileDataSource..ctor(String filePath, String[] additionalFilePaths)

   at SpotfirePS.DataFunctions.Python.PythonDataFunctionExcecutor.<ExecuteFunctionCore>d__2.MoveNext()

   at Spotfire.Dxp.Application.Extension.CustomDataFunctionExecutor.<Spotfire-Dxp-Data-DataFunctions-IFunctionExecutor-ExecuteFunction>d__5.MoveNext()

   at Spotfire.Dxp.Data.DataFunctions.DataFunctionExecutorService.<ExecuteFunction>d__3.MoveNext()


Example Script:

from Python_Data_Function import *

# Put package imports here

# Please make sure you have the correct packages installed in your Python environment

# Attempting to output to document property named dataout2

dataout2 = 'madeit'


(1) Answer