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

Errors when going through the examples notebook #4

Open
lassekp opened this issue Oct 28, 2024 · 3 comments
Open

Errors when going through the examples notebook #4

lassekp opened this issue Oct 28, 2024 · 3 comments

Comments

@lassekp
Copy link

lassekp commented Oct 28, 2024

Pathways errors.docx

Hello,
I tried going through the examples notebook this morning, and encountered some errors (see attached). I did not change any of the code in the notebook.

Any fixes to these issues?

Thanks in advance!

  • Lasse Poulsen
@romainsacchi
Copy link
Collaborator

Hi @lassekp,

  1. this is only a warning because one field of the data package descriptor does not conform to the validation rules. Although annoying, it can be ignored.
  2. Right. This is because the class PathwaysDataPackage is not just yet in the stable release/main branch of premise. To use it, you have to install the pathways branch of premise, like so: pip install git+https://github.com/polca/premise.git@pathways This will install that specific version of premise which contains that class, which allows generating pathways-compatible data packages containing premise databases inside.
  3. Indeed, for some reason, that double_counting argument disappeared. We're working on re-implementing this now. I will let know you when that happens.

@lassekp
Copy link
Author

lassekp commented Oct 30, 2024

Thanks @romainsacchi.

I installed the specific Premise version, which fixed the issue - However, now I get a new error when trying to create a database (attached). I dont have this specific excel-file that it is searching for, and I can't seem to find it on the Premise github either. Should it be looking for the yml file instead?
Errno 2 No such file or directory
metals folder

@romainsacchi
Copy link
Collaborator

Indeed, it seems I forgot to declare it in the packaging setup. As a quick fix, you can download the missing files from here and paste them into your folder.

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

2 participants