brightway-lca / brightway2-io

Importing and exporting for the Brightway LCA framework
BSD 3-Clause "New" or "Revised" License
26 stars 40 forks source link

minor compatibility issue #260

Open taneugene opened 2 months ago

taneugene commented 2 months ago

In bw2io/importers/ecoinvent_lcia.py, lines 18-24.

class EcoinventLCIAImporter(LCIAImporter):
    def __init__(self, biosphere_database: str | None = None):

The | None = None format isn't compatible with Python versions <3.10, and brightway is supposed to be compatible with python versions >= 3.8.

Is there a way to fix this, perhaps just by taking it out?

PeiaKassio commented 1 month ago

Hi, I have the same problem. I tried with python 3.9.13 and with python 3.12.3. Any ideas for fixes, yet?

Are you using brightway2 or brightway25?