LCA-ActivityBrowser / activity-browser

GUI for brightway2
GNU Lesser General Public License v3.0
151 stars 57 forks source link

Error when LCIA calculation #695

Closed saavedradelosom closed 2 years ago

saavedradelosom commented 2 years ago

Dear all,

I have obtained the following error (enclosed below) in LCA setup when calculating Scenario LCA. Thank you all very much in advance.

Traceback (most recent call last): File "C:\Users\Mateo Saavedra\miniconda3\envs\ab_dev\lib\site-packages\activity_browser\layouts\tabs\LCA_results_tab.py", line 60, in generate_setup new_tab = LCAResultsSubTab(cs_name, presamples, self) File "C:\Users\Mateo Saavedra\miniconda3\envs\ab_dev\lib\site-packages\activity_browser\layouts\tabs\LCA_results_tabs.py", line 101, in init self.do_calculations() File "C:\Users\Mateo Saavedra\miniconda3\envs\ab_dev\lib\site-packages\activity_browser\layouts\tabs\LCA_results_tabs.py", line 146, in do_calculations self.mlca = SuperstructureMLCA(self.cs_name, self.presamples) File "C:\Users\Mateo Saavedra\miniconda3\envs\ab_dev\lib\site-packages\activity_browser\bwutils\superstructure\mlca.py", line 33, in init super().init(cs_name) File "C:\Users\Mateo Saavedra\miniconda3\envs\ab_dev\lib\site-packages\activity_browser\bwutils\multilca.py", line 124, in init self.lca.lci(factorize=True) File "C:\Users\Mateo Saavedra\miniconda3\envs\ab_dev\lib\site-packages\bw2calc\lca.py", line 342, in lci self.lci_calculation() File "C:\Users\Mateo Saavedra\miniconda3\envs\ab_dev\lib\site-packages\bw2calc\lca.py", line 350, in lci_calculation self.supply_array = self.solve_linear_system() File "C:\Users\Mateo Saavedra\miniconda3\envs\ab_dev\lib\site-packages\bw2calc\lca.py", line 314, in solve_linear_system return self.solver(self.demand_array) File "C:\Users\Mateo Saavedra\miniconda3\envs\ab_dev\lib\site-packages\pypardiso\scipy_aliases.py", line 46, in spsolve solver.factorize(A) File "C:\Users\Mateo Saavedra\miniconda3\envs\ab_dev\lib\site-packages\pypardiso\pardiso_wrapper.py", line 150, in factorize self._call_pardiso(A, b) File "C:\Users\Mateo Saavedra\miniconda3\envs\ab_dev\lib\site-packages\pypardiso\pardiso_wrapper.py", line 281, in _call_pardiso raise PyPardisoError(pardiso_error.value) pypardiso.pardiso_wrapper.PyPardisoError: The Pardiso solver failed with error code -3. See Pardiso documentation for details.

haasad commented 2 years ago

See https://github.com/haasad/PyPardisoProject/issues/36

You should be able to fix your environment by downgrading intel-openmp:

conda install intel-openmp=2021.4

or create a new environment with:

conda create -n ab_dev_fix activity-browser-dev intel-openmp=2021.4

Please let me know if this fixes your problem. I'm working on a permanent solution for this, but as it is a problem of incompatible dependencies that only occurs on Windows the solution isn't straightforward.

saavedradelosom commented 2 years ago

It works. Thank you very much!

Best, Mateo

Mateo Saavedra del Oso

PhD candidate

Group of Environmental Biotechnology // Department of Chemical Engineering

CRETUS Institute // Universidade de Santiago de Compostela 15782 Santiago de Compostela Mobile: +34 697 838 104

e-mail: @.**@.>


De: Adrian Haas @.> Enviado: Wednesday, January 12, 2022 10:45:34 AM Para: LCA-ActivityBrowser/activity-browser @.> Cc: SAAVEDRA DEL OSO MATEO @.>; Author @.> Asunto: Re: [LCA-ActivityBrowser/activity-browser] Error when LCIA calculation (Issue #695)

See haasad/PyPardisoProject#36https://github.com/haasad/PyPardisoProject/issues/36

You should be able to fix your environment by downgrading intel-openmp:

conda install intel-openmp=2021.4

or create a new environment with:

conda create -n ab_dev_fix activity-browser-dev intel-openmp=2021.4

Please let me know if this fixes your problem. I'm working on a permanent solution for this, but as it is a problem of incompatible dependencies that only occurs on Windows the solution isn't straightforward.

— Reply to this email directly, view it on GitHubhttps://github.com/LCA-ActivityBrowser/activity-browser/issues/695#issuecomment-1010846142, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AXIKTGPWKDX6RC524QL3FRDUVVET5ANCNFSM5LXMSELA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.Message ID: @.***>

bsteubing commented 2 years ago

similar solutions are described in https://github.com/LCA-ActivityBrowser/activity-browser/issues/694