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

Unknown exporter "ipynb": Did you mean "notebook"? #3769

Closed
rsignell-usgs opened this issue Jul 14, 2018 · 6 comments
Closed

Unknown exporter "ipynb": Did you mean "notebook"? #3769

rsignell-usgs opened this issue Jul 14, 2018 · 6 comments

Comments

@rsignell-usgs
Copy link

rsignell-usgs commented Jul 14, 2018

When I do File=>Download as=>Notebook from my JupyterHub, the notebook downloads fine, but I get a "500 : Internal Server Error" displayed on the screen, and in the log, I see:

File "/opt/conda/lib/python3.6/site-packages/nbconvert/exporters/base.py", line 110, in get_exporter
        % (name, ', '.join(get_export_names())))
    ValueError: Unknown exporter "ipynb", did you mean one of: asciidoc, custom, html, latex, markdown, notebook, pdf, python, rst, script, slides?

I notice that someone else had the same problem on Stackoverflow.

Here's my conda package list:

# packages in environment at /opt/conda:
#
# Name                    Version                   Build  Channel
absl-py                   0.2.2                      py_0    conda-forge
affine                    2.2.1                      py_0    conda-forge
alembic                   0.9.9                      py_0    conda-forge
appdirs                   1.4.3                      py_1    conda-forge
asciitree                 0.3.3                    py36_1    conda-forge
asn1crypto                0.24.0                   py36_0    conda-forge
astor                     0.6.2                      py_0    conda-forge
async_generator           1.9                           0    conda-forge
attrs                     18.1.0                     py_1    conda-forge
automat                   0.7.0                    py36_0    conda-forge
backcall                  0.1.0                      py_0    conda-forge
beautifulsoup4            4.6.0                    py36_0    conda-forge
blas                      1.1                    openblas    conda-forge
bleach                    1.5.0                    py36_0    conda-forge
blinker                   1.4                        py_1    conda-forge
blosc                     1.14.0                        1    conda-forge
bokeh                     0.12.16                  py36_0    conda-forge
boost                     1.66.0                   py36_1    conda-forge
boost-cpp                 1.66.0                        1    conda-forge
boto3                     1.7.48                     py_0    conda-forge
botocore                  1.10.48                    py_0    conda-forge
bottleneck                1.2.1            py36h7eb728f_1    conda-forge
bzip2                     1.0.6                         1    conda-forge
ca-certificates           2018.4.16                     0    conda-forge
cachetools                2.0.1                      py_0    conda-forge
cairo                     1.14.10                       0    conda-forge
cartopy                   0.16.0                   py36_0    conda-forge
certifi                   2018.4.16                py36_0    conda-forge
cffi                      1.11.5                   py36_0    conda-forge
chardet                   3.0.4                    py36_0    conda-forge
click                     6.7                        py_1    conda-forge
click-plugins             1.0.3                    py36_0    conda-forge
cligj                     0.4.0                    py36_0    conda-forge
cloudpickle               0.5.3                      py_0    conda-forge
colorcet                  1.0.0                      py_0    conda-forge
conda                     4.5.4                    py36_0    conda-forge
conda-env                 2.6.0                         0    conda-forge
configurable-http-proxy   3.1.0                   node8_1    conda-forge
constantly                15.1.0                     py_0    conda-forge
cryptography              2.2.1                    py36_0    conda-forge
curl                      7.60.0                        0    conda-forge
cycler                    0.10.0                   py36_0    conda-forge
cython                    0.28.3           py36hfc679d8_0    conda-forge
cytoolz                   0.9.0.1                  py36_0    conda-forge
dask                      0.18.1                     py_0    conda-forge
dask-core                 0.18.1                     py_0    conda-forge
dask-kubernetes           0.3.0                      py_0    conda-forge
dask-tensorflow           0.0.2                      py_0    conda-forge
datashader                0.6.6                         0    conda-forge
datashape                 0.5.4                    py36_0    conda-forge
dbus                      1.13.0               h3a4f0e9_0    conda-forge
decorator                 4.3.0                      py_0    conda-forge
descartes                 1.1.0                      py_1    conda-forge
distributed               1.22.0                   py36_0    conda-forge
docopt                    0.6.2                    py36_0    conda-forge
docutils                  0.14                     py36_0    conda-forge
entrypoints               0.2.3                    py36_1    conda-forge
erddapy                   0.1.7                      py_0    conda-forge
expat                     2.2.5                hfc679d8_1    conda-forge
fasteners                 0.14.1                   py36_2    conda-forge
ffmpeg                    3.2.4                         3    conda-forge
fiona                     1.7.12                   py36_0    conda-forge
fontconfig                2.12.6                        0    conda-forge
freetype                  2.8.1                         0    conda-forge
freexl                    1.0.5                hf837533_1    conda-forge
fusepy                    2.0.4                      py_0    conda-forge
gast                      0.2.0                      py_0    conda-forge
gdal                      2.2.4                    py36_0    conda-forge
geopandas                 0.3.0                    py36_0    conda-forge
geos                      3.6.2                hfc679d8_2    conda-forge
geotiff                   1.4.2                hb54a4aa_2    conda-forge
geoviews                  1.5.1                      py_0    conda-forge
geoviews-core             1.5.1                      py_1    conda-forge
gettext                   0.19.8.1                      0    conda-forge
giflib                    5.1.4                h470a237_0    conda-forge
glib                      2.55.0                        0    conda-forge
gmp                       6.1.2                hfc679d8_0    conda-forge
google-auth               1.5.0                      py_0    conda-forge
graphite2                 1.3.11               hfc679d8_0    conda-forge
gridgeo                   1.3.0                      py_0    conda-forge
grpcio                    1.12.1           py36hdbcaa40_0    defaults
gst-plugins-base          1.8.0                         0    conda-forge
gstreamer                 1.8.0                         1    conda-forge
h5netcdf                  0.6.1                      py_0    conda-forge
h5py                      2.8.0            py36h470a237_0    conda-forge
harfbuzz                  1.7.6                         0    conda-forge
hdf4                      4.2.13                        0    conda-forge
hdf5                      1.10.1                        2    conda-forge
heapdict                  1.0.0                    py36_0    conda-forge
holoviews                 1.10.6                     py_0    conda-forge
html5lib                  0.9999999                py36_0    conda-forge
hyperlink                 17.3.1                     py_0    conda-forge
icu                       58.2                 hfc679d8_0    conda-forge
idna                      2.7                      py36_0    conda-forge
imageio                   2.3.0                    py36_0    conda-forge
incremental               17.5.0                     py_0    conda-forge
ipykernel                 4.8.2                    py36_0    conda-forge
ipython                   6.4.0                    py36_0    conda-forge
ipython_genutils          0.2.0                    py36_0    conda-forge
ipywidgets                7.2.1                    py36_1    conda-forge
jasper                    1.900.1                       4    conda-forge
jedi                      0.12.0                   py36_0    conda-forge
jinja2                    2.10                     py36_0    conda-forge
jmespath                  0.9.3                    py36_0    conda-forge
jpeg                      9c                   h470a237_0    conda-forge
json-c                    0.12.1                        0    conda-forge
jsonschema                2.6.0                    py36_1    conda-forge
jupyter                   1.0.0                      py_1    conda-forge
jupyter_client            5.2.3                    py36_0    conda-forge
jupyter_console           5.2.0                    py36_0    conda-forge
jupyter_core              4.4.0                      py_0    conda-forge
jupyterhub                0.9.0                    py36_0    conda-forge
jupyterlab                0.32.1                   py36_0    conda-forge
jupyterlab_launcher       0.10.5                   py36_0    conda-forge
kealib                    1.4.7                         4    conda-forge
kiwisolver                1.0.1                    py36_1    conda-forge
krb5                      1.14.6                        0    conda-forge
libcurl                   7.60.0               h1ad7b7a_0    defaults
libdap4                   3.18.3                        2    conda-forge
libedit                   3.1.20170329                  0    conda-forge
libffi                    3.2.1                         3    conda-forge
libgcc                    7.2.0                h69d50b8_2    defaults
libgcc-ng                 7.2.0                hdf63c60_3    defaults
libgdal                   2.2.4                         5    conda-forge
libgfortran               3.0.0                         1    defaults
libgfortran-ng            7.2.0                hdf63c60_3    defaults
libiconv                  1.15                 h470a237_1    conda-forge
libkml                    1.3.0                         6    conda-forge
libnetcdf                 4.6.1                         2    conda-forge
libpng                    1.6.34               ha92aebf_1    conda-forge
libpq                     9.6.3                         0    conda-forge
libprotobuf               3.5.2                hd28b015_1    conda-forge
libsodium                 1.0.16                        0    conda-forge
libspatialindex           1.8.5                hfc679d8_2    conda-forge
libspatialite             4.3.0a                       19    conda-forge
libssh2                   1.8.0                h5b517e9_2    conda-forge
libstdcxx-ng              7.2.0                hdf63c60_3    defaults
libtiff                   4.0.9                he6b73bb_1    conda-forge
libwebp                   0.5.2                         7    conda-forge
libxcb                    1.13                 h470a237_0    conda-forge
libxml2                   2.9.8                h422b904_1    conda-forge
libxslt                   1.1.32               h88dbc4e_1    conda-forge
llvmlite                  0.23.0                   py36_1    conda-forge
locket                    0.2.0                    py36_1    conda-forge
lxml                      4.2.2            py36hc9114bc_0    conda-forge
lz4                       1.1.0                    py36_0    conda-forge
lz4-c                     1.8.1.2                       0    conda-forge
mako                      1.0.7                    py36_0    conda-forge
markdown                  2.6.11                     py_0    conda-forge
markupsafe                1.0                      py36_0    conda-forge
matplotlib                2.2.2                    py36_1    conda-forge
mistune                   0.8.3                    py36_1    conda-forge
monotonic                 1.5                        py_0    conda-forge
msgpack-python            0.5.6            py36h2d50403_2    conda-forge
multipledispatch          0.5.0                    py36_0    conda-forge
munch                     2.3.2                      py_0    conda-forge
nb_conda_kernels          2.1.0                    py36_0    conda-forge
nbconvert                 5.3.1                      py_1    conda-forge
nbformat                  4.4.0                    py36_0    conda-forge
nbserverproxy             0.8.3                    py36_0    conda-forge
ncurses                   5.9                          10    conda-forge
netcdf4                   1.3.1                    py36_3    conda-forge
networkx                  2.1                      py36_0    conda-forge
nodejs                    8.10.0                        0    conda-forge
notebook                  5.5.0                    py36_0    conda-forge
numba                     0.38.1                   py36_0    conda-forge
numcodecs                 0.5.5                    py36_0    conda-forge
numpy                     1.14.5          py36_blas_openblashd3ea46f_200  [blas_openblas]  conda-forge
oauthlib                  2.1.0                      py_0    conda-forge
olefile                   0.45.1                   py36_0    conda-forge
openblas                  0.2.20                        8    conda-forge
opencv                    3.4.1           py36_blas_openblas_200  [blas_openblas]  conda-forge
openjpeg                  2.3.0                h0e734dc_3    conda-forge
openssl                   1.0.2o                        0    conda-forge
owslib                    0.16.0                     py_0    conda-forge
packaging                 17.1                       py_0    conda-forge
palettable                3.1.1                      py_0    conda-forge
pamela                    0.3.0                    py36_0    conda-forge
pandas                    0.23.1                   py36_0    conda-forge
pandoc                    2.2.1                         0    conda-forge
pandocfilters             1.4.2                    py36_0    conda-forge
param                     1.6.1                      py_0    conda-forge
parso                     0.2.1                      py_0    conda-forge
partd                     0.3.8                    py36_0    conda-forge
pcre                      8.41                          1    conda-forge
pexpect                   4.6.0                    py36_0    conda-forge
pickleshare               0.7.4                    py36_0    conda-forge
pillow                    5.2.0                    py36_0    conda-forge
pip                       9.0.3                    py36_0    conda-forge
pixman                    0.34.0                        2    conda-forge
poppler                   0.61.1                        3    conda-forge
poppler-data              0.4.9                         0    conda-forge
proj4                     4.9.3                         5    conda-forge
prometheus_client         0.2.0                    py36_0    conda-forge
prompt_toolkit            1.0.15                   py36_0    conda-forge
protobuf                  3.5.2                    py36_0    conda-forge
psutil                    5.4.6                    py36_0    conda-forge
psycopg2                  2.7.5                    py36_0    conda-forge
ptyprocess                0.6.0                    py36_0    conda-forge
pyasn1                    0.4.3                      py_0    conda-forge
pyasn1-modules            0.2.1                      py_0    conda-forge
pycosat                   0.6.3                    py36_0    conda-forge
pycparser                 2.18                     py36_0    conda-forge
pyct                      0.4.3                      py_0    conda-forge
pycurl                    7.43.0.2         py36hb7f436b_0    defaults
pydensecrf                1.0rc3           py36hf8a1672_1    conda-forge
pyepsg                    0.3.2                    py36_0    conda-forge
pygments                  2.2.0                    py36_0    conda-forge
pyhamcrest                1.9.0                    py36_1    conda-forge
pyjwt                     1.6.4                      py_0    conda-forge
pyopenssl                 18.0.0                   py36_0    conda-forge
pyparsing                 2.2.0                    py36_0    conda-forge
pyproj                    1.9.5.1                  py36_0    conda-forge
pyqt                      5.6.0                    py36_5    conda-forge
pysal                     1.14.3                   py36_0    conda-forge
pyshp                     1.2.12                     py_0    conda-forge
pysocks                   1.6.8                    py36_1    conda-forge
python                    3.6.5                         1    conda-forge
python-blosc              1.4.4                    py36_0    conda-forge
python-dateutil           2.7.3                      py_0    conda-forge
python-editor             1.0.3                    py36_0    conda-forge
python-kubernetes         4.0.0                    py36_1    conda-forge
python-oauth2             1.0.1                    py36_0    conda-forge
pytz                      2018.5                     py_0    conda-forge
pyviz_comms               0.1.1                      py_0    conda-forge
pywavelets                0.5.2                    py36_1    conda-forge
pyyaml                    3.12                     py36_1    conda-forge
pyzmq                     17.0.0                   py36_4    conda-forge
qt                        5.6.2                         7    conda-forge
qtconsole                 4.3.1                    py36_0    conda-forge
rasterio                  1.0rc1                   py36_0    conda-forge/label/dev
readline                  7.0                           0    conda-forge
requests                  2.19.1                   py36_0    conda-forge
requests-oauthlib         0.8.0                    py36_1    conda-forge
rsa                       3.4.2                    py36_0    conda-forge
rtree                     0.8.3                    py36_0    conda-forge
ruamel_yaml               0.15.40          py36h470a237_0    conda-forge
s3fs                      0.1.5                      py_0    conda-forge
s3transfer                0.1.13                   py36_0    conda-forge
scikit-image              0.14.0           py36hfc679d8_1    conda-forge
scikit-learn              0.19.1          py36_blas_openblas_201  [blas_openblas]  conda-forge
scipy                     1.1.0           py36_blas_openblas_200  [blas_openblas]  conda-forge
send2trash                1.5.0                      py_0    conda-forge
service_identity          17.0.0                     py_0    conda-forge
setuptools                39.2.0                   py36_0    conda-forge
shapely                   1.6.4            py36h164cb2d_1    conda-forge
simplegeneric             0.8.1                    py36_0    conda-forge
sip                       4.18                     py36_1    conda-forge
siphon                    0.7.0                    py36_0    conda-forge
six                       1.11.0                   py36_1    conda-forge
snuggs                    1.4.1                    py36_0    conda-forge
sortedcontainers          2.0.4                    py36_0    conda-forge
sqlalchemy                1.2.8                    py36_0    conda-forge
sqlite                    3.20.1                        2    conda-forge
tblib                     1.3.2                    py36_0    conda-forge
tensorboard               1.8.0                    py36_1    conda-forge
tensorflow                1.8.0                    py36_1    conda-forge
tensorflow-hub            0.1.0                      py_0    conda-forge
termcolor                 1.1.0                    py36_1    conda-forge
terminado                 0.8.1                    py36_0    conda-forge
testpath                  0.3.1                    py36_0    conda-forge
tk                        8.6.7                         0    conda-forge
toolz                     0.9.0                      py_0    conda-forge
tornado                   5.0.2                    py36_0    conda-forge
tqdm                      4.23.4                     py_0    conda-forge
traitlets                 4.3.2                    py36_0    conda-forge
twisted                   17.5.0                   py36_0    defaults
urllib3                   1.23                     py36_0    conda-forge
utide                     0.2.2                      py_0    conda-forge
util-linux                2.21                          0    defaults
wcwidth                   0.1.7                    py36_0    conda-forge
webencodings              0.5                      py36_0    conda-forge
websocket-client          0.40.0                   py36_0    conda-forge
werkzeug                  0.14.1                     py_0    conda-forge
wheel                     0.31.0                   py36_0    conda-forge
widgetsnbextension        3.2.1                    py36_0    conda-forge
x264                      20131218                      0    conda-forge
xarray                    0.10.7                   py36_0    conda-forge
xerces-c                  3.2.0                         0    conda-forge
xorg-libxau               1.0.8                h470a237_4    conda-forge
xorg-libxdmcp             1.1.2                h470a237_4    conda-forge
xz                        5.2.3                         0    conda-forge
yaml                      0.1.7                         0    conda-forge
zarr                      2.2.0                      py_1    conda-forge
zeromq                    4.2.5                         1    conda-forge
zict                      0.1.3                      py_0    conda-forge
zlib                      1.2.11               h470a237_3    conda-forge
zope.interface            4.5.0            py36h470a237_0    conda-forge

2018-07-14_14-47-56

@takluyver
Copy link
Member

I think there was a change in how the 'Download as' menu works, and it now gets the exporter name from the HTML ID of the menu entry, which is download_ipynb in this case. See #3323.

@rsignell-usgs
Copy link
Author

rsignell-usgs commented Jul 15, 2018

@takluyver, thanks for the reply, but I am a bit confused.
Is there something I can do on my end, or is this an upstream bug?

@thre3eye
Copy link

Having this issue too

File "/opt/conda/lib/python3.6/site-packages/nbconvert/exporters/base.py", line 110, in get_exporter % (name, ', '.join(get_export_names()))) ValueError: Unknown exporter "ipynb", did you mean one of: asciidoc, custom, html, latex, markdown, notebook, pdf, python, rst, script, slides?

@AnthonyTruchet
Copy link

AnthonyTruchet commented Jul 26, 2018

I do confirm this issue:

$ jupyter --version
4.4.0
$ python --version
Python 3.6.5 :: Anaconda, Inc.

I do have installed nbconvert and nbformat from pip.

$ pip --version
pip 18.0 from .../miniconda3/lib/python3.6/site-packages/pip (python 3.6)

$ pip show nbconvert nbformat notebook
Name: nbconvert
Version: 5.3.1
...
---
Name: nbformat
Version: 4.4.0
...
---
Name: notebook
Version: 5.6.0
...

@zenssh
Copy link

zenssh commented Aug 24, 2018

I stumbled upon this error, and it disappeared after I disabled a vpn extension (which apparently didn't stop proxying properly).

@elgalu
Copy link
Contributor

elgalu commented Sep 1, 2018

This PR fixed the problem for me. Not ideal but got tired of the error message;)

@minrk minrk added this to the Not Notebook milestone Sep 13, 2018
ianabc pushed a commit to callysto/docker-stacks that referenced this issue Jan 14, 2019
This is to address a 500 error when downloading notebooks via nbconvert.
See [CAN-91](https://jira.cybera.ca/browse/CAN-91) or
[notebook/issues/3769](jupyter/notebook#3769)
for more details.

Signed-off-by: Callysto Sysadmin <[email protected]>
jtopjian pushed a commit to callysto/docker-stacks that referenced this issue Jan 16, 2020
This is to address a 500 error when downloading notebooks via nbconvert.
See [CAN-91](https://jira.cybera.ca/browse/CAN-91) or
[notebook/issues/3769](jupyter/notebook#3769)
for more details.

Signed-off-by: Callysto Sysadmin <[email protected]>
jtopjian pushed a commit to callysto/docker-stacks that referenced this issue Feb 5, 2020
This is to address a 500 error when downloading notebooks via nbconvert.
See [CAN-91](https://jira.cybera.ca/browse/CAN-91) or
[notebook/issues/3769](jupyter/notebook#3769)
for more details.

Signed-off-by: Callysto Sysadmin <[email protected]>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants