mario33881 / betterSIS

The modern shell for SIS (the circuit simulator and optimizer)
MIT License
8 stars 1 forks source link

fix docs error convert-im6.q16: Document is empty #138

Closed mario33881 closed 1 year ago

mario33881 commented 1 year ago

Add the "Get it from the Snap Store" svg file to the repository to avoid the following error:

Traceback (most recent call last):
  File "/home/docs/checkouts/readthedocs.org/user_builds/bettersis/envs/latest/lib/python3.8/site-packages/sphinx/ext/imgconverter.py", line 61, in convert
    subprocess.run(args, capture_output=True, check=True)
  File "/home/docs/.pyenv/versions/3.8.6/lib/python3.8/subprocess.py", line 512, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['convert', '/home/docs/checkouts/readthedocs.org/user_builds/bettersis/checkouts/latest/docs/source/_build/doctrees/images/66a9bd9d21e643f11dd958e3ac7d2ad158432b66/snap-store-black.svg[0]', '/home/docs/checkouts/readthedocs.org/user_builds/bettersis/checkouts/latest/docs/source/_build/doctrees/images/snap-store-black.png']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/docs/checkouts/readthedocs.org/user_builds/bettersis/envs/latest/lib/python3.8/site-packages/sphinx/cmd/build.py", line 285, in build_main
    app.build(args.force_all, args.filenames)
  File "/home/docs/checkouts/readthedocs.org/user_builds/bettersis/envs/latest/lib/python3.8/site-packages/sphinx/application.py", line 353, in build
    self.builder.build_update()
  File "/home/docs/checkouts/readthedocs.org/user_builds/bettersis/envs/latest/lib/python3.8/site-packages/sphinx/builders/__init__.py", line 308, in build_update
    self.build(['__all__'], to_build)
  File "/home/docs/checkouts/readthedocs.org/user_builds/bettersis/envs/latest/lib/python3.8/site-packages/sphinx/builders/__init__.py", line 378, in build
    self.write(docnames, list(updated_docnames), method)
  File "/home/docs/checkouts/readthedocs.org/user_builds/bettersis/envs/latest/lib/python3.8/site-packages/sphinx/builders/latex/__init__.py", line 287, in write
    doctree = self.assemble_doctree(
  File "/home/docs/checkouts/readthedocs.org/user_builds/bettersis/envs/latest/lib/python3.8/site-packages/sphinx/builders/latex/__init__.py", line 353, in assemble_doctree
    self.env.resolve_references(largetree, indexfile, self)
  File "/home/docs/checkouts/readthedocs.org/user_builds/bettersis/envs/latest/lib/python3.8/site-packages/sphinx/environment/__init__.py", line 656, in resolve_references
    self.apply_post_transforms(doctree, fromdocname)
  File "/home/docs/checkouts/readthedocs.org/user_builds/bettersis/envs/latest/lib/python3.8/site-packages/sphinx/environment/__init__.py", line 668, in apply_post_transforms
    transformer.apply_transforms()
  File "/home/docs/checkouts/readthedocs.org/user_builds/bettersis/envs/latest/lib/python3.8/site-packages/sphinx/transforms/__init__.py", line 79, in apply_transforms
    super().apply_transforms()
  File "/home/docs/checkouts/readthedocs.org/user_builds/bettersis/envs/latest/lib/python3.8/site-packages/docutils/transforms/__init__.py", line 171, in apply_transforms
    transform.apply(**kwargs)
  File "/home/docs/checkouts/readthedocs.org/user_builds/bettersis/envs/latest/lib/python3.8/site-packages/sphinx/transforms/post_transforms/images.py", line 30, in apply
    self.handle(node)
  File "/home/docs/checkouts/readthedocs.org/user_builds/bettersis/envs/latest/lib/python3.8/site-packages/sphinx/transforms/post_transforms/images.py", line 243, in handle
    if self.convert(abs_srcpath, destpath):
  File "/home/docs/checkouts/readthedocs.org/user_builds/bettersis/envs/latest/lib/python3.8/site-packages/sphinx/ext/imgconverter.py", line 69, in convert
    raise ExtensionError(__('convert exited with error:\n'
sphinx.errors.ExtensionError: convert exited with error:
[stderr]
b"convert-im6.q16: Document is empty\n `No such file or directory` @ error/svg.c/SVGError/2680.\nconvert-im6.q16: no images defined `/home/docs/checkouts/readthedocs.org/user_builds/bettersis/checkouts/latest/docs/source/_build/doctrees/images/snap-store-black.png' @ error/convert.c/ConvertImageCommand/3258.\n"
[stdout]
b''

Extension error:
convert exited with error:
[stderr]
b"convert-im6.q16: Document is empty\n `No such file or directory` @ error/svg.c/SVGError/2680.\nconvert-im6.q16: no images defined `/home/docs/checkouts/readthedocs.org/user_builds/bettersis/checkouts/latest/docs/source/_build/doctrees/images/snap-store-black.png' @ error/convert.c/ConvertImageCommand/3258.\n"
[stdout]
b''

This error is thrown when readthedocs tries to build the PDF version of the docs

This also happens locally