+2 votes
I'm trying to set up a connection between OpenLCA and the Spyder IDE. When I try to import the olca module, I receive an error stating "TypeError: 'type' object is not subscriptable" related to line 646 of the code (def lci_inputs(self, result: schema.SimpleResult) -> list[schema.FlowResult]:).

I'm not sure how to fix this error, and this is something that seems to have popped up recently, as I have been able to successfully import this module and run calculations in OpenLCA from Spyder previously.
in openLCA by (170 points)

1 Answer

+1 vote
by (200 points)
I had the same error, and your post helped me to identify the error

it seems the problem is only related to version 0.11 of olca-ipc

solution: install v 0.10 of olca-ipc

download the tar.gz file of the older version and install by

pip install c:\path\file.tar.gz