0 votes
1 view

I would test my function-catalog with python, using the script below : 

python script :

import pandas as pd 
names = ['Bob','Jessica','Mary','John','Mel']
birth = [968, 155, 77, 578, 973]
BabyDataSet = list(zip(names,birth))
df = pd.DataFrame(data = BabyDataSet, columns=['names', 'birth'])
df.to_csv('essai.csv',index=False,header=False)

when the log file shows  error :

Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'essai' is not defined

file knowageDataMiningEngine.log shows : 

Caused by: it.eng.spagobi.utilities.engines.SpagoBIEngineRuntimeException: Python engine error 
Technical details:
PythonOutputExecutor.java:
fileVarName1026081874.write(str(essai))
fileVarName1026081874.close()
EXECUTION FAILED

What could be the problem I found, grateful for any help..

Environment knowage 6.2 CE + windows 10 + mysql 5.5 + google chrome + tomcat 7.0 + python 3.6 +jpy 0-9.0
asked Oct 30, 2018 in Data Mining by isil (260 points)
retagged Oct 30, 2018 by isil | 1 view

Please log in or register to answer this question.

1,553 questions
1,017 answers
2,037 comments
2,567 users