Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 949564 - media-gfx/blender with dev-lang/python:3.12 Fatal Python error: PyImport_AppendInittab: PyImport_AppendInittab() may not be called after Py_Initialize()
Summary: media-gfx/blender with dev-lang/python:3.12 Fatal Python error: PyImport_Appe...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Paul Zander
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2025-02-10 17:13 UTC by ingenarelitems
Modified: 2025-04-22 00:41 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ingenarelitems 2025-02-10 17:13:55 UTC
when trying to use quickeffects, or any kind of effects in blender, it crashes with this:

```
Fatal Python error: PyImport_AppendInittab: PyImport_AppendInittab() may not be called after Py_Initialize()

```

the problem is that this is not an issue with blender, but how python 3.12 works.

i just finished building blender with 3.11, and i can personally confirm that using python 3.11 fixes everything

and yes, it's a year old problem, so it's best if python 3.12 with blender got dropped.

here are some relevant links:

https://projects.blender.org/blender/blender/issues/129926

https://www.reddit.com/r/blenderhelp/comments/18zx8xp/blender_40_crashing_when_setting_an_object_to/?rdt=64527

https://forum.manjaro.org/t/in-manjaro-wynsdey-blender-4-1-1-crashes-python-error-pyimport-appendinittab/162387

https://gitlab.archlinux.org/archlinux/packaging/packages/blender/-/issues/18

https://gitlab.archlinux.org/archlinux/packaging/packages/blender/-/issues/1
Comment 2 Larry the Git Cow gentoo-dev 2025-04-22 00:41:12 UTC
The bug has been closed via the following commit(s):

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

commit 2ce89b0da18e6f88e717b2e322edc8c38f416845
Author:     Paul Zander <negril.nx+gentoo@gmail.com>
AuthorDate: 2025-04-21 18:20:48 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-04-22 00:37:51 +0000

    media-gfx/blender: drop LLVM 15 16 17 support
    
    Closes: https://bugs.gentoo.org/949564
    Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 media-gfx/blender/blender-4.2.4-r2.ebuild | 2 +-
 media-gfx/blender/blender-4.2.9.ebuild    | 2 +-
 media-gfx/blender/blender-4.3.2-r3.ebuild | 2 +-
 media-gfx/blender/blender-4.4.1.ebuild    | 2 +-
 media-gfx/blender/blender-9999.ebuild     | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

Additionally, it has been referenced in the following commit(s):

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

commit 6817ca960b45480d615a8794ab0f769ba2fcbfe3
Author:     Paul Zander <negril.nx+gentoo@gmail.com>
AuthorDate: 2025-04-21 18:20:30 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-04-22 00:37:51 +0000

    media-libs/osl: drop LLVM 15 16 17 support
    
    Bug: https://bugs.gentoo.org/949564
    Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/osl/osl-1.13.10.0-r1.ebuild | 2 +-
 media-libs/osl/osl-1.13.12.0-r1.ebuild | 2 +-
 media-libs/osl/osl-9999.ebuild         | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

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

commit 04aae426f32c1a5ac8c8ff0237a4f00d981c8eac
Author:     Paul Zander <negril.nx+gentoo@gmail.com>
AuthorDate: 2025-04-21 18:14:27 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-04-22 00:37:50 +0000

    media-gfx/blender: bump 4.3.2-r3, 4.2.9, drop 4.1.1-r5, 3.6.18-r1
    
    Bug: https://bugs.gentoo.org/949564
    Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 media-gfx/blender/Manifest                         |   3 +-
 media-gfx/blender/blender-3.6.18-r1.ebuild         | 449 ---------------
 ...lender-4.1.1-r5.ebuild => blender-4.2.9.ebuild} |  60 +-
 ...der-4.3.2-r2.ebuild => blender-4.3.2-r3.ebuild} |   3 +
 .../blender/files/blender-4.2.9-python3.12.patch   |  68 +++
 .../blender/files/blender-4.2.9-python3.12_1.patch |  39 ++
 .../blender/files/blender-4.2.9-python3.13.patch   | 626 +++++++++++++++++++++
 media-gfx/blender/metadata.xml                     |   3 -
 8 files changed, 766 insertions(+), 485 deletions(-)