question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to make Sphinx Doc without chainer.Backend

See original GitHub issue

Reproduced both with and without CuPy and a useable GPU.

crissman@GPCL-GPU102:~/chainer/docs$ make html
sphinx-build -b html -d build/doctrees  -W source build/html
Running Sphinx v1.8.3
making output directory...
[autosummary] generating autosummary for: chainermn/index.rst, chainermn/installation/guide.rst, chainermn/installation/index.rst, chainermn/installation/troubleshooting.rst, chainermn/model_parallel/example1_simple_mlp.rst, chainermn/model_parallel/example2_seq2seq.rst, chainermn/model_parallel/example3_parallel_conv.rst, chainermn/model_parallel/example4_ensemble.rst, chainermn/model_parallel/index.rst, chainermn/model_parallel/model_parallel_on_chainermn.rst, ..., reference/util/algorithm.rst, reference/util/conv.rst, reference/util/cuda.rst, reference/util/experimental.rst, reference/util/reporter.rst, reference/util/sparse.rst, reference/variable.rst, tips.rst, upgrade.rst, upgrade_v2.rst                                                                                                     

Warning, treated as error:
[autosummary] failed to import 'chainerx.Backend': no module named chainerx.Backend
Makefile:56: recipe for target 'html' failed
make: *** [html] Error 2
crissman@GPCL-GPU102:~/chainer/docs$ python
Python 3.5.2 |Anaconda 4.2.0 (64-bit)| (default, Jul  2 2016, 17:53:06)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import chainerx
>>> type(chainerx.backend)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'chainerx' has no attribute 'backend'

Backend appears to reside in chainerx_cc/ and not chainerx/. Can sphinx docs be made without compiling?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
kmaehashicommented, Jan 30, 2019

For testing purposes, you can use SPHINXOPTS= make html to temporary avoid the error. The built documentation is incomplete (ChainerX part will become blank).

0reactions
stale[bot]commented, Sep 28, 2019

This issue is closed as announced. Feel free to re-open it if needed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sphinx is not able to import anything
I ended up restructuring my project so that the docs directory is at the same level as my project directory that contains all...
Read more >
Configuration
If set to a major.minor version string like '1.1' , Sphinx will compare it with its version and refuse to build if it...
Read more >
Sphinx Documentation
Most Windows users do not have Python installed by default, so we begin with the installation of Python itself. If you are unsure, ......
Read more >
Define your own function
Useful tools to write a function using a GPU. How to test the function definition. After reading this section, you will be able...
Read more >
Getting Started with the LLVM System
Can include: compiler-rt, libc, libcxx, libcxxabi, libunwind, or openmp. LLVM_ENABLE_SPHINX, Build sphinx-based documentation from the source code. This is ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found