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

webpdf JSONDecodeError: Expecting value: line 1 column 2 (char 1) #2125

Open
JostBrand opened this issue Mar 14, 2024 · 0 comments
Open

webpdf JSONDecodeError: Expecting value: line 1 column 2 (char 1) #2125

JostBrand opened this issue Mar 14, 2024 · 0 comments

Comments

@JostBrand
Copy link

The test file contains only one print statement. When running the command: jupyter nbconvert --to webpdf .\test.ipynb --template classic --allow-error I get the following error.

Traceback:
Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "xxx\.venv\Scripts\jupyter-nbconvert.EXE\__main__.py", line 4, in <module> File "xxx\.venv\Lib\site-packages\nbconvert\__init__.py", line 6, in <module> from . import filters, postprocessors, preprocessors, writers File "xxx\.venv\Lib\site-packages\nbconvert\filters\__init__.py", line 8, in <module> from .markdown import ( File "xxx\.venv\Lib\site-packages\nbconvert\filters\markdown.py", line 13, in <module> from .markdown_mistune import markdown2html_mistune File "xxx\.venv\Lib\site-packages\nbconvert\filters\markdown_mistune.py", line 22, in <module> from nbconvert.filters.strings import add_anchor File "xxx\.venv\Lib\site-packages\nbconvert\filters\strings.py", line 23, in <module> from nbconvert.preprocessors.sanitize import _get_default_css_sanitizer File "xxx\.venv\Lib\site-packages\nbconvert\preprocessors\__init__.py", line 3, in <module> from nbclient.exceptions import CellExecutionError File "xxx\.venv\Lib\site-packages\nbclient\__init__.py", line 2, in <module> from .client import NotebookClient, execute File "xxx\.venv\Lib\site-packages\nbclient\client.py", line 19, in <module> from nbformat import NotebookNode File "xxx\.venv\Lib\site-packages\nbformat\__init__.py", line 14, in <module> from . import v1, v2, v3, v4 File "xxx\.venv\Lib\site-packages\nbformat\v4\__init__.py", line 24, in <module> from .convert import downgrade, upgrade File "xxx\.venv\Lib\site-packages\nbformat\v4\convert.py", line 12, in <module> from nbformat import v3, validator File "xxx\.venv\Lib\site-packages\nbformat\validator.py", line 16, in <module> from .json_compat import ValidationError, _validator_for_name, get_current_validator File "xxx\.venv\Lib\site-packages\nbformat\json_compat.py", line 12, in <module> import jsonschema File "xxx\.venv\Lib\site-packages\jsonschema\__init__.py", line 16, in <module> from jsonschema.validators import ( File "xxx\.venv\Lib\site-packages\jsonschema\validators.py", line 20, in <module> from jsonschema_specifications import REGISTRY as SPECIFICATIONS File "xxx\.venv\Lib\site-packages\jsonschema_specifications\__init__.py", line 10, in <module> REGISTRY = (_schemas() @ _EMPTY_REGISTRY).crawl() ~~~~~~~~~~~^~~~~~~~~~~~~~~~~ File "xxx\.venv\Lib\site-packages\referencing\_core.py", line 378, in __rmatmul__ for resource in new: File "xxx\.venv\Lib\site-packages\jsonschema_specifications\_core.py", line 37, in _schemas contents = json.loads(path.read_text(encoding="utf-8")) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python312\Lib\json\__init__.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python312\Lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python312\Lib\json\decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 2 (char 1)

Package List:

Package                   Version
------------------------- -----------
asttokens                 2.4.1
attrs                     23.2.0
beautifulsoup4            4.12.3
bleach                    6.1.0
colorama                  0.4.6
comm                      0.2.2
contourpy                 1.2.0
cycler                    0.12.1
debugpy                   1.8.1
decorator                 5.1.1
defusedxml                0.7.1
et-xmlfile                1.1.0
executing                 2.0.1
fastjsonschema            2.19.1
fonttools                 4.49.0
greenlet                  3.0.3
ipykernel                 6.29.3
ipython                   8.22.2
jedi                      0.19.1
Jinja2                    3.1.3
jsonschema                4.21.1
jsonschema-specifications 2023.12.1
jupyter_client            8.6.1
jupyter_core              5.7.2
jupyterlab_pygments       0.3.0
kiwisolver                1.4.5
MarkupSafe                2.1.5
matplotlib                3.8.3
matplotlib-inline         0.1.6
mistune                   3.0.2
nb_pdf_template           4.0.0
nbclient                  0.10.0
nbconvert                 7.16.2
nbformat                  5.10.2
nest-asyncio              1.6.0
numpy                     1.26.4
openpyxl                  3.1.2
packaging                 24.0
pandas                    2.2.1
pandocfilters             1.5.1
parso                     0.8.3
pillow                    10.2.0
pip                       24.0
platformdirs              4.2.0
playwright                1.42.0
prompt-toolkit            3.0.43
psutil                    5.9.8
pure-eval                 0.2.2
pyee                      11.0.1
Pygments                  2.17.2
pyparsing                 3.1.2
python-dateutil           2.9.0.post0
pytz                      2024.1
pywin32                   306
pyzmq                     25.1.2
referencing               0.33.0
rpds-py                   0.18.0
six                       1.16.0
soupsieve                 2.5
stack-data                0.6.3
tinycss2                  1.2.1
tornado                   6.4
traitlets                 5.14.2
typing_extensions         4.10.0
tzdata                    2024.1
wcwidth                   0.2.13
webencodings              0.5.1
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

1 participant