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

ExcelImporter write_database issue #80

Open
danielPclos opened this issue Apr 30, 2024 · 0 comments
Open

ExcelImporter write_database issue #80

danielPclos opened this issue Apr 30, 2024 · 0 comments

Comments

@danielPclos
Copy link

Hi,

I'm trying to import an excel LCI with ExcelImporter. After successfully running the apply_strategies(), match_database(with 0 unlinked exchanges) and statistics(), the program crashes when running the write_database() method. Before that error however, it does load all the activities of the file to Brightway (confirmed by activity-browser inspection).
The erro is: KeyError: ("name_of_the_loaded_database", "code_of_one_of_the_loaded_activities"). If I removed that activity from the excel file then I get the same error with another of the succesfully loaded activities.

Next if I try to run a minimalistic LCA on that inventory I get the following error:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\xxx\AppData\Local\pylca\Brightway3\name_project\processed\name_database_numbers.npy'

I suspect this file should have been created by write_database but didn't happen due to the error described above.

I attach a simplified version of the excell file with only 2 activities for reference.

Thanks in advance for any help on this issue.

Regards,
Daniel
lci_bw_minim.xlsx

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

1 participant