John Lyall Posted December 3, 2019 Posted December 3, 2019 Modulesimported and script has runfine 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.4and there is no option to revert it. Error Message: Could not execute function call 'outputcheck' File not found: C:Usersw55207AppDataLocalTemptmpDD7D.stdf at Spotfire.Dxp.Data.Import.FileDataSource..ctor(String filePath, String[] additionalFilePaths) at SpotfirePS.DataFunctions.Python.PythonDataFunctionExcecutor.d__2.MoveNext() at Spotfire.Dxp.Application.Extension.CustomDataFunctionExecutor.d__5.MoveNext() at Spotfire.Dxp.Data.DataFunctions.DataFunctionExecutorService.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 propertynamed dataout2 dataout2 = 'madeit'
John Lyall Posted December 3, 2019 Author Posted December 3, 2019 Solved: It was due to an Input Parameter that had not been referenced in the script. The file not found error occurs whenever there is a mismatch between the parameters defined in Edit Script and those used in Edit Parameters. Checking required parameter is a handy safeguard for this. Note this is forSpotfire 10.3 There seems to be no issue with the Python Engine Version Change.
Prem Parag Shah Posted January 16, 2020 Posted January 16, 2020 UPDATE: as of Spotfire 10.7, Python for data functions is now native in Spotfire. Users on Spotfire 10.7+ should use the native version which you can read about here: https://community.spotfire.com/wiki/Python-data-function-tibco-spotfire"
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now