Cannot import ELCD3.2 database.

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\ecospold1.py", line 68, in __init__
    self.data = Ecospold1DataExtractor.extract(filepath, db_name)
  File "C:\Users\MARIO DUARTE\AppData\Local\Programs\Python\Python36-32\lib\site-packages\bw2io\extractors\ecospold1.py", line 59, in extract
    for p in results
  File "C:\Users\MARIO DUARTE\AppData\Local\Programs\Python\Python36-32\lib\site-packages\bw2io\extractors\ecospold1.py", line 60, in <listcomp>
    for x in p.get()
  File "C:\Users\MARIO DUARTE\AppData\Local\Programs\Python\Python36-32\lib\multiprocessing\pool.py", line 644, in get
    raise self._value
NameError: name 'filename' is not defined

Example dataset:

Comments (3)

  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. Log in to comment