SciPy gives EXCEPTION_ACCESS_VIOLATION

69 Views Asked by At

I'm doing a calculator app design. Uses Java, Python, JEP. After calling the code below, it gets EXCEPTION_ACCESS_VIOLATION. This error is caused by importing the scipy library. anyone know how to fix it?

 public void analyticalMethod() {
                try (Jep jep = new Jep() {}) {
                    jep.exec("""
                            import sympy
                            import scipy
                            x=sympy.Symbol('x')
                            def analytical(x):
                            \treturn\040""" + hiddenIntegral .getText() +
                            """
                            \nresult=scipy.integrate.quad(analytical,""" + lowerLimit + """
                            ,""" + upperLimit+ """
                            )
                            \nc=result[0]
                            """);

                     result.setText(String.valueOf(jep.getValue("c")));
                } catch (Exception e) {
                    System.out.println("EXCEPTION: " + e);
                }

        }

EXCEPTION_ACCESS_VIOLATION

0

There are 0 best solutions below