question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

KeyError: 'pipeline' when running ns-train

See original GitHub issue

Describe the bug I just did a fresh install of Anaconda3 & nerf studio, following the guide at https://docs.nerf.studio/en/latest/quickstart/installation.html

When running ns-train, even without any arguments, I get the following error:

Traceback (most recent call last):
  File "/home/josh/anaconda3/envs/nerfstudio/bin/ns-train", line 8, in <module>
    sys.exit(entrypoint())
  File "/home/josh/anaconda3/envs/nerfstudio/lib/python3.8/site-packages/scripts/train.py", line 249, in entrypoint
    tyro.cli(
  File "/home/josh/anaconda3/envs/nerfstudio/lib/python3.8/site-packages/tyro/_cli.py", line 125, in cli
    _cli_impl(
  File "/home/josh/anaconda3/envs/nerfstudio/lib/python3.8/site-packages/tyro/_cli.py", line 289, in _cli_impl
    parser_definition.apply(parser)
  File "/home/josh/anaconda3/envs/nerfstudio/lib/python3.8/site-packages/tyro/_parsers.py", line 241, in apply
    prev_subparser_tree_nodes = subparsers.apply(
  File "/home/josh/anaconda3/envs/nerfstudio/lib/python3.8/site-packages/tyro/_parsers.py", line 499, in apply
    subparser_def.apply(subparser)
  File "/home/josh/anaconda3/envs/nerfstudio/lib/python3.8/site-packages/tyro/_parsers.py", line 235, in apply
    arg.add_argument(group_from_prefix[arg.prefix])
KeyError: 'pipeline'

To Reproduce Not sure exactly how to reproduce, other than to follow the installation instructions.

Additional context Running in WSL2, Ubuntu 20.04.4, Anaconda 22.9.0, and nerfstudio 0.1.7 is installed - I tried with 0.1.6 as well.

Weirdly, this was working yesterday with a previous installation on the same machine. I reinstalled Anaconda and the nerfstudio env to try to fix an instant-ngp issue, but nerfacto was working yesterday.

Any thoughts on what could be going on here?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
enbyautumncommented, Nov 2, 2022

i used the command pip install --upgrade tyro==0.3.27 to do that (to save a few seconds of googling for anyone here)

1reaction
brentyicommented, Nov 2, 2022

Just yanked 0.3.28 from PyPI, sorry for the inconvenience!

Will make sure whatever’s causing this is in tyro’s unit tests before re-releasing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

KeyError("[E900] Could not run the full pipeline for evaluation ...
Aborting and saving the final best model. Encountered exception: KeyError("[E900] Could not run the full pipeline for evaluation.
Read more >
KeyError: 'Nextclade_pango' in ncov build - General
The input data is from ncov-ingest , filtered with augur filter , so the fields in the metadata file are strain virus gisaid_epi_isl ......
Read more >
Error when running cross_val_score - raise KeyError(key ...
I can run a manual fit/transform on the numeric pipeline without any errors: fulldf = full_pipeline.fit_transform(train).
Read more >
Snakemake for Bioinformatics - The Carpentries Incubator
Instruct Snakemake how to build the genome index as part of the pipeline by adding another rule. The command we need to run...
Read more >
ovito.data — OVITO Scripting Reference 3.7.12 documentation
This Python module defines various data object types, which are produced and processed within OVITO's data pipeline system.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found