0 votes
26 views
I'm trying to test the Python in openLCA, but simple things as exporting pandas or even olca doesn't seem to work and I get this error:

10:57:01 ERROR org.openlca.app.util.ErrorReporter - failed execute script

org.python.core.PyException: ImportError: No module named pandas

at org.python.core.Py.ImportError(Py.java:327)

at org.python.core.imp.import_first(imp.java:1232)

at org.python.core.imp.import_module_level(imp.java:1363)

at org.python.core.imp.importName(imp.java:1544)

at org.python.core.ImportFunction.__call__(__builtin__.java:1285)

at org.python.core.PyObject.__call__(PyObject.java:433)

at org.python.core.__builtin__.__import__(__builtin__.java:1232)

at org.python.core.imp.importOneAs(imp.java:1580)

at org.python.pycode._pyx41.f$0(<string>:4)

at org.python.pycode._pyx41.call_function(<string>)

at org.python.core.PyTableCode.call(PyTableCode.java:173)

at org.python.core.PyCode.call(PyCode.java:18)

at org.python.core.Py.runCode(Py.java:1703)

at org.python.core.Py.exec(Py.java:1747)

at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:268)

at org.openlca.app.devtools.python.Jython.exec(Jython.java:49)

at org.openlca.app.devtools.python.PythonEditor.lambda$0(PythonEditor.java:47)

at org.openlca.app.WrappedJob.run(WrappedJob.java:30)

at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)

After looking up a bit I found that it is Jython? I'm very new into coding, specially Python.

Is it worth it to learn it to try and automate openLCA? Or am I doing something wrong?
ago in openLCA by (240 points)

1 Answer

+1 vote
ago by (134k points)
selected ago by
 
Best answer
You are right, the Python version to be executed in the Python developer window in openLCA is Jython, https://www.jython.org. For "original" Python, you can use the IPC interface of openLCA.
...