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

No isSupplementTo relation #8

Open
hepcat72 opened this issue Jul 2, 2018 · 2 comments
Open

No isSupplementTo relation #8

hepcat72 opened this issue Jul 2, 2018 · 2 comments

Comments

@hepcat72
Copy link

hepcat72 commented Jul 2, 2018

  • DOI 2 cff version: 1.0.0
  • Python version: tried 2.7.12 & 3.5.2
  • Operating System: ubuntu

Description

Tried creating a .cff file using a DOI. I couldn't get doi2cff to install on my mac, so I was trying on an ubuntu virtualbox.

What I Did

>doi2cff init https://doi.org/10.5281/zenodo.1303402
Traceback (most recent call last):
  File "/home/robleach/.local/bin/doi2cff", line 9, in <module>
    load_entry_point('doi2cff==1.0.0', 'console_scripts', 'doi2cff')()
  File "/home/robleach/.local/lib/python3.5/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/home/robleach/.local/lib/python3.5/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/home/robleach/.local/lib/python3.5/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/robleach/.local/lib/python3.5/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/robleach/.local/lib/python3.5/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/home/robleach/.local/lib/python3.5/site-packages/doi2cff/cli.py", line 65, in init
    tagurl = tagurl_of_zenodo(zenodo_record)
  File "/home/robleach/.local/lib/python3.5/site-packages/doi2cff/cli.py", line 124, in tagurl_of_zenodo
    raise KeyError('Zenodo record does not contain a related identifier with isSupplementTo relation ')
KeyError: 'Zenodo record does not contain a related identifier with isSupplementTo relation '
@sverhoeven
Copy link
Collaborator

Sorry, to hear that you could not get it working on OSX.
On Travis-CI a build on OSX was included. It uses miniconda, maybe this allows helps you install it aswell.

The error you get is because the Zenodo DOI you supplied is not generated by a GitHub release.
At the moment doi2cff can only generated cff files from Zenodo entries which where generated by a GitHub release.

The error should be improved so it is clear the doi does not contain GitHub meta data.

@jspaaks
Copy link
Member

jspaaks commented Jul 4, 2018

Just to clarify: Stefan is referring to the fact that at the moment doi2cff can generate CITATION.cff files for DOIs that result from the GitHub-Zenodo integration (https://guides.github.com/activities/citable-code/).

sverhoeven added a commit that referenced this issue Jul 9, 2018
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

3 participants