Title: 1.0.4: sphinx warnings `reference target not found` · Issue #510 · msgpack/msgpack-python · GitHub
Open Graph Title: 1.0.4: sphinx warnings `reference target not found` · Issue #510 · msgpack/msgpack-python
X Title: 1.0.4: sphinx warnings `reference target not found` · Issue #510 · msgpack/msgpack-python
Description: First of all currently it is not possible to use straight sphinx-build command to build documentation out of source tree Details + /usr/bin/sphinx-build -n -T -b man docs build/sphinx/man Running Sphinx v5.0.1 making output directory... ...
Open Graph Description: First of all currently it is not possible to use straight sphinx-build command to build documentation out of source tree Details + /usr/bin/sphinx-build -n -T -b man docs build/sphinx/man Running S...
X Description: First of all currently it is not possible to use straight sphinx-build command to build documentation out of source tree Details + /usr/bin/sphinx-build -n -T -b man docs build/sphinx/man Running S...
Opengraph URL: https://github.com/msgpack/msgpack-python/issues/510
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"1.0.4: sphinx warnings `reference target not found`","articleBody":"First of all currently it is not possible to use straight `sphinx-build` command to build documentation out of source tree\r\n\u003cdetails\u003e\r\n\r\n```console\r\n+ /usr/bin/sphinx-build -n -T -b man docs build/sphinx/man\r\nRunning Sphinx v5.0.1\r\nmaking output directory... done\r\nWARNING: html_static_path entry '_static' does not exist\r\nbuilding [mo]: targets for 0 po files that are out of date\r\nbuilding [man]: all manpages\r\nupdating environment: [new config] 3 added, 0 changed, 0 removed\r\nreading sources... [100%] index\r\nWARNING: autodoc: failed to import function 'pack' from module 'msgpack'; the following exception was raised:\r\nNo module named 'msgpack'\r\nWARNING: autodoc: failed to import function 'packb' from module 'msgpack'; the following exception was raised:\r\nNo module named 'msgpack'\r\nWARNING: autodoc: failed to import function 'unpack' from module 'msgpack'; the following exception was raised:\r\nNo module named 'msgpack'\r\nWARNING: autodoc: failed to import function 'unpackb' from module 'msgpack'; the following exception was raised:\r\nNo module named 'msgpack'\r\nWARNING: autodoc: failed to import class 'Packer' from module 'msgpack'; the following exception was raised:\r\nNo module named 'msgpack'\r\nWARNING: autodoc: failed to import class 'Unpacker' from module 'msgpack'; the following exception was raised:\r\nNo module named 'msgpack'\r\nWARNING: autodoc: failed to import class 'ExtType' from module 'msgpack'; the following exception was raised:\r\nNo module named 'msgpack'\r\nWARNING: autodoc: failed to import class 'Timestamp' from module 'msgpack'; the following exception was raised:\r\nNo module named 'msgpack'\r\nWARNING: autodoc: failed to import module 'exceptions' from module 'msgpack'; the following exception was raised:\r\nNo module named 'msgpack'\r\nlooking for now-outdated files... none found\r\npickling environment... done\r\nchecking consistency... done\r\nwriting... python-msgpack.3 { api advanced } /home/tkloczko/rpmbuild/BUILD/msgpack-python-1.0.4/docs/api.rst:8: WARNING: py:func reference target not found: dump\r\n/home/tkloczko/rpmbuild/BUILD/msgpack-python-1.0.4/docs/api.rst:8: WARNING: py:func reference target not found: pack\r\n/home/tkloczko/rpmbuild/BUILD/msgpack-python-1.0.4/docs/api.rst:12: WARNING: py:func reference target not found: dumps\r\n/home/tkloczko/rpmbuild/BUILD/msgpack-python-1.0.4/docs/api.rst:12: WARNING: py:func reference target not found: packb\r\n/home/tkloczko/rpmbuild/BUILD/msgpack-python-1.0.4/docs/api.rst:16: WARNING: py:func reference target not found: load\r\n/home/tkloczko/rpmbuild/BUILD/msgpack-python-1.0.4/docs/api.rst:16: WARNING: py:func reference target not found: unpack\r\n/home/tkloczko/rpmbuild/BUILD/msgpack-python-1.0.4/docs/api.rst:20: WARNING: py:func reference target not found: loads\r\n/home/tkloczko/rpmbuild/BUILD/msgpack-python-1.0.4/docs/api.rst:20: WARNING: py:func reference target not found: unpackb\r\n/home/tkloczko/rpmbuild/BUILD/msgpack-python-1.0.4/docs/advanced.rst:10: WARNING: py:class reference target not found: msgpack.Packer\r\n/home/tkloczko/rpmbuild/BUILD/msgpack-python-1.0.4/docs/advanced.rst:13: WARNING: py:meth reference target not found: msgpack.Packer.bytes\r\n/home/tkloczko/rpmbuild/BUILD/msgpack-python-1.0.4/docs/advanced.rst:13: WARNING: py:meth reference target not found: msgpack.Packer.getbuffer\r\ndone\r\nbuild succeeded, 21 warnings.\r\n```\r\n\u003c/details\u003e\r\n\r\nFirst part of warnings can be fixed by patch like below:\r\n```patch\r\n--- a/docs/conf.py~ 2022-06-05 08:01:50.000000000 +0000\r\n+++ b/docs/conf.py 2022-06-05 08:02:43.878255796 +0000\r\n@@ -16,7 +16,7 @@\r\n # If extensions (or modules to document with autodoc) are in another directory,\r\n # add these directories to sys.path here. If the directory is relative to the\r\n # documentation root, use os.path.abspath to make it absolute, like shown here.\r\n-# sys.path.insert(0, os.path.abspath('.'))\r\n+sys.path.insert(0, os.path.abspath(\"..\"))\r\n\r\n # -- General configuration -----------------------------------------------------\r\n author = \"Inada Naoki\"\r\n\r\n```\r\nThis patch fixes what is in the comment and that can of fix is suggested in sphinx example copy.py https://www.sphinx-doc.org/en/master/usage/configuration.html#example-of-configuration-file\r\n\r\nThan .. on building my packages I'm using `sphinx-build` command with `-n` switch which shows warmings about missing references. These are not critical issues.\r\n\r\n\u003cdetails\u003e\r\n\r\n```console\r\n+ /usr/bin/sphinx-build -n -T -b man docs build/sphinx/man\r\nRunning Sphinx v5.0.1\r\nmaking output directory... done\r\nWARNING: html_static_path entry '_static' does not exist\r\nbuilding [mo]: targets for 0 po files that are out of date\r\nbuilding [man]: all manpages\r\nupdating environment: [new config] 3 added, 0 changed, 0 removed\r\nreading sources... [100%] index\r\nlooking for now-outdated files... none found\r\npickling environment... done\r\nchecking consistency... done\r\nwriting... python-msgpack.3 { api advanced } /home/tkloczko/rpmbuild/BUILD/msgpack-python-1.0.4/docs/api.rst:8: WARNING: py:func reference target not found: dump\r\n/home/tkloczko/rpmbuild/BUILD/msgpack-python-1.0.4/docs/api.rst:12: WARNING: py:func reference target not found: dumps\r\n/home/tkloczko/rpmbuild/BUILD/msgpack-python-1.0.4/docs/api.rst:16: WARNING: py:func reference target not found: load\r\n/home/tkloczko/rpmbuild/BUILD/msgpack-python-1.0.4/docs/api.rst:20: WARNING: py:func reference target not found: loads\r\n/home/tkloczko/rpmbuild/BUILD/msgpack-python-1.0.4/msgpack/fallback.py:docstring of msgpack.fallback.Packer:: WARNING: py:class reference target not found: callable\r\n/home/tkloczko/rpmbuild/BUILD/msgpack-python-1.0.4/msgpack/fallback.py:docstring of msgpack.fallback.Unpacker:6: WARNING: py:meth reference target not found: feed\r\n/home/tkloczko/rpmbuild/BUILD/msgpack-python-1.0.4/msgpack/fallback.py:docstring of msgpack.fallback.Unpacker:: WARNING: py:class reference target not found: callable\r\n/home/tkloczko/rpmbuild/BUILD/msgpack-python-1.0.4/msgpack/fallback.py:docstring of msgpack.fallback.Unpacker:: WARNING: py:class reference target not found: callable\r\n/home/tkloczko/rpmbuild/BUILD/msgpack-python-1.0.4/msgpack/ext.py:docstring of msgpack.ext.Timestamp.from_unix:: WARNING: py:class reference target not found: float.\r\n/home/tkloczko/rpmbuild/BUILD/msgpack-python-1.0.4/msgpack/ext.py:docstring of msgpack.ext.Timestamp.to_datetime:: WARNING: py:class reference target not found: datetime.\r\ndone\r\nbuild succeeded, 11 warnings.\r\n```\r\n\u003c/details\u003e\r\n\r\nYou can peak on fixes that kind of issues in other projects\r\nhttps://github.com/latchset/jwcrypto/pull/289\r\nhttps://github.com/click-contrib/sphinx-click/commit/abc31069\r\nhttps://github.com/latchset/jwcrypto/pull/289\r\nhttps://github.com/RDFLib/rdflib-sqlalchemy/issues/95\r\nhttps://github.com/sissaschool/elementpath/commit/bf869d9e\r\n","author":{"url":"https://github.com/kloczek","@type":"Person","name":"kloczek"},"datePublished":"2022-06-05T08:08:46.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/510/msgpack-python/issues/510"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a525578c-194b-0bca-d3d7-66064c774403 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E24C:154B27:9B76E0:DCA727:696F8E10 |
| html-safe-nonce | 917eaaaceb3583fa8b5b0bf656a62c2d2aaa26b17da0245c8f3a5f4b009a904a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjRDOjE1NEIyNzo5Qjc2RTA6RENBNzI3OjY5NkY4RTEwIiwidmlzaXRvcl9pZCI6Ijc3OTIwNDc5NjY0NTYzNTIyNzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9e812c3ca3c4ff2380204f16b998b982653584615abfbd1d6c20a65bb371f20f |
| hovercard-subject-tag | issue:1260989108 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/msgpack/msgpack-python/510/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3be51685823ce82eed09cfafdb80a4ed6fcad2851f4dae0f42cb91bfaba85b7a/msgpack/msgpack-python/issues/510 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3be51685823ce82eed09cfafdb80a4ed6fcad2851f4dae0f42cb91bfaba85b7a/msgpack/msgpack-python/issues/510 |
| og:image:alt | First of all currently it is not possible to use straight sphinx-build command to build documentation out of source tree Details + /usr/bin/sphinx-build -n -T -b man docs build/sphinx/man Running S... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kloczek |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0ca8d8c65612640b9a1a588b3eed68222ca723ed2d028b18fe81b28936d535eb |
| turbo-cache-control | no-preview |
| go-import | github.com/msgpack/msgpack-python git https://github.com/msgpack/msgpack-python.git |
| octolytics-dimension-user_id | 198264 |
| octolytics-dimension-user_login | msgpack |
| octolytics-dimension-repository_id | 2242705 |
| octolytics-dimension-repository_nwo | msgpack/msgpack-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 2242705 |
| octolytics-dimension-repository_network_root_nwo | msgpack/msgpack-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 95f60616ce2765d1114fe6da4af405a58c6d26d2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width