+1 vote
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 (140 points)

1 Answer

0 votes
by (180 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
by (2.4k points)
The latest version (0.11) requires python 3.9 I believe

see: https://github.com/GreenDelta/olca-ipc.py/commit/4f995f0e72f7b061719368c3e46d4fc092d89c74