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

AttributeError: module 'nbconvert.preprocessors.execute' has no attribute 'CellExecutionError' #466

Closed
nilswagner opened this issue May 29, 2020 · 9 comments

Comments

@nilswagner
Copy link

How can I resolve the following issue?

nbsphinx/src/nbsphinx.py", line 995, in parse
except nbconvert.preprocessors.execute.CellExecutionError as e:
AttributeError: module 'nbconvert.preprocessors.execute' has no attribute 'CellExecutionError'

@mgeier
Copy link
Member

mgeier commented May 29, 2020

Are you using a pre-release version of nbconvert?

See also jupyter/nbconvert#1237.

@nilswagner
Copy link
Author

nbconvert.version
'6.0.0a3'

@mgeier
Copy link
Member

mgeier commented May 29, 2020

Possible work-arounds:

I cannot properly fix this yet in nbsphinx, because the nbconvert people might still make further breaking changes before nbconvert version 6 is released, see jupyter/nbconvert#1237.

As a temporary measure, I could restrict nbconvert to <6 in the nbsphinx dependencies, but I'm not sure that's the right thing to do.
What do you think?

@mgeier
Copy link
Member

mgeier commented Jun 15, 2020

This has been fixed in nbconvert in the meantime.

@mgeier mgeier closed this as completed Jun 15, 2020
@HealthyPear
Copy link
Contributor

I am getting this exact error but from a sphinx build

Sphinx parallel build error:
AttributeError: module 'nbconvert.preprocessors.execute' has no attribute 'CellExecutionError'

I am using

nbconvert                 7.13.0             pyhd8ed1ab_0    conda-forge
nbconvert-core            7.13.0             pyhd8ed1ab_0    conda-forge
nbconvert-pandoc          7.13.0             pyhd8ed1ab_0    conda-forge
nbsphinx                  0.9.3              pyhd8ed1ab_0    conda-forge

both seem to be at the latest release

Let me know if you'd prefer I open a new issue

@HealthyPear
Copy link
Contributor

from a python prompt this works

from nbconvert.preprocessors import CellExecutionError

but this doesn't

from nbconvert.preprocessors.execute import CellExecutionError

as the error indeed reports

@HealthyPear
Copy link
Contributor

see #772

@mgeier
Copy link
Member

mgeier commented Dec 21, 2023

This seems to have been removed in jupyter/nbconvert#2079, maybe unintentionally.

But since there has been a new nbconvert release since, I guess we should fix it. Thanks for providing the fix in #772!

@mgeier
Copy link
Member

mgeier commented Dec 21, 2023

A new patch-release of nbconvert has just been released, which should fix this again.

I think we should still change the import on our side.

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

No branches or pull requests

3 participants