Skip to content

I cannot compile docs #4540

Closed
Closed

Description

@0xFF1E071F

What did you do?

I am creating a linux package for PisiLinux of pillow 7.1.1. I can compile pillow with no problems. I cannot compile docs.

What did you expect to happen?

Creating html documentation.

What actually happened?

Building of documentation finished with problems, 7 warnings, then stop.

What are your OS, Python and Pillow versions?

  • OS: PisiLinux 2.1.2
  • Python: 3.8.2
  • Pillow: 7.1.1
  • Sphinx: 3.0.0
def build():
    # suppress warnings
    pisitools.cflags.add("-Wno-sign-compare -Wno-pointer-sign")
    # fix unused direct dependency analysis
    shelltools.export("LDSHARED", "x86_64-pc-linux-gnu-gcc -Wl,-O1,--as-needed -shared -lpthread")
    pythonmodules.compile(pyVer="3")
    
    # build documentation
    shelltools.export("PYTHONPATH", "%s/Pillow-%s/build/lib.linux-x86_64-3.8" % (get.workDIR(), get.srcVERSION()))
    shelltools.system("make -C docs html")

And This was the error:

Running make -C docs html
make: Entering directory '/var/pisi/python3-pillow-7.1.1-6/work/Pillow-7.1.1/docs'
sphinx-build -b html -W --keep-going -d _build/doctrees   . _build/html
Running Sphinx v3.0.0
making output directory... done
/var/pisi/python3-pillow-7.1.1-6/work/Pillow-7.1.1/docs/conf.py:292: RemovedInSphinx40Warning: The app.add_javascript() is deprecated. Please use app.add_js_file() instead.
  app.add_javascript("js/script.js")
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 75 source files that are out of date
updating environment: [new config] 75 added, 0 changed, 0 removed
reading sources... [100%] releasenotes/index                                                                                                                                                                         
/var/pisi/python3-pillow-7.1.1-6/work/Pillow-7.1.1/build/lib.linux-x86_64-3.8/PIL/PngImagePlugin.py:docstring of PIL.PngImagePlugin.PngImageFile:1: WARNING: duplicate object description of PIL.PngImagePlugin.PngImageFile, other instance in reference/plugins, use :noindex: for one of them
/var/pisi/python3-pillow-7.1.1-6/work/Pillow-7.1.1/build/lib.linux-x86_64-3.8/PIL/PngImagePlugin.py:docstring of PIL.PngImagePlugin.PngImageFile.load_end:1: WARNING: duplicate object description of PIL.PngImagePlugin.PngImageFile.load_end, other instance in reference/plugins, use :noindex: for one of them
/var/pisi/python3-pillow-7.1.1-6/work/Pillow-7.1.1/build/lib.linux-x86_64-3.8/PIL/PngImagePlugin.py:docstring of PIL.PngImagePlugin.PngImageFile.load_prepare:1: WARNING: duplicate object description of PIL.PngImagePlugin.PngImageFile.load_prepare, other instance in reference/plugins, use :noindex: for one of them
/var/pisi/python3-pillow-7.1.1-6/work/Pillow-7.1.1/build/lib.linux-x86_64-3.8/PIL/PngImagePlugin.py:docstring of PIL.PngImagePlugin.PngImageFile.load_read:1: WARNING: duplicate object description of PIL.PngImagePlugin.PngImageFile.load_read, other instance in reference/plugins, use :noindex: for one of them
/var/pisi/python3-pillow-7.1.1-6/work/Pillow-7.1.1/build/lib.linux-x86_64-3.8/PIL/PngImagePlugin.py:docstring of PIL.PngImagePlugin.PngImageFile.seek:1: WARNING: duplicate object description of PIL.PngImagePlugin.PngImageFile.seek, other instance in reference/plugins, use :noindex: for one of them
/var/pisi/python3-pillow-7.1.1-6/work/Pillow-7.1.1/build/lib.linux-x86_64-3.8/PIL/PngImagePlugin.py:docstring of PIL.PngImagePlugin.PngImageFile.tell:1: WARNING: duplicate object description of PIL.PngImagePlugin.PngImageFile.tell, other instance in reference/plugins, use :noindex: for one of them
/var/pisi/python3-pillow-7.1.1-6/work/Pillow-7.1.1/build/lib.linux-x86_64-3.8/PIL/PngImagePlugin.py:docstring of PIL.PngImagePlugin.PngImageFile.verify:1: WARNING: duplicate object description of PIL.PngImagePlugin.PngImageFile.verify, other instance in reference/plugins, use :noindex: for one of them
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [100%] releasenotes/index                                                                                                                                                                          
generating indices...  genindex py-modindexdone
highlighting module code... [100%] PIL._binary                                                                                                                                                                       
writing additional pages...  searchdone
copying images... [100%] releasenotes/../../Tests/images/imagedraw_stroke_different.png                                                                                                                              
copying static files... ... done
copying extra files... done
dumping search index in English (code: en)... done
dumping object inventory... done
build finished with problems, 7 warnings.
make: *** [Makefile:45: html] Error 1
make: Leaving directory '/var/pisi/python3-pillow-7.1.1-6/work/Pillow-7.1.1/docs'

Activity

  1. hugovk commented on Apr 8, 2020

    @hugovk
    Member

    Looks like #4528 (comment).

    You could try Sphinx < 3, or patch using f1f177c, or we may have a 7.1.2 out soonish with the fix: #4354 (comment).

  2. 0xFF1E071F commented on Apr 8, 2020

    @0xFF1E071F
    Author

    patch work, perfectly thanks =)

  3. blue-devil commented on Apr 8, 2020

    @blue-devil

    I got the same error and solve with patch thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions