Skip to content

Convertor of cli_tool not working #152

Closed

Description

@RishabhBhatnagar

This is a follow-up of #148 (comment) .

I've tried running the convertor. But couldn't run it successfully for any of the ways defined in the README.md file.

The following are the ways I tried and the errors they've raised.

convertor --infile file.rdf --outfile output.json raised following error:
Error: Invalid value for '--to' / '-t': invalid choice: undefined. (choose from json, rdf, yaml, xml, tag)
convertor --from rdf file.rdf --to json output.json raised following error:
spdx.parsers.builderexceptions.FileTypeError: INPUT FILETYPE NOT SUPPORTED. (only RDF and TAG format supported)
convertor -f rdf file.rdf -o output.json raised following error:
Error: Invalid value for '--to' / '-t': invalid choice: undefined. (choose from json, rdf, yaml, xml, tag)

If you think I might've made some mistake while running the tool, you can check how I ran it in this google colab file

Activity

  1. TraceyOnim commented on Jun 30, 2021

    @TraceyOnim

    Is there any follow-up on the issue? I'm also facing the same error .

  2. pombredanne commented on Jun 30, 2021

    @pombredanne
    Member

    @TraceyOnim not yet... help would be mucho welcomed!

  3. nicoweidner commented on Sep 5, 2022

    @nicoweidner
    Collaborator

    It looks like the issues reported here were actually fixed in #174; the errors are gone. However, the same PR caused an issue with the first example where both infile and outfile is used. That is caught by this block and just prints the help message.

    I think this issue can be used for this followup problem as the title is sufficiently vague ;-)

  4. meretp commented on Oct 12, 2022

    @meretp
    Collaborator

    I'll have a look.

  5. nicoweidner commented on Oct 14, 2022

    @nicoweidner
    Collaborator

    Fixed via #235

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions