python - Importing in Brightway, Ecoinvent databse which is in Ecospold2 format - Stack Overflow

admin2025-04-18  5

I have been trying to work in brightway to import ecoinvent that is in ecospold 2 format but have been facing a lot of issues.

If anyone knows what could be done please do update me

dirpath = 'ecoinvent'

ei310 = bw2.SingleOutputEcospold2Importer(dirpath, "ecoinvent 3.10")
ei310.apply_strategies()
ei310.statistics()
ei310.write_database()

I have been trying this code but always have

ValueError Traceback (most recent call last) Cell In[106], line 1 ----> 1 ei310 = bw2.SingleOutputEcospold2Importer(dirpath, "ecoinvent 3.6 conseq") 2 ei310.apply_strategies() 3 ei310.statistics()

File /opt/anaconda3/envs/brightway-env/lib/python3.9/site-packages/bw2io/importers/ecospold2.py:133, in SingleOutputEcospold2Importer.init(self, dirpath, db_name, biosphere_database_name, extractor, use_mp, signal, reparametrize_lognormals, add_product_information) ... 769 return self._value 770 else: --> 771 raise self._value

ValueError:

This error

转载请注明原文地址:http://www.anycun.com/QandA/1744970799a90210.html