Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assertion Error #5

Open
mert21433 opened this issue Aug 17, 2022 · 0 comments
Open

Assertion Error #5

mert21433 opened this issue Aug 17, 2022 · 0 comments

Comments

@mert21433
Copy link

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant