Summary: | media-gfx/blender-2.83.4[doc]: failed to emerge (Error: dropbox with unknown operator: WM_OT_drop_blend_file) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Leonid Kopylov <leonchik1976> |
Component: | Current packages | Assignee: | Adrian <agrigo2001> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | darkdefende, ilmostro7, proxy-maint, sam |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log.xz
Patch ebuild to fix blender python doc generation Fix building docs with >=dev-python/sphinx-3 Apply sphinx3 patch in blender-2.83.4-r1.ebuild |
Description
Leonid Kopylov
2020-09-11 15:13:03 UTC
Created attachment 659532 [details]
build.log.xz
Freestyle: couldn't find 'scripts/freestyle/modules', Freestyle won't work properly. ModuleNotFoundError: No module named 'bpy_types' ModuleNotFoundError: No module named 'bpy_types' [1;31mERROR[0m (bpy.rna): /var/tmp/portage/media-gfx/blender-2.83.4/work/blender-2.83.4/source/blender/python/intern/bpy_rna.c:7263 pyrna_srna_ExternalType: failed to find 'bpy_types' module ModuleNotFoundError: No module named 'bpy_types' ModuleNotFoundError: No module named 'bpy_types' [1;31mERROR[0m (bpy.rna): /var/tmp/portage/media-gfx/blender-2.83.4/work/blender-2.83.4/source/blender/python/intern/bpy_rna.c:7263 pyrna_srna_ExternalType: failed to find 'bpy_types' module ModuleNotFoundError: No module named 'bpy_types' [1;31mERROR[0m (bpy.rna): /var/tmp/portage/media-gfx/blender-2.83.4/work/blender-2.83.4/source/blender/python/intern/bpy_rna.c:7263 pyrna_srna_ExternalType: failed to find 'bpy_types' module ModuleNotFoundError: No module named 'bpy_types' [1;31mERROR[0m (bpy.rna): /var/tmp/portage/media-gfx/blender-2.83.4/work/blender-2.83.4/source/blender/python/intern/bpy_rna.c:7263 pyrna_srna_ExternalType: failed to find 'bpy_types' module ModuleNotFoundError: No module named 'bpy_types' [1;31mERROR[0m (bpy.rna): /var/tmp/portage/media-gfx/blender-2.83.4/work/blender-2.83.4/source/blender/python/intern/bpy_rna.c:7263 pyrna_srna_ExternalType: failed to find 'bpy_types' module ModuleNotFoundError: No module named 'bpy' Error: dropbox with unknown operator: WM_OT_drop_blend_file terminate called after throwing an instance of 'std::logic_error' what(): basic_string::_M_construct null not valid /var/tmp/portage/media-gfx/blender-2.83.4/temp/environment: line 3391: 11279 Aborted (core dumped) "${BUILD_DIR}"/bin/blender --background --python doc/python_api/sphinx_doc_gen.py -noaudio * ERROR: media-gfx/blender-2.83.4::gentoo failed (compile phase): * sphinx failed. * * Call stack: * ebuild.sh, line 125: Called src_compile * environment, line 3403: Called die * The specific snippet of code: * "${BUILD_DIR}"/bin/blender --background --python doc/python_api/sphinx_doc_gen.py -noaudio || die "sphinx failed."; * * If you need support, post the output of `emerge --info '=media-gfx/blender-2.83.4::gentoo'`, * the complete build log and the output of `emerge -pqv '=media-gfx/blender-2.83.4::gentoo'`. * The complete build log is located at '/var/tmp/portage/media-gfx/blender-2.83.4/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-gfx/blender-2.83.4/temp/environment'. * Working directory: '/var/tmp/portage/media-gfx/blender-2.83.4/work/blender-2.83.4' * S: '/var/tmp/portage/media-gfx/blender-2.83.4/work/blender-2.83.4' Can you try with USE=-doc for a moment? (In reply to Sam James from comment #3) > Can you try with USE=-doc for a moment? yes, success with USE=-doc Created attachment 671464 [details, diff]
Patch ebuild to fix blender python doc generation
It appears that this version of blender does not find the python modules used to generate the python documents. This patch adds some arguments to the command-line used to generate those documents to help it find those modules. This fixes this issue for me. It does not appear to have been a problem in the last stable version of blender.
The python documents do not appear to generate properly with >=dev-python/sphinx-3, however. I have another patch for that.
Created attachment 671467 [details, diff]
Fix building docs with >=dev-python/sphinx-3
Newer versions of blender, including the currently-unstable blender-2.90.1-r1, have a simple one-line patch to allow them to work with >=dev-python/sphinx-3. This patch is the commit that implements that fix in newer versions of blender. It applies without error to blender-2.83.4 (although the line numbers are different), and allows blender-2.83.4[doc] to compile and install with dev-python/sphinx-3.2.1. It does not appear to break installation with dev-python/sphinx-2.4.4, either.
Created attachment 671470 [details, diff]
Apply sphinx3 patch in blender-2.83.4-r1.ebuild
Quick patch for blender-2.83.4-r1.ebuild that applies the patch allowing it to install correctly with USE=doc and >=dev-python/sphinx-3.
I think this may be closed. I was affected by the bug originally, but it appears to no longer be a problem in the current stable version (blender-2.93.10-r1). Apologies for missing the patch before. No problem. It was easy enough for me to apply myself, and I imagine the Gentoo devs have bigger bugs to worry about than blender[doc] problems. I figure there is a chance that just having the bug here with a patch might have helped somebody, though, so that was why I posted it. |