maximikos / Brightway2_Intro

This repo contains an introduction to the use of the Brightway2 LCA framework
Creative Commons Attribution 4.0 International
42 stars 19 forks source link

Assertion Error #5

Open mert21433 opened 2 years ago

mert21433 commented 2 years ago

Hello!

I am having the shown error at the cell where ecoinvent is imported: Help is greatly appreciated!


AssertionError Traceback (most recent call last) Input In [29], in <cell line: 1>() ----> 1 ei35cut = bw.SingleOutputEcospold2Importer(fpei35cut, 'ecoinvent 3.5_cutoff_ecoSpold02')

File ~\anaconda3\envs\bw2\lib\site-packages\bw2io\importers\ecospold2.py:71, in SingleOutputEcospold2Importer.init(self, dirpath, db_name, extractor, use_mp, signal) 69 start = time() 70 try: ---> 71 self.data = extractor.extract(dirpath, db_name, use_mp=use_mp) 72 except RuntimeError as e: 73 raise MultiprocessingError( 74 "Multiprocessing error; re-run using use_mp=False" 75 ).with_traceback(e.traceback)

File ~\anaconda3\envs\bw2\lib\site-packages\bw2io\extractors\ecospold2.py:61, in Ecospold2DataExtractor.extract(cls, dirpath, db_name, use_mp) 59 @classmethod 60 def extract(cls, dirpath, db_name, use_mp=True): ---> 61 assert os.path.exists(dirpath) 62 if os.path.isdir(dirpath): 63 filelist = [ 64 filename 65 for filename in os.listdir(dirpath) 66 if os.path.isfile(os.path.join(dirpath, filename)) 67 and filename.split(".")[-1].lower() == "spold" 68 ]

AssertionError: