-
Notifications
You must be signed in to change notification settings - Fork 567
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
'NoneType' object has no attribute 'argv' with nbconvert 5.4 and nbsphinx #878
Comments
Can you try to narrow down the issue? From looking at the code I see that:
Therefore it appears that the problem shouldn't be happening. Also looking at the changes in the How are you calling |
As a work-around you could try setting this:
But normally, this shouldn't be necessary. |
I think this may be due to nbspbinx specifying the kernel directly by setting it equal to “”. That would override the default value (where the kernel name is now being grabbed from the notebook dynamically) and as a result it never hits the code that would have grabbed it from the notebook. We can add that behaviour back in since we had it before. But it does seem like a previous anti pattern to require specifying an option in order to trigger what should be default behaviour (adhering to the notebook’s kernel name). This is speculation based on looking at the code based I’ll need to test this out in a bit. |
I've disabled I hope the actual problem will be fixed in #886 before the next |
So, is it better to be using the latest |
When you install the latest The other way round it will not work, every version of I hope PR #886 will be solved before the next |
... and not during initialization. Fixes jupyter#878.
This causes nbsphinx failures, for more details see: spatialaudio/nbsphinx#202 jupyter/nbconvert#878 jupyter/nbconvert#886 Should be fixed by the next nbconvert release (5.5).
Recent nbconvert release broke nbsphinx:
If I remove the notebooks and the references to nbsphinx everything works fine. If I downgrade to 5.3.1 and keep the notebooks, everything works too.
I report the issue here because I understand that projects that depend on nbconvert should not break from 5.3 to 5.4, but perhaps it's indeed an nbsphinx issue. cc @spatialaudio
Environment details below:
The text was updated successfully, but these errors were encountered: