Questions tagged [jyni]

6 questions
2
votes
0 answers

JyNI Eclipse setup

I have the following Java file in Eclipse. package java_python_tutorial; import org.python.core.PyInstance; import org.python.util.PythonInterpreter; public class MainJython { public static void main(String[] args) { PythonInterpreter…
npCompleteNoob
  • 481
  • 1
  • 5
  • 15
2
votes
2 answers

Not able to import numpy in JyNi alpha 4

I am new to python and jython i want to import numpy in my jython program but whenever i import it shows following error: Traceback (most recent call last): File "/home/phpdev/workspace/FirstProgram/testone.py", line 16, in import…
jython123
  • 141
  • 1
  • 9
1
vote
1 answer

Passing parameters from Java to Python using Jython

I am passing string values to a python script using Jython. In my program, I do this several times. However, during a test I am running to see if the class that sends the parameters is working properly, I see that the python script outputs the same…
jvalderr
  • 23
  • 5
1
vote
0 answers

Using jyNI to access win32api file

I have a java gui application that is feeding info into a python script using a python interpreter. This python script uses win32 to access a shared outlook folder. Separately, the python script works but my java application calls out an ImportError…
jvalderr
  • 23
  • 5
1
vote
1 answer

Python thread parallelization escaping the GIL

I'm rephrasing my question because I think many thought it was the question "does python have threads". It does, but CPython also has the GIL, which will never schedule more than one thread at any given time. That makes CPython threads useless for…
mikep
  • 3,841
  • 8
  • 21
0
votes
1 answer

How to configure ExecuteScript processor in NIfi to use JyNI package to enable libraries using numpy?

I am using Apache Nifi and there the executeScript processor for python. I understand from other entries that this processor runs on Jython, which can not import libraries using CPython like e.g. numpy. The library I want to use uses pandas and…