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

Excel file import - AttributeError: 'int' object has no attribute 'lower' #241

Open
Shima-Fa opened this issue Jan 29, 2024 · 1 comment

Comments

@Shima-Fa
Copy link

Hi, during an export of an external foreground database, I am getting an AttributeError.

approach is as :

import bw2io
import wurst as w
from brightway2 import *
from bw2data.parameters import ActivityParameter, DatabaseParameter, ProjectParameter, Group
from premise import*

db= bw.ExcelImporter(r'S:\path\importfile.xlsx')
db.apply_strategies()
db.match_database("ecoinvent 3.8_cutoff", fields=('name', 'unit', 'location', 'reference product'))
db.statistics()

BW packages in my project environment are :

PacK

and the following error is as :

error

@cmutel I would appreciate any help on fixing this issue.

@tngTUDOR
Copy link
Contributor

@Shima-Fa can you provide the outputs of the db.apply_strategies() part of your code to provide more context?

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

2 participants