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

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

Open Shima-Fa opened 5 months ago

Shima-Fa commented 5 months ago

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 commented 3 months ago

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