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

Importing dataset via URL + dataset ID crashes #1879

Closed
PulverCyril opened this issue Feb 15, 2021 · 1 comment · Fixed by #1894
Closed

Importing dataset via URL + dataset ID crashes #1879

PulverCyril opened this issue Feb 15, 2021 · 1 comment · Fixed by #1894
Assignees

Comments

@PulverCyril
Copy link

Describe the bug

Importing dataset via URL + dataset ID crashes. I had to try it because my datasets are never "in the knowledge graph". Using the SV-renku deployment at EPFL.

Details

Please verify and redact the details.

Renku version: 0.12.0
OS: Linux (#1 SMP Mon Mar 18 15:06:45 UTC 2019)
Python: 3.7.6

Traceback

Traceback (most recent call last):
  File "[...]/renku/cli/exception_handler.py", line 117, in main
    result = super().main(*args, **kwargs)
  File "[...]/renku/cli/exception_handler.py", line 87, in main
    return super().main(*args, **kwargs)
  File "[...]/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "[...]/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "[...]/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "[...]/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "[...]/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "[...]/renku/cli/dataset.py", line 660, in import_
    import_dataset(uri=uri, name=name, extract=extract, with_prompt=True, yes=yes, progress=_DownloadProgressbar)
  File "[...]/renku/core/commands/client.py", line 102, in new_func
    result = ctx.invoke(method, client, *args, **kwargs)
  File "[...]/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "[...]/renku/core/commands/dataset.py", line 461, in import_dataset
    delete=delete,
  File "[...]/renku/core/commands/dataset.py", line 483, in import_dataset_with_client
    record = provider.find_record(uri, client)
  File "[...]/renku/core/commands/providers/renku.py", line 73, in find_record
    dataset_name = next(ds["name"] for ds in datasets if ds["versions"].get("initial") == initial_identifier)
StopIteration

Additional context

Add any other context about the problem.

@Panaetius Panaetius added this to the sprint-2021-02-19 milestone Feb 16, 2021
@Panaetius
Copy link
Member

Thank you for reporting this. We don't currently have a clear picture why this happens, but we'll look into it in the next sprint.

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

Successfully merging a pull request may close this issue.

3 participants