-
Notifications
You must be signed in to change notification settings - Fork 432
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
KeyError: 'language_info' #519
Comments
Yes, so the metadata format technically doesn't require that the language or kernel fields be provided. However without them we can't A) choose what kernel to run (the UI prompts you) and B) can't know what language to translate parameters into. Ideally we should raise a clearer message to this effect. I'll mark it as an enhancement issue for new contributors to be able to tackle. |
To help diagnose this can you:
|
I was looking at picking this up as my first contribution but I haven't been able to reproduce with missing metadata fields as @MSeal describes. It appears the line that threw the exception runs after executing the notebook: Is there still an error message fix needed here as described? |
This did not happen since posting this, so I have no new information to share. I will close this for now and reopen if issue rises again |
We are also hitting this in CI, with no apparent relevant changes. |
I just recently had this. For me, I think Reverting to |
Add back original fix to known issue nteract/papermill#519
* Update start.ipynb Update the start notebook with the new start notebook that details how to run against our hardware. Notably, only people with access can run circuits against our hardware. * Update start.ipynb lint * Update start.ipynb attach --pre flag to cirq install for stable version * Update start.ipynb Put in default value for processor_id * Update start.ipynb add Black as default. This _shouldn't_ run against actual hardware since a valid project_id is never specified. A valid `processor_id` however is needed to pass the CI. * Update start.ipynb populate default project_id * set virtual=True to pass CI check * Update start.ipynb make default processor_id an empty string now that `virtual=True` is set * Update start.ipynb add back processor_id so it matches current merged version * Update start.ipynb rm `cirq --pre` install * Update start.ipynb delete overriding instance of `engine` * Update start.ipynb fix * Update start.ipynb nit * Update start.ipynb Add back original fix to known issue nteract/papermill#519 * Update start.ipynb resolve nit
I'm sorry for the lack of information or way to reproduce, but that's all the information I have:
While running a notebook we run many times, we got the following exception:
Any idea why content would not have that key?
The text was updated successfully, but these errors were encountered: