openlca-python-tutorial
openlca-python-tutorial copied to clipboard
Problem with Run calculation
Thank you very much for the helpful tutorials,
I am using API with openlca, when I trying to run a calculation, an error of No module named solvers popped up in the console, so the problem is with this line : from org.openlca.eigen.solvers import DenseSolver Is there any solution for this, please?
Best regards, Husam
Yes, the script is a bit outdated and the API changed a bit and the best is probably to use an IDE with auto-complete features to find the classes and methods. The DenseSolver
is now in the org.openlca.core.matrix.solvers
package. So the import statement with the current openLCA version would be:
from org.openlca.core.matrix.solvers import DenseSolver
thank you very much!