Thorsten Saeger Posted June 1, 2020 Share Posted June 1, 2020 Hello, this is an extension of https://community.spotfire.com/questions/python-data-function-pydf-error-could-not-execute-function-call I am using Spotfire 10.3 (LTS) and I deployed thePython Data Function Extension (for TIBCO Spotfire 7.13 to 10.6) on our server. Things seem to work OK, however, when executing a python data function, I get the error Could not execute function call 'Python Script DataFunction' File not found: C:UsersmyuserAppDataLocalTemptmp2FE.stdf at Spotfire.Dxp.Data.Import.FileDataSource..ctor(String filePath, String[] additionalFilePaths) at SpotfirePS.DataFunctions.Python.PythonDataFunctionExcecutor.d__4.MoveNext() at Spotfire.Dxp.Application.Extension.CustomDataFunctionExecutor.d__5.MoveNext() at Spotfire.Dxp.Data.DataFunctions.DataFunctionExecutorService.d__3.MoveNext() The python code is quite simple: from Python_Data_Function import * # Put package imports here # Please make sure you have the correct packages installed in your Python environment import pandas as pd d = {'col1': [1, 2, 3, 4, 5], 'col2': [3, 4, 5, 6, 7]} df = pd.DataFrame(data=d) df.to_csv("c:\temp\spdf.csv") ot = dfTo isolate the problem, I did not defined any input parameters.ot is the output table which is defined as output parameter, of course. As a check, I also write the the pandas data frame to a csv. Now, the csv file is written correctly, which means the python function is called. It seems that the temp stdf file is simply not written. Any advice Upgrading to 10.7 is not an option. I tried the python extension 1.3 and 1.3.1. I am using Python version 3.7.4. Thanks much, Thorsten Link to comment Share on other sites More sharing options...
Manoj Singh Posted June 2, 2020 Share Posted June 2, 2020 You can post the error message and related information on the link:https://community.spotfire.com/wiki/python-data-function-extension-tibco-spotfire-713-106to get quick help. Link to comment Share on other sites More sharing options...
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