Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 734104 - media-gfx/blender-2.79b-r2 - AttributeError: 'Sphinx' object has no attribute 'override_domain'
Summary: media-gfx/blender-2.79b-r2 - AttributeError: 'Sphinx' object has no attribute...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Adrian
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-07-27 14:49 UTC by Michal Plichta
Modified: 2021-12-03 22:50 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge info (emerge_info.log,6.50 KB, text/plain)
2020-07-27 14:52 UTC, Michal Plichta
Details
build short output (output.log,8.89 KB, text/plain)
2020-07-27 14:53 UTC, Michal Plichta
Details
sphinx log (sphinx-err-zwzk68b0.log,695 bytes, text/plain)
2020-07-27 14:54 UTC, Michal Plichta
Details
blender-2.83.15-r1-build.log (blender-2.83.15-r1-build.log,952.45 KB, text/plain)
2021-11-06 18:50 UTC, Michal Plichta
Details
blender-2.83.15-r1-build.log.bz2 (blender-2.83.15-r1-build.log.bz2,380.56 KB, application/x-bzip)
2021-11-06 18:51 UTC, Michal Plichta
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Plichta 2020-07-27 14:49:29 UTC
Blender generating API documentation failed

Reproducible: Always
Comment 1 Michal Plichta 2020-07-27 14:52:59 UTC
Created attachment 651006 [details]
emerge info
Comment 2 Michal Plichta 2020-07-27 14:53:29 UTC
Created attachment 651008 [details]
build short output
Comment 3 Michal Plichta 2020-07-27 14:54:59 UTC
Created attachment 651010 [details]
sphinx log
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-07-27 15:02:30 UTC
Can you include the full build.log too? Thanks.
Comment 5 Michal Plichta 2020-07-27 15:10:40 UTC
(In reply to Sam James from comment #4)
> Can you include the full build.log too? Thanks.

it is 12 Mb ;)
Comment 7 Michal Plichta 2020-08-12 23:13:45 UTC
when I downgrade sphinx-2.0.1-r1 to it is working

see below:
/var/tmp/portage/media-gfx/blender-2.79b-r2/work/blender-2.79b/doc/python_api/sphinx-in/conf.py:39: RemovedInSphinx30Warning: app.override_domain() is deprecated. Use app.add_domain() with override option instead.
  sphinx.override_domain(PatchedPythonDomain)


Log file:
-------------
RNA Warning: Current value "0" matches no enum in 'EnumProperty', 'clip', 'default'
RNA Warning: Current value "0" matches no enum in 'EnumProperty', 'scene', 'default'
RNA Warning: Current value "0" matches no enum in 'EnumProperty', 'name', 'default'
Error: Not freed memory blocks: 124, total unfreed memory 0.030273 MB
Running Sphinx v2.0.1
making output directory... done
/var/tmp/portage/media-gfx/blender-2.79b-r2/work/blender-2.79b/doc/python_api/sphinx-in/conf.py:39: RemovedInSphinx30Warning: app.override_domain() is deprecated. Use app.add_domain() with override option instead.
  sphinx.override_domain(PatchedPythonDomain)
loading intersphinx inventory from https://docs.blender.org/manual/en/dev/objects.inv...
WARNING: failed to reach any of the inventories with the following issues:
intersphinx inventory 'https://docs.blender.org/manual/en/dev/objects.inv' not fetchable due to <class 'requests.exceptions.ConnectionError'>: HTTPSConnectionPool(host='docs.blender.org', port=443): Max retries exceeded with url: /manual/en/dev/objects.inv (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f1548ad76d8>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',))
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 1281 source files that are out of date
updating environment: 1281 added, 0 changed, 0 removed
/usr/lib64/python3.6/site-packages/sphinx/util/nodes.py:149: FutureWarning:                                                                                                                                                                                          
   The iterable returned by Node.traverse()
   will become an iterator instead of a list in Docutils > 0.16.
  for classifier in reversed(node.parent.traverse(nodes.classifier)):
Comment 8 Michal Plichta 2020-08-12 23:15:22 UTC
So we need <Sphinx-3.0.0 for Blender
Comment 9 Larry the Git Cow gentoo-dev 2020-12-03 07:32:21 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c91980424ee69c2431b2df109ea608c89335f63

commit 5c91980424ee69c2431b2df109ea608c89335f63
Author:     Joonas Niilola <juippis@gentoo.org>
AuthorDate: 2020-12-03 07:31:34 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2020-12-03 07:32:13 +0000

    profiles/base/package.use.mask: mask blender[doc]
    
    Bug: https://bugs.gentoo.org/734104
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 profiles/base/package.use.mask | 4 ++++
 1 file changed, 4 insertions(+)
Comment 10 Michal Plichta 2020-12-03 10:17:04 UTC
this could be similar problem as in https://bugs.gentoo.org/743874 due to wrong default python interpreter. See https://bugs.gentoo.org/743874#c12

So maybe problem is if you have older python3 and newer Sphings then blender's doc are not generated properly. But with newer python3 maybe it will work... just my guess...
Comment 11 Bernd 2021-06-04 15:30:03 UTC
Is this still happening with recent 2.83 or 2.9x version?
Comment 12 Michal Plichta 2021-08-19 17:34:22 UTC
With 2.93  and python38 I didn't see it any more
Comment 13 Jonas Stein gentoo-dev 2021-10-30 10:19:29 UTC
Could anyone test and report for 2.83 too, so that we can close this ticket?
Comment 14 Michal Plichta 2021-11-02 20:59:34 UTC
Looks like 2.83.15-r1 is fine

Installed versions:  2.83.15-r1(2.83)^t(03:08:39 AM 11/02/2021)(bullet collada color-management cycles dds fftw fluid jemalloc jpeg2k nls openal openexr openimageio openmp opensubdiv sdl sndfile system-numpy system-python tbb tiff -alembic -cuda -debug -doc -ffmpeg -headless -jack -man -ndof -opencl -openvdb -osl -standalone -test -valgrind PYTHON_SINGLE_TARGET="python3_8")


But even I have in /etc/portage/package.use:

media-gfx/blender collada cycles doc fftw jemalloc jpeg2k openimageio opensubdiv openal player sndfile

doc USE is not enable in installed version.
Comment 15 Bernd 2021-11-03 06:00:29 UTC
(In reply to Michal Plichta from comment #14)
> Looks like 2.83.15-r1 is fine
> 
> Installed versions:  2.83.15-r1(2.83)^t(03:08:39 AM 11/02/2021)(bullet
> collada color-management cycles dds fftw fluid jemalloc jpeg2k nls openal
> openexr openimageio openmp opensubdiv sdl sndfile system-numpy system-python
> tbb tiff -alembic -cuda -debug -doc -ffmpeg -headless -jack -man -ndof
> -opencl -openvdb -osl -standalone -test -valgrind
> PYTHON_SINGLE_TARGET="python3_8")
> 
> 
> But even I have in /etc/portage/package.use:
> 
> media-gfx/blender collada cycles doc fftw jemalloc jpeg2k openimageio
> opensubdiv openal player sndfile
> 
> doc USE is not enable in installed version.

The doc use flag has been masked by the commit in comment 9. You need to unmask it to be able to build the documentation.
Comment 16 Michal Plichta 2021-11-03 16:35:16 UTC
(In reply to Bernd from comment #15)
> (In reply to Michal Plichta from comment #14)
> > Looks like 2.83.15-r1 is fine
> > 
> > Installed versions:  2.83.15-r1(2.83)^t(03:08:39 AM 11/02/2021)(bullet
> > collada color-management cycles dds fftw fluid jemalloc jpeg2k nls openal
> > openexr openimageio openmp opensubdiv sdl sndfile system-numpy system-python
> > tbb tiff -alembic -cuda -debug -doc -ffmpeg -headless -jack -man -ndof
> > -opencl -openvdb -osl -standalone -test -valgrind
> > PYTHON_SINGLE_TARGET="python3_8")
> > 
> > 
> > But even I have in /etc/portage/package.use:
> > 
> > media-gfx/blender collada cycles doc fftw jemalloc jpeg2k openimageio
> > opensubdiv openal player sndfile
> > 
> > doc USE is not enable in installed version.
> 
> The doc use flag has been masked by the commit in comment 9. You need to
> unmask it to be able to build the documentation.

fill like idiot... how to do it?? /etc/portage/package.use.unmask or package.unmask ???
Comment 17 Michal Plichta 2021-11-03 16:37:17 UTC
jesus... I just remove whole: /etc/portage/profile/package.use.mask .... what now...
Comment 19 Michal Plichta 2021-11-06 18:50:16 UTC
Created attachment 749142 [details]
blender-2.83.15-r1-build.log
Comment 20 Michal Plichta 2021-11-06 18:51:30 UTC
Created attachment 749145 [details]
blender-2.83.15-r1-build.log.bz2
Comment 21 Michal Plichta 2021-11-06 18:55:34 UTC
blender-2.83.15-r1 with +doc and python3.8 

failed
see build logs:
blender-2.83.15-r1-build.log.bz2 blender-2.83.15-r1-build.log

Note: since I'm at python3.9
blender:2.83 force me to add to packages.use:
>=dev-python/requests-2.26.0 python_targets_python3_8
>=dev-python/numpy-1.21.2-r1 python_targets_python3_8
>=app-doc/doxygen-1.9.1 dot
>=dev-python/sphinx-4.2.0-r1 latex
>=dev-python/certifi-10001-r1 python_targets_python3_8
>=dev-python/charset_normalizer-2.0.6 python_targets_python3_8
>=dev-python/idna-3.2 python_targets_python3_8
>=dev-python/urllib3-1.26.7 python_targets_python3_8
>=dev-python/setuptools-57.5.0 python_targets_python3_8
>=dev-python/setuptools_scm-6.3.2 python_targets_python3_8
>=dev-python/packaging-21.0 python_targets_python3_8
>=dev-python/tomli-1.2.1 python_targets_python3_8
>=dev-python/pyparsing-2.4.7-r1 python_targets_python3_8
>=dev-python/PySocks-1.7.1-r1 python_targets_python3_8
>=dev-python/cython-0.29.24-r1 python_targets_python3_8
Comment 22 Michal Plichta 2021-11-08 16:25:06 UTC
(In reply to Jonas Stein from comment #13)
> Could anyone test and report for 2.83 too, so that we can close this ticket?

Done, https://bugs.gentoo.org/822465
Comment 23 Larry the Git Cow gentoo-dev 2021-12-03 22:50:59 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a4acd154d75e1e0f16f641bf3d882039d5370914

commit a4acd154d75e1e0f16f641bf3d882039d5370914
Author:     Sebastian Parborg <darkdefende@gmail.com>
AuthorDate: 2021-12-03 14:05:35 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-12-03 22:40:32 +0000

    media-gfx/blender: Fix building docs
    
    Closes: https://bugs.gentoo.org/822465
    Closes: https://bugs.gentoo.org/734104
    
    Signed-off-by: Sebastian Parborg <darkdefende@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/23161
    Signed-off-by: Sam James <sam@gentoo.org>

 media-gfx/blender/blender-2.93.6.ebuild | 59 ++++++++++++++++-----------------
 media-gfx/blender/blender-3.0.0.ebuild  | 59 ++++++++++++++++-----------------
 media-gfx/blender/blender-9999.ebuild   | 59 ++++++++++++++++-----------------
 profiles/base/package.use.mask          |  5 ---
 4 files changed, 87 insertions(+), 95 deletions(-)