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

Build failing on readthedocs #26

Closed
mithro opened this issue Jun 22, 2020 · 4 comments · Fixed by #28
Closed

Build failing on readthedocs #26

mithro opened this issue Jun 22, 2020 · 4 comments · Fixed by #28
Assignees

Comments

@mithro
Copy link
Member

mithro commented Jun 22, 2020

https://readthedocs.org/projects/sphinxcontrib-verilog-diagrams/builds/11085867/

looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [100%] index
ERROR: Command syntax error: Unknown option or option in arguments.
> write_json -compat-int /home/docs/checkouts/readthedocs.org/user_builds/sphinxcontrib-verilog-diagrams/checkouts/latest/docs/_build/html/_images/index-108-verilog-dff.json
>            ^
Running yosys: yosys -p 'prep -top top ; cd top; show -format svg -prefix /home/docs/checkouts/readthedocs.org/user_builds/sphinxcontrib-verilog-diagrams/checkouts/latest/docs/_build/html/_images/index-68-verilog-dff' /home/docs/checkouts/readthedocs.org/user_builds/sphinxcontrib-verilog-diagrams/checkouts/latest/docs/verilog/dff.v
Output file created: /home/docs/checkouts/readthedocs.org/user_builds/sphinxcontrib-verilog-diagrams/checkouts/latest/docs/_build/html/_images/index-68-verilog-dff.svg
Running yosys: yosys -p 'prep -top top ; cd top; show -format svg -prefix /home/docs/checkouts/readthedocs.org/user_builds/sphinxcontrib-verilog-diagrams/checkouts/latest/docs/_build/html/_images/index-88-verilog-dff' /home/docs/checkouts/readthedocs.org/user_builds/sphinxcontrib-verilog-diagrams/checkouts/latest/docs/verilog/dff.v
Output file created: /home/docs/checkouts/readthedocs.org/user_builds/sphinxcontrib-verilog-diagrams/checkouts/latest/docs/_build/html/_images/index-88-verilog-dff.svg
Running yosys: yosys -p 'prep -top top ; cd top; write_json -compat-int /home/docs/checkouts/readthedocs.org/user_builds/sphinxcontrib-verilog-diagrams/checkouts/latest/docs/_build/html/_images/index-108-verilog-dff.json' /home/docs/checkouts/readthedocs.org/user_builds/sphinxcontrib-verilog-diagrams/checkouts/latest/docs/verilog/dff.v
/home/docs/checkouts/readthedocs.org/user_builds/sphinxcontrib-verilog-diagrams/conda/latest/lib/python3.7/site-packages/sphinx/deprecation.py:52: RemovedInSphinx40Warning: sphinx.builders.html.DirectoryHTMLBuilder is deprecated. Check CHANGES for Sphinx API modifications.
  return getattr(self._module, name)
/home/docs/checkouts/readthedocs.org/user_builds/sphinxcontrib-verilog-diagrams/conda/latest/lib/python3.7/site-packages/readthedocs_ext/readthedocs.py:14: RemovedInSphinx40Warning: sphinx.builders.html.SingleFileHTMLBuilder is deprecated. Check CHANGES for Sphinx API modifications.
  from sphinx.builders.html import (DirectoryHTMLBuilder, SingleFileHTMLBuilder,

Traceback (most recent call last):
  File "/home/docs/checkouts/readthedocs.org/user_builds/sphinxcontrib-verilog-diagrams/conda/latest/lib/python3.7/site-packages/sphinx/cmd/build.py", line 280, in build_main
    app.build(args.force_all, filenames)
  File "/home/docs/checkouts/readthedocs.org/user_builds/sphinxcontrib-verilog-diagrams/conda/latest/lib/python3.7/site-packages/sphinx/application.py", line 348, in build
    self.builder.build_update()
  File "/home/docs/checkouts/readthedocs.org/user_builds/sphinxcontrib-verilog-diagrams/conda/latest/lib/python3.7/site-packages/sphinx/builders/__init__.py", line 299, in build_update
    len(to_build))
  File "/home/docs/checkouts/readthedocs.org/user_builds/sphinxcontrib-verilog-diagrams/conda/latest/lib/python3.7/site-packages/sphinx/builders/__init__.py", line 361, in build
    self.write(docnames, list(updated_docnames), method)
  File "/home/docs/checkouts/readthedocs.org/user_builds/sphinxcontrib-verilog-diagrams/conda/latest/lib/python3.7/site-packages/sphinx/builders/__init__.py", line 535, in write
    self._write_serial(sorted(docnames))
  File "/home/docs/checkouts/readthedocs.org/user_builds/sphinxcontrib-verilog-diagrams/conda/latest/lib/python3.7/site-packages/sphinx/builders/__init__.py", line 545, in _write_serial
    self.write_doc(docname, doctree)
  File "/home/docs/checkouts/readthedocs.org/user_builds/sphinxcontrib-verilog-diagrams/conda/latest/lib/python3.7/site-packages/sphinx/builders/html/__init__.py", line 597, in write_doc
    self.docwriter.write(doctree, destination)
  File "/home/docs/checkouts/readthedocs.org/user_builds/sphinxcontrib-verilog-diagrams/conda/latest/lib/python3.7/site-packages/docutils/writers/__init__.py", line 78, in write
    self.translate()
  File "/home/docs/checkouts/readthedocs.org/user_builds/sphinxcontrib-verilog-diagrams/conda/latest/lib/python3.7/site-packages/sphinx/writers/html.py", line 71, in translate
    self.document.walkabout(visitor)
  File "/home/docs/checkouts/readthedocs.org/user_builds/sphinxcontrib-verilog-diagrams/conda/latest/lib/python3.7/site-packages/docutils/nodes.py", line 214, in walkabout
    if child.walkabout(visitor):
  File "/home/docs/checkouts/readthedocs.org/user_builds/sphinxcontrib-verilog-diagrams/conda/latest/lib/python3.7/site-packages/docutils/nodes.py", line 214, in walkabout
    if child.walkabout(visitor):
  File "/home/docs/checkouts/readthedocs.org/user_builds/sphinxcontrib-verilog-diagrams/conda/latest/lib/python3.7/site-packages/docutils/nodes.py", line 214, in walkabout
    if child.walkabout(visitor):
  [Previous line repeated 2 more times]
  File "/home/docs/checkouts/readthedocs.org/user_builds/sphinxcontrib-verilog-diagrams/conda/latest/lib/python3.7/site-packages/docutils/nodes.py", line 206, in walkabout
    visitor.dispatch_visit(self)
  File "/home/docs/checkouts/readthedocs.org/user_builds/sphinxcontrib-verilog-diagrams/conda/latest/lib/python3.7/site-packages/sphinx/util/docutils.py", line 468, in dispatch_visit
    method(node)
  File "/home/docs/checkouts/readthedocs.org/user_builds/sphinxcontrib-verilog-diagrams/checkouts/latest/sphinxcontrib_verilog_diagrams.py", line 338, in html_visit_verilog_diagram
    render_diagram_html(self, node, node['code'], node['options'])
  File "/home/docs/checkouts/readthedocs.org/user_builds/sphinxcontrib-verilog-diagrams/checkouts/latest/sphinxcontrib_verilog_diagrams.py", line 309, in render_diagram_html
    fname, outfn = render_diagram(self, code, options, format)
  File "/home/docs/checkouts/readthedocs.org/user_builds/sphinxcontrib-verilog-diagrams/checkouts/latest/sphinxcontrib_verilog_diagrams.py", line 291, in render_diagram
    verilog_path, outfn, module=options['module'], flatten=options['flatten'])
  File "/home/docs/checkouts/readthedocs.org/user_builds/sphinxcontrib-verilog-diagrams/checkouts/latest/sphinxcontrib_verilog_diagrams.py", line 261, in diagram_netlistsvg
    """.format(top=module, flatten=flatten, ojson=ojson).strip())
  File "/home/docs/checkouts/readthedocs.org/user_builds/sphinxcontrib-verilog-diagrams/checkouts/latest/sphinxcontrib_verilog_diagrams.py", line 202, in run_yosys
    subprocess.check_output(ycmd, shell=True)
  File "/home/docs/checkouts/readthedocs.org/user_builds/sphinxcontrib-verilog-diagrams/conda/latest/lib/python3.7/subprocess.py", line 411, in check_output
    **kwargs).stdout
  File "/home/docs/checkouts/readthedocs.org/user_builds/sphinxcontrib-verilog-diagrams/conda/latest/lib/python3.7/subprocess.py", line 512, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command 'yosys -p 'prep -top top ; cd top; write_json -compat-int /home/docs/checkouts/readthedocs.org/user_builds/sphinxcontrib-verilog-diagrams/checkouts/latest/docs/_build/html/_images/index-108-verilog-dff.json' /home/docs/checkouts/readthedocs.org/user_builds/sphinxcontrib-verilog-diagrams/checkouts/latest/docs/verilog/dff.v' returned non-zero exit status 1.

Exception occurred:
  File "/home/docs/checkouts/readthedocs.org/user_builds/sphinxcontrib-verilog-diagrams/conda/latest/lib/python3.7/subprocess.py", line 512, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command 'yosys -p 'prep -top top ; cd top; write_json -compat-int /home/docs/checkouts/readthedocs.org/user_builds/sphinxcontrib-verilog-diagrams/checkouts/latest/docs/_build/html/_images/index-108-verilog-dff.json' /home/docs/checkouts/readthedocs.org/user_builds/sphinxcontrib-verilog-diagrams/checkouts/latest/docs/verilog/dff.v' returned non-zero exit status 1.
The full traceback has been saved in /tmp/sphinx-err-5duhsu2j.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
@mithro
Copy link
Member Author

mithro commented Jun 22, 2020

It doesn't look like Yosys is being installed via conda?

@mithro
Copy link
Member Author

mithro commented Jun 22, 2020

https://github.com/SymbiFlow/sphinxcontrib-verilog-diagrams/blob/master/environment.yml

GitHub
Sphinx Extension which generates various types of diagrams from Verilog code. - SymbiFlow/sphinxcontrib-verilog-diagrams

@mithro
Copy link
Member Author

mithro commented Jun 22, 2020

Did some tests on Travis -- https://travis-ci.com/github/mithro/sphinxcontrib-verilog-diagrams

Travis CI enables your team to test and ship your apps with confidence. Easily sync your projects with Travis CI and you'll be testing your code in minutes.

@mithro
Copy link
Member Author

mithro commented Jun 24, 2020

This seems to be fixed now.

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

Successfully merging a pull request may close this issue.

2 participants