Repository navigation
Closed
Description
Bug report
Required Info:
- Operating System:
- Ubuntu 20.04
- Installation type:
- from source
- Version or commit hash:
- DDS implementation:
- N/A
- Client library (if applicable):
- N/A
Steps to reproduce issue
Build docs according to the README:
pip3 install sphinx-autodoc-typehints
cd rclpy/docs
make html
Expected behavior
The docs are built.
Actual behavior
Make emits the following:
$ make html
Running Sphinx v3.0.2
loading pickled environment... failed
failed: source directory has changed
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 16 source files that are out of date
updating environment: [new config] 16 added, 0 changed, 0 removed
reading sources... [100%] index
WARNING: autodoc: failed to import module 'action.client' from module 'rclpy'; the following exception was raised:
No module named 'rclpy'
WARNING: autodoc: failed to import module 'action.server' from module 'rclpy'; the following exception was raised:
No module named 'rclpy'
WARNING: autodoc: failed to import module 'context' from module 'rclpy'; the following exception was raised:
No module named 'rclpy'
WARNING: autodoc: failed to import module 'executors' from module 'rclpy'; the following exception was raised:
No module named 'rclpy'
WARNING: autodoc: failed to import module 'callback_groups' from module 'rclpy'; the following exception was raised:
No module named 'rclpy'
WARNING: autodoc: failed to import module 'rclpy'; the following exception was raised:
No module named 'rclpy'
WARNING: autodoc: failed to import module 'logging' from module 'rclpy'; the following exception was raised:
No module named 'rclpy'
WARNING: autodoc: failed to import module 'node' from module 'rclpy'; the following exception was raised:
No module named 'rclpy'
WARNING: autodoc: failed to import module 'parameter' from module 'rclpy'; the following exception was raised:
No module named 'rclpy'
WARNING: autodoc: failed to import module 'parameter_service' from module 'rclpy'; the following exception was raised:
No module named 'rclpy'
WARNING: autodoc: failed to import module 'qos' from module 'rclpy'; the following exception was raised:
No module named 'rclpy'
WARNING: autodoc: failed to import module 'client' from module 'rclpy'; the following exception was raised:
No module named 'rclpy'
WARNING: autodoc: failed to import module 'service' from module 'rclpy'; the following exception was raised:
No module named 'rclpy'
WARNING: autodoc: failed to import module 'timer' from module 'rclpy'; the following exception was raised:
No module named 'rclpy'
WARNING: autodoc: failed to import module 'publisher' from module 'rclpy'; the following exception was raised:
No module named 'rclpy'
WARNING: autodoc: failed to import module 'subscription' from module 'rclpy'; the following exception was raised:
No module named 'rclpy'
WARNING: autodoc: failed to import module 'utilities' from module 'rclpy'; the following exception was raised:
No module named 'rclpy'
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [100%] index
generating indices... genindexdone
writing additional pages... searchdone
copying static files... ... done
copying extra files... done
dumping search index in English (code: en)... done
dumping object inventory... done
build succeeded, 17 warnings.
Metadata
Metadata
Assignees
Labels
No labels
Activity
jacobperron commentedon Jun 4, 2020
I believe that an installation of ROS 2 is required for docs to be built successfully. To build docs from source, you should also build
rclpy. See #565 for improvements to the README.md.Note, that there are other warnings that we see with the latest state of rclpy (I'll look into fixing them).