openlca-python-tutorial icon indicating copy to clipboard operation
openlca-python-tutorial copied to clipboard

Problem with Run calculation

Open Husamalbaghdadi opened this issue 6 years ago • 2 comments

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

Husamalbaghdadi avatar Aug 14 '18 10:08 Husamalbaghdadi

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

msrocka avatar Aug 15 '18 09:08 msrocka

thank you very much!

Husamalbaghdadi avatar Aug 28 '18 07:08 Husamalbaghdadi