Welcome to Knowage Q&A, where you can ask questions and receive answers from other members of the community.
0 votes
1 view

I wanted to use the Python scripting feature of the function catalogue but unfortunately I get an error.

The error is:

java.lang.UnsatisfiedLinkError: Can't load library: /home/spagobi/PythonJpy/jpy/build/lib.linux-x86_64-3.4/jpy.cpython-34m.so

I moved the jpyconfig.properties to the knowagedataminingengine/src directory and it contains the correct path to my build files. But it doesn't seem to get read as the error implies that it tries to open the files from a completly different location.

Content of my jpyconfig.properties file:

# Created by 'jpyutil.py' tool on 2018-03-26 11:14:08.118377
# This file is read by the jpy Java API (org.jpy.PyLib class) in order to find shared libraries
jpy.jpyLib = ~/jpy/build/bdist.linux-x86_64/wheel/jpy.cpython-35m-x86_64-linux-gnu.so
jpy.jdlLib = ~/jpy/build/bdist.linux-x86_64/wheel/jdl.cpython-35m-x86_64-linux-gnu.so
jpy.pythonLib = /usr/lib/python3.5/config-3.5m-x86_64-linux-gnu/libpython3.5.so
jpy.pythonPrefix = /usr
jpy.pythonExecutable = /usr/bin/python3

Environment Knowage 6.11 Debian9
in Analyses by (710 points)

1 Answer

+1 vote
 
Best answer

Hi, I just found that there is a typo in the documentation. Sorry about that!

The correct path where to put your JPY config file is knowagedataminingengine\WEB-INF\classes

by (15.2k points)
selected by
Ok this error seems to be resolved but now I get a new one. Thx for the help

Here is the knowageDataMiningEngine.log describing the error:
https://pastebin.com/1QSsYuCs
Please check if there are other logs, maybe catalina.out or others.
here is the log of knowagEdataminingengine.log which causes the crash:
https://pastebin.com/50DgFMQY

the log of catalina.out looks normal but maybe I overlooked an error:

https://pastebin.com/ZhHP76gm
Now the error seems to be in you Python script, as the script evalutation fails.
Found the error.

Thx works now.
...