Cannot import ELCD3.2 database.

Create issue
Issue #52 new
Mario Duarte Gamas created an issue

Cannot import ELCD3.2 database (processes), invalid filename.

(Also, how can I import LCIAmethods?)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\MARIO DUARTE\AppData\Local\Programs\Python\Python36-32\lib\site-packages\bw2io\importers\", line 68, in __init__ = Ecospold1DataExtractor.extract(filepath, db_name)
  File "C:\Users\MARIO DUARTE\AppData\Local\Programs\Python\Python36-32\lib\site-packages\bw2io\extractors\", line 59, in extract
    for p in results
  File "C:\Users\MARIO DUARTE\AppData\Local\Programs\Python\Python36-32\lib\site-packages\bw2io\extractors\", line 60, in <listcomp>
    for x in p.get()
  File "C:\Users\MARIO DUARTE\AppData\Local\Programs\Python\Python36-32\lib\multiprocessing\", line 644, in get
    raise self._value
NameError: name 'filename' is not defined

Example dataset:

Comments (4)

  1. Chris Mutel repo owner

    Thanks for the bug report Mario!

    Unfortunately, we don't have the extractor to process the ILCD XML format. This would be a substantial new chunk of work, and to be honest it isn't very exciting work, either, so no one has volunteered for it. You can get an example of what would be needed by looking at the extractor for ecospold2.

    There would be one more problem in using ELCD - because ELCD has its own system of naming things, none of the "builtin" data for elementary flows or LCIA methods would work. You would need to find and import LCIA methods, presumably in another XML format.

    So, until you (or someone else) does this engineering work, or provides ELCD in a much simpler format, we can't integrate ELCD datasets.

  2. Benjamin W. Portner

    @mariojfdgamas Have you tried importing the data in OpenLCA, then exporting as ecospold2, then importing into brightway2?

  3. Log in to comment