bw2setup()执行遇ValueError:无法识别基础流标识符求助
Brightway2 LCA建模初始化报错问题
我刚开始使用Brightway2进行LCA建模,执行以下代码时出现错误:
if any("biosphere" in db for db in bd.databases): print('Biosphere is already present in the project.') else: bi.bw2setup()
错误信息如下:
Traceback (most recent call last): File "<string>", line 4, in <module> File "C:\PROGRA~3\ANACON~1\envs\env_bw25\Lib\site-packages\bw2io\__init__.py", line 165, in bw2setup create_default_lcia_methods() File "C:\PROGRA~3\ANACON~1\envs\env_bw25\Lib\site-packages\bw2io\__init__.py", line 147, in create_default_lcia_methods ei.write_methods(overwrite=overwrite) File "C:\PROGRA~3\ANACON~1\envs\env_bw25\Lib\site-packages\bw2io\importers\base_lcia.py", line 77, in write_methods method.write(self._reformat_cfs(ds["exchanges"])) File "C:\PROGRA~3\ANACON~1\envs\env_bw25\Lib\site-packages\bw2data\method.py", line 115, in write data = [normalize_ids(line) for line in data] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\PROGRA~3\ANACON~1\envs\env_bw25\Lib\site-packages\bw2data\method.py", line 115, in <listcomp> data = [normalize_ids(line) for line in data] ^^^^^^^^^^^^^^^^^^^ File "C:\PROGRA~3\ANACON~1\envs\env_bw25\Lib\site-packages\bw2data\method.py", line 109, in normalize_ids raise ValueError( ValueError: Can't understand elementary flow identifier ['biosphere3', '9990b51b-7023-4700-bca0-1a32ef921f74'] in data line (['biosphere3', '9990b51b-7023-4700-bca0-1a32ef921f74'], 1.6)
执行bd.methods时显示“Methods dictionary with 1 object(s)”,我认为该问题与此相关,已遵循Brightway2入门教程的步骤操作,恳请提供帮助或建议。
内容的提问来源于stack exchange,提问作者rez
相关产品推荐
相关产品推荐

