Skip to content

Error from runcrate convert #53

Open

Description

@HrishiDhondge

I am trying to convert CWLProv to RO crate using runcrate convert. But getting the following error every time I run this command:

File "/usr/lib/python3.10/site-packages/rocrate/rocrate.py", line 122, in __read
    raise ValueError(f"Not a valid RO-Crate: missing {Metadata.BASENAME}")
ValueError: Not a valid RO-Crate: missing ro-crate-metadata.json

I checked it with a workflow and a tool written in CWL. In both cases, I am getting the same error. Did someone try to run it with CWLprov recently?

Activity

  1. simleo commented on Jun 20, 2023

    @simleo
    Collaborator

    Can you provide the command sequence you're using? You should do something like:

    cwltool --provenance ro myworkflow.cwl myparams.yml
    runcrate convert ro -o ro_crate
    
  2. HrishiDhondge commented on Jun 20, 2023

    @HrishiDhondge
    Author

    I used the same command. This might be also coming from the cwltool. When I run cwltool with --provenance option, I get the following warning:

    research_obj set but one of process_run_id or prov_obj is missing from runtimeContext: <cwltool.context.RuntimeContext object at 0x7ff8e3e73dc0>
    

    I have asked about it in the CWL forum as well. The thread can be found here.

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

Metadata

Metadata

Assignees

No one assigned

    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