0 votes
484 views

Hi all,

I'm running into an error when running my openlca python code. 

The error looks like this

ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

This then also crashes my openLCA app. 

A small sample of the code (the error happens in the last step):

client = olca.Client(8080)
setup = olca.CalculationSetup()
setup.calculation_type = olca.CalculationType.CONTRIBUTION_ANALYSIS
setup.amount = 1.0
setup.impact_method = client.find(olca.ImpactMethod, 'ReCiPe 2016 Midpoint (H)')
product_system = client.create_product_system(productID['id'][0], default_providers='prefer', preferred_type='UNIT_PROCESS')
setup.product_system = olca.ref(olca.ProductSystem, product_system.id)
calc_result = client.calculate(setup)

Anyone who has seen this before and knows how to solve it?

Cheers

Hans

in openLCA by (230 points)

Please log in or register to answer this question.

ask.openLCA is a question-and-answer (Q&A) website on Life Cycle Assessment (LCA).

It is also the public support platform for openLCA, openLCA Nexus, data.openLCA and the LCA Collaboration Server.

Before asking questions please also consult our online manuals for openLCA and the LCA Collaboration Server.

Receive guaranteed and prioritised professional support via GreenDelta's help desk.

ask.openLCA is run by GreenDelta, the creators of openLCA.

openLCA

LCA Collaboration Server
...