0 votes
599 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.

...