0 votes
58 views

Hi 

I got this message: ERROR:root:calculation failed: -32601: Does not understand: calculate when I run this (after connecting to IPC server to OpenLCA 2.0.3): 

setup = olca.CalculationSetup()

setup.calculation_type = olca.CalculationType.UPSTREAM_ANALYSIS

setup.product_system = olca.ref(

    olca.ProductSystem,

    '5db4432c-2407-4ceb-bf26-886975ef8ed0'

)

setup.impact_method = olca.ref(

    olca.ImpactMethod,

    '8280f30d-2cdd-3451-b0d2-2e439f836b1e'

)

setup.amount = 1.0

result = client.calculate(setup) 

I tried to install Olca through: 

pip install -U olca-ipc

but I got this message when I run the same code:

ModuleNotFoundError: No module named 'olca'

So I am using Olca 0.0.12:

pip install olca-ipc==0.0.12

Any ideas what is the problem ?

Thanks in advance !

in openLCA by (130 points)

1 Answer

+1 vote
by (1.1k points)
Hi,

Are you using the IPC server with openLCA? If yes, what version of openLCA are you using?

I would advise to use the latest version of openLCA with the latest version of olca-ipc. Did you check the documentation (https://greendelta.github.io/openLCA-ApiDoc/ipc/)?

Cheers,

Fran├žois
ago by (1.1k points)
This is the documentation for 0.0.12 only. I am sorry that it was not clear.
...