[Python-modules-team] Bug#975202: pikepdf: FTBFS: RuntimeError: Prohibited to create memoryview without Py_buffer

Lucas Nussbaum lucas at debian.org
Thu Nov 19 09:48:36 GMT 2020


Source: pikepdf
Version: 1.17.3+dfsg-1
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20201119 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 v3.3.1
> Matplotlib created a temporary config/cache directory at /tmp/matplotlib-4aqbt22n because the default path (/sbuild-nonexistent/.config/matplotlib) is not a writable directory; it is highly recommended to set the MPLCONFIGDIR environment variable to a writable directory, in particular to speed up the import of Matplotlib and to better support multiprocessing.
> making output directory... done
> WARNING: html_static_path entry '_static' does not exist
> 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 'urllib3.exceptions.ProxySchemeUnknown'>: Not supported proxy scheme None
> [autosummary] generating autosummary for: api/filters.rst, api/main.rst, api/models.rst, index.rst, installation.rst, references/arch.rst, references/contributing.rst, references/debugging.rst, references/resources.rst, release_notes.rst, topics/content_streams.rst, topics/encoding.rst, topics/images.rst, topics/metadata.rst, topics/objects.rst, topics/outlines.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 20 source files that are out of date
> updating environment: [new config] 20 added, 0 changed, 0 removed
> reading sources... [  5%] api/filters
> reading sources... [ 10%] api/main
> reading sources... [ 15%] api/models
> reading sources... [ 20%] index
> reading sources... [ 25%] installation
> reading sources... [ 30%] references/arch
> reading sources... [ 35%] references/contributing
> reading sources... [ 40%] references/debugging
> reading sources... [ 45%] references/resources
> reading sources... [ 50%] release_notes
> reading sources... [ 55%] 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,"
> 
> 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 48
> The full traceback has been saved in /tmp/sphinx-err-9o5_eq6o.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 48
> Specify :okexcept: as an option in the ipython:: block to suppress this message
> ---------------------------------------------------------------------------
> RuntimeError                              Traceback (most recent call last)
> <ipython-input-1-9f65c1141d29> in <module>
> ----> 1 pdf = pikepdf.open("../tests/resources/congress.pdf")
> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pikepdf/__init__.py in open(*args, **kwargs)
>      70 def open(*args, **kwargs):  # pylint: disable=redefined-builtin
>      71     """Alias for :func:`pikepdf.Pdf.open`. Open a PDF."""
> ---> 72     return Pdf.open(*args, **kwargs)
>      73 
>      74 
> 
> RuntimeError: Prohibited to create memoryview without Py_buffer
> <<<-------------------------------------------------------------------------
> 
> make[2]: *** [Makefile:56: html] Error 2

The full build log is available from:
   http://qa-logs.debian.net/2020/11/19/pikepdf_1.17.3+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