Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor compatibility issue #260

Open
taneugene opened this issue May 16, 2024 · 2 comments
Open

minor compatibility issue #260

taneugene opened this issue May 16, 2024 · 2 comments

Comments

@taneugene
Copy link

taneugene commented May 16, 2024

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
Copy link

PeiaKassio commented Jun 11, 2024

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?

@mfastudillo
Copy link
Contributor

according to the changelog this is already solved in version 0.9.DEV29

https://github.com/brightway-lca/brightway2-io/blob/main/CHANGES.md

0d583be

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants