Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 749240 - media-gfx/blender-2.90.1-r1 - ERROR (bpy.rna): .../work/blender-2.90.1/source/blender/python/intern/bpy_rna.c:7263 pyrna_srna_ExternalType: failed to find 'bpy_types' module
Summary: media-gfx/blender-2.90.1-r1 - ERROR (bpy.rna): .../work/blender-2.90.1/source...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Paul Zander
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-15 06:39 UTC by Einstok Fair
Modified: 2025-02-15 01:37 UTC (History)
7 users (show)

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


Attachments
build.log (build.log.gz,468.48 KB, application/gzip)
2020-10-15 06:42 UTC, Einstok Fair
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Einstok Fair 2020-10-15 06:39:31 UTC
* Messages for package media-gfx/blender-2.90.1-r1:

 * ERROR: media-gfx/blender-2.90.1-r1::gentoo failed (compile phase):
 *   sphinx failed.
 * 
 * Call stack:
 *     ebuild.sh, line 125:  Called src_compile
 *   environment, line 3429:  Called die
 * The specific snippet of code:
 *           "${BUILD_DIR}"/bin/blender --background --python doc/python_api/sphinx_doc_gen.py -noaudio || die "sphinx failed.";
Comment 1 Einstok Fair 2020-10-15 06:42:26 UTC
Created attachment 665765 [details]
build.log
Comment 2 Amel Hodzic 2020-11-11 11:12:38 UTC
Possible duplicate of or related to Bug 741664.
Comment 3 Michal Plichta 2020-11-11 12:57:35 UTC
Not totally related. I had problem with previous version of blender-2.79b-r2 with sphinx as well (see https://bugs.gentoo.org/734104). When I downgrade to dev-python/sphinx-2.0.1-r1 or dev-python/sphinx-2.4.4, blender-2.79b-r2 start compile successfully.

In this case with both sphinx-2.4.4 and sphinx-3.2.1, blender-2.83.4-r1 fail in the same manner.
Comment 4 Einstok Fair 2020-12-03 18:54:32 UTC
something similar in 2.91:

ERROR (bpy.rna): /var/tmp/portage/media-gfx/blender-2.91.0/work/blender-2.91.0/source/blender/python/intern/bpy_rna.c:7251 pyrna_srna_ExternalType: failed to find 'bpy_types' module
ModuleNotFoundError: No module named 'bpy_types'
Comment 5 Einstok Fair 2020-12-03 20:09:36 UTC
Requires USE="doc" to reproduce.
Comment 6 Einstok Fair 2025-02-15 01:37:38 UTC
 * Generating (BPY) Blender Python API docs ...
Blender 4.2.1 LTS
bpy: couldn't find 'scripts/modules', blender probably won't start.
Freestyle: couldn't find 'scripts/freestyle/modules', Freestyle won't work properly.
ModuleNotFoundError: No module named 'bpy_types'
ModuleNotFoundError: No module named 'bpy_types'
ERROR (bpy.rna): source/blender/python/intern/bpy_rna.cc:7435 pyrna_srna_ExternalType: failed to find 'bpy_types' module
ModuleNotFoundError: No module named 'bpy_types'
ModuleNotFoundError: No module named 'bpy_types'
ERROR (bpy.rna): source/blender/python/intern/bpy_rna.cc:7435 pyrna_srna_ExternalType: failed to find 'bpy_types' module
ModuleNotFoundError: No module named 'bpy_types'
ERROR (bpy.rna): source/blender/python/intern/bpy_rna.cc:7435 pyrna_srna_ExternalType: failed to find 'bpy_types' module
ModuleNotFoundError: No module named 'bpy_types'
ERROR (bpy.rna): source/blender/python/intern/bpy_rna.cc:7435 pyrna_srna_ExternalType: failed to find 'bpy_types' module
ModuleNotFoundError: No module named 'bpy_types'
ERROR (bpy.rna): source/blender/python/intern/bpy_rna.cc:7435 pyrna_srna_ExternalType: failed to find 'bpy_types' module
ModuleNotFoundError: No module named 'bpy_types'
ERROR (bpy.rna): source/blender/python/intern/bpy_rna.cc:7435 pyrna_srna_ExternalType: failed to find 'bpy_types' module
ModuleNotFoundError: No module named 'bpy_types'
ERROR (bpy.rna): source/blender/python/intern/bpy_rna.cc:7435 pyrna_srna_ExternalType: failed to find 'bpy_types' module
ModuleNotFoundError: No module named 'bpy_types'
ERROR (bpy.rna): source/blender/python/intern/bpy_rna.cc:7435 pyrna_srna_ExternalType: failed to find 'bpy_types' module
ModuleNotFoundError: No module named 'bpy_types'
ERROR (bpy.rna): source/blender/python/intern/bpy_rna.cc:7435 pyrna_srna_ExternalType: failed to find 'bpy_types' module
ModuleNotFoundError: No module named 'bpy'
Error: dropbox with unknown operator: WM_OT_drop_blend_file
ModuleNotFoundError: No module named 'bpy'

ERROR: this script must run from inside Blender

API dump in RST files
---------------------
  Run this script from Blender's root path once you have compiled Blender

    blender --background --factory-startup --python doc/python_api/sphinx_doc_gen.py

  This will generate python files in doc/python_api/sphinx-in/
  providing ./blender is or links to the blender executable

  To choose sphinx-in directory:
    blender --background --factory-startup --python doc/python_api/sphinx_doc_gen.py -- --output=../python_api

  For quick builds:
    blender --background --factory-startup --python doc/python_api/sphinx_doc_gen.py -- --partial=bmesh.*


Sphinx: HTML generation
-----------------------
  After you have built doc/python_api/sphinx-in (see above),
  generate html docs by running:

    sphinx-build doc/python_api/sphinx-in doc/python_api/sphinx-out


Sphinx: PDF generation
----------------------
  After you have built doc/python_api/sphinx-in (see above),
  generate the pdf doc by running:

    sphinx-build -b latex doc/python_api/sphinx-in doc/python_api/sphinx-out
    cd doc/python_api/sphinx-out
    make

ModuleNotFoundError: No module named 'addon_utils'

Application error:
Не удалось найти исходный каталог (/var/tmp/portage/media-gfx/blender-4.2.1/work/blender-4.2.1/doc/python_api/sphinx-in)
 * ERROR: media-gfx/blender-4.2.1::gentoo failed (install phase):
 *   sphinx failed.
 * 
 * Call stack:
 *     ebuild.sh, line 136:  Called src_install
 *   environment, line 3850:  Called die
 * The specific snippet of code:
 *           sphinx-build sphinx-in BPY_API || die "sphinx failed.";
 * 
 * If you need support, post the output of `emerge --info '=media-gfx/blender-4.2.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-gfx/blender-4.2.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/media-gfx/blender-4.2.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-gfx/blender-4.2.1/temp/environment'.
 * Working directory: '/var/tmp/portage/media-gfx/blender-4.2.1/work/blender-4.2.1/doc/python_api'
 * S: '/var/tmp/portage/media-gfx/blender-4.2.1/work/blender-4.2.1'

>>> Failed to emerge media-gfx/blender-4.2.1,