[Python-modules-team] Bug#954569: pikepdf: FTBFS: RuntimeError: Non Expected exception in `/<<PKGBUILDDIR>>/docs/topics/content_streams.rst` line 46

Lucas Nussbaum lucas at debian.org
Sun Mar 22 08:36:37 GMT 2020


Source: pikepdf
Version: 1.10.2+dfsg-1
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20200321 ftbfs-bullseye

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.

Relevant part (hopefully):
> make[2]: Entering directory '/<<PKGBUILDDIR>>/docs'
> sphinx-build -b html -d _build/doctrees   . _build/html
> Running Sphinx v1.8.5
> making output directory...
> loading intersphinx inventory from https://docs.python.org/objects.inv...
> WARNING: failed to reach any of the inventories with the following issues:
> intersphinx inventory 'https://docs.python.org/objects.inv' not fetchable due to <class 'requests.exceptions.ProxyError'>: HTTPSConnectionPool(host='docs.python.org', port=443): Max retries exceeded with url: /objects.inv (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f71469e0190>: Failed to establish a new connection: [Errno 111] Connection refused')))
> [autosummary] generating autosummary for: api/filters.rst, api/main.rst, api/models.rst, arch.rst, index.rst, installation.rst, release_notes.rst, resources.rst, topics/content_streams.rst, topics/encoding.rst, topics/images.rst, topics/metadata.rst, topics/objects.rst, topics/page.rst, topics/pages.rst, topics/streams.rst, tutorial.rst
> building [mo]: targets for 0 po files that are out of date
> building [html]: targets for 17 source files that are out of date
> updating environment: 17 added, 0 changed, 0 removed
> reading sources... [  5%] api/filters
> reading sources... [ 11%] api/main
> reading sources... [ 17%] api/models
> reading sources... [ 23%] arch
> reading sources... [ 29%] index
> reading sources... [ 35%] installation
> reading sources... [ 41%] release_notes
> reading sources... [ 47%] resources
> reading sources... [ 52%] topics/content_streams
> /usr/lib/python3/dist-packages/IPython/paths.py:66: UserWarning: IPython parent '/sbuild-nonexistent' is not a writable location, using a temp directory.
>   warn("IPython parent '{0}' is not a writable location,"
> WARNING: autodoc: failed to import function 'parse_content_stream' from module 'pikepdf'; the following exception was raised:
> pikepdf's extension library failed to import
> WARNING: autodoc: failed to import class 'Token' from module 'pikepdf'; the following exception was raised:
> pikepdf's extension library failed to import
> WARNING: autodoc: failed to import class 'TokenFilter' from module 'pikepdf'; the following exception was raised:
> pikepdf's extension library failed to import
> WARNING: autodoc: failed to import class 'Pdf' from module 'pikepdf'; the following exception was raised:
> pikepdf's extension library failed to import
> WARNING: autodoc: failed to import function 'open' from module 'pikepdf'; the following exception was raised:
> pikepdf's extension library failed to import
> WARNING: autodoc: failed to import function 'new' from module 'pikepdf'; the following exception was raised:
> pikepdf's extension library failed to import
> WARNING: autodoc: failed to import class 'Encryption' from module 'pikepdf'; the following exception was raised:
> pikepdf's extension library failed to import
> WARNING: autodoc: failed to import exception 'PdfError' from module 'pikepdf'; the following exception was raised:
> pikepdf's extension library failed to import
> WARNING: autodoc: failed to import exception 'PasswordError' from module 'pikepdf'; the following exception was raised:
> pikepdf's extension library failed to import
> WARNING: autodoc: failed to import class 'Object' from module 'pikepdf'; the following exception was raised:
> pikepdf's extension library failed to import
> WARNING: autodoc: failed to import class 'Name' from module 'pikepdf'; the following exception was raised:
> pikepdf's extension library failed to import
> WARNING: autodoc: failed to import class 'String' from module 'pikepdf'; the following exception was raised:
> pikepdf's extension library failed to import
> WARNING: autodoc: failed to import class 'Array' from module 'pikepdf'; the following exception was raised:
> pikepdf's extension library failed to import
> WARNING: autodoc: failed to import class 'Dictionary' from module 'pikepdf'; the following exception was raised:
> pikepdf's extension library failed to import
> WARNING: autodoc: failed to import class 'Stream' from module 'pikepdf'; the following exception was raised:
> pikepdf's extension library failed to import
> WARNING: autodoc: failed to import class 'Operator' from module 'pikepdf'; the following exception was raised:
> pikepdf's extension library failed to import
> WARNING: autodoc: failed to import class '_qpdf.PageList' from module 'pikepdf'; the following exception was raised:
> pikepdf's extension library failed to import
> WARNING: autodoc: failed to import class 'Page' from module 'pikepdf'; the following exception was raised:
> pikepdf's extension library failed to import
> WARNING: autodoc: failed to import class 'PdfMatrix' from module 'pikepdf'; the following exception was raised:
> pikepdf's extension library failed to import
> WARNING: autodoc: failed to import class 'PdfImage' from module 'pikepdf'; the following exception was raised:
> pikepdf's extension library failed to import
> WARNING: autodoc: failed to import class 'PdfInlineImage' from module 'pikepdf'; the following exception was raised:
> pikepdf's extension library failed to import
> WARNING: autodoc: failed to import class 'models.PdfMetadata' from module 'pikepdf'; the following exception was raised:
> pikepdf's extension library failed to import
> WARNING: autodoc: failed to import class 'models.Encryption' from module 'pikepdf'; the following exception was raised:
> pikepdf's extension library failed to import
> WARNING: autodoc: failed to import class 'Permissions' from module 'pikepdf'; the following exception was raised:
> pikepdf's extension library failed to import
> WARNING: autodoc: failed to import class 'models.EncryptionInfo' from module 'pikepdf'; the following exception was raised:
> pikepdf's extension library failed to import
> 
> Exception occurred:
>   File "/usr/lib/python3/dist-packages/IPython/sphinxext/ipython_directive.py", line 570, in process_input
>     raise RuntimeError('Non Expected exception in `{}` line {}'.format(filename, lineno))
> RuntimeError: Non Expected exception in `/<<PKGBUILDDIR>>/docs/topics/content_streams.rst` line 46
> The full traceback has been saved in /tmp/sphinx-err-1atdxqas.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!
> 
> 
> >>>-------------------------------------------------------------------------
> Exception in /<<PKGBUILDDIR>>/docs/topics/content_streams.rst at block ending on line 46
> Specify :okexcept: as an option in the ipython:: block to suppress this message
> ---------------------------------------------------------------------------
> NameError                                 Traceback (most recent call last)
> <ipython-input-1-9f65c1141d29> in <module>
> ----> 1 pdf = pikepdf.open("../tests/resources/congress.pdf")
> 
> NameError: name 'pikepdf' is not defined
> <<<-------------------------------------------------------------------------
> 
> make[2]: *** [Makefile:56: html] Error 2

The full build log is available from:
   http://qa-logs.debian.net/2020/03/21/pikepdf_1.10.2+dfsg-1_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



More information about the Python-modules-team mailing list