在此网页https://github.com/PoutineAndRosti/Brightway-Seminar-2017/blob/master/Day%201%20AM/2%20-%20BW%20structure%上的在线研讨会之后,我正在 Brightway 做一个教程20and%20first%20LCA.ipynb
一切都很好,直到该部分:2.1)LCA计算的一般语法
特别是,当我运行命令时:
[In] myFirstLCA_quick.lci()
我在输出中有一条错误消息:
myFirstLCA_quick.lci() # Builds matrices, solves the system, generates an LCI matrix. File
“/home/dario/.local/lib/python2.7/site-packages/bw2calc/lca.py”,第 278 行,在 lci self.load_lci_data(builder) 文件“/home/dario/.local/lib/python2 .7/site-packages/bw2calc/lca.py”,第 177 行,在 load_lci_data builder.build(self.database_filepath) 文件中“/home/dario/.local/lib/python2.7/site-packages/bw2calc/matrices .py”,第 143 行,在 build array = load_arrays(paths) 文件“/home/dario/.local/lib/python2.7/site-packages/bw2calc/utils.py”,第 21 行,在 load_arrays 中断言所有( os.path.isfile(fp) for fp in paths) AssertionError
附加信息:
我的操作系统是Ubuntu 16.04.3 LTS。我使用Python 2.7.14 :: Anaconda, Inc.,如果我在终端中输入conda list ,我已经安装,这些是检测到的 brightway 版本:
- Brightway2 2.1.1 py_1 cmutel
- bw2analyzer 0.9.4 py_0 cmutel
- bw2calc 1.6.2 py_0 cmutel
- bw2data 3.0.rc1 py_0 cmutel
- bw2io 0.6.RC3 py_0 cmutel
- bw2参数 0.6.1.2 py_3 cmutel
附加信息(在克里斯回答之后):
这些代码行:
for db in bw.databases:
print(db, len(bw.Database(db)))
返回:
(u'ecoinvent 2.2', 4087)
(u'biosphere3', 4029)
这些代码行:
for db in bw.databases:
print(db, len(bw.Database(db)))
返回:
(u'ecoinvent 2.2', 4087)
(u'biosphere3', 4029)
这些行:
import brightway2 as bw
for db in bw.databases:
print bw.Database(db).process()
返回
没有任何
没有任何
你可以帮帮我吗?
先感谢您
达里奥