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.

Build warnings triggered when run using Sphinx 2.2

See original GitHub issue

Description of problem

Several warnings are triggered when building PDF output the latest master branch using Sphinx 2.2 and Python 3.7.

$ sphinx-build -a -n -W -b pdf . _build
...
.tox/docs/lib/python3.7/importlib/__init__.py:127: RemovedInSphinx30Warning: sphinx.environment.NoUri is deprecated. Check CHANGES for Sphinx API modifications.
  return _bootstrap._gcd_import(name[level:], package, level)

.tox/docs/lib/python3.7/site-packages/rst2pdf/rson.py:140: FutureWarning: Possible nested set at position 2
  splitter = re.compile(pattern).split

.tox/docs/lib/python3.7/site-packages/rst2pdf/pdfbuilder.py:602: RemovedInSphinx30Warning: sphinx.util.osutil.ustrtime is deprecated for removal
  date=ustrftime(self.config.today_fmt or _('%B %d, %Y'))

At least the bottom two are generated from this package, the first one I’m not sure on.

🖥 Versions

Python 3.7

Sphinx 2.2.0

rst2pdf master branch https://github.com/rst2pdf/rst2pdf/commit/25713408cbe8da5be0f12f1176b11fddd1d95774

sphinx-rtd-theme==0.4.3

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
alphawave-gitcommented, Apr 23, 2020

Hi, still getting this on 0.96.dev0 running on Ubuntu focal:

/usr/lib/python3/dist-packages/rst2pdf/rson.py:140: FutureWarning: Possible nested set at position 2 splitter = re.compile(pattern).split

1reaction
johnthagencommented, Sep 27, 2019

@akrabat Can confirm the warnings are now gone as of the latest master.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration - Sphinx documentation
Regardless of this setting, warnings are always written to the standard error stream when sphinx-build is run. The default is False , the...
Read more >
Sphinx-build warnings reference - Tarantool.io
Sphinx -build warnings reference. This document will guide you through the warnings that can be raised by Sphinx while building the docs.
Read more >
See all warnings as errors when building Sphinx docs on ...
Turn warnings into errors ( -W and --keep-going options). This means the build fails if there is a warning and exits with exit...
Read more >
Docs build error with Sphinx 3.0 due to invalid C declaration
My guess is sphinx new version possibly breaking the build on Python 3.8 where it's not pinned to use 2.2.0 pulling the latest...
Read more >
Sphinx 2.3.2-beta reference manual
2.2.1. Required tools. On UNIX, you will need the following tools to build and install Sphinx: a working C++ compiler. GNU gcc and...
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