media-video/obs-studio build does not support python 3.8 or 3.9, so it's one of the few packages that require python 3.7. Reproducible: Always Steps to Reproduce: Attempt to upgrade all packages to use python_single_target_python3_8 or python_single_targets_python3_9, and remove python 3.6 and 3.7. Actual Results: media-video/obs-studio requires at most python 3.7. Expected Results: All packages are rebuilt to use python 3.8 or 3.9.
Unfortunately Python support in OBS Studio is broken since 3.8 [1] due to a change in Python itself. There is a way to fix it [2], but it looks like it might not be an entirely safe way to fix it. 1. https://github.com/obsproject/obs-studio/issues/3565 2. https://github.com/obsproject/obs-studio/pull/3335
(In reply to Chiitoo from comment #1) > Unfortunately Python support in OBS Studio is broken since 3.8 [1] due to a > change in Python itself. > > There is a way to fix it [2], but it looks like it might not be an entirely > safe way to fix it. > > 1. https://github.com/obsproject/obs-studio/issues/3565 > 2. https://github.com/obsproject/obs-studio/pull/3335 Upstream tracks this in: https://github.com/obsproject/obs-studio/issues/2222 It is related to this Python issue: https://bugs.python.org/issue21536
It appears that the ebuild has now added Python 3.8 support without actually fixing the underlying issue, thus making python support simply broken with PYTHON_SINGLE_TARGET=python3_8.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=510a70bb9cff7709a7faf09547a63e2b223180c3 commit 510a70bb9cff7709a7faf09547a63e2b223180c3 Author: Sam James <sam@gentoo.org> AuthorDate: 2020-12-16 06:07:05 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2020-12-16 06:08:10 +0000 Revert "media-video/obs-studio: python bump" This reverts commit cf50e95244fe18f1f3c69aa025c2addd6e2a2bdc. Unfortunately, obs-studio is genuinely not yet compatible with newer Pythons - it uses Python directly via extensions which are not yet working w/ 3.8+. Bug: https://bugs.gentoo.org/754006 Signed-off-by: Sam James <sam@gentoo.org> media-video/obs-studio/obs-studio-25.0.8-r1.ebuild | 2 +- media-video/obs-studio/obs-studio-9999.ebuild | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Given upstream seems unlikely to resolve this properly before obs-studio gets last-rited for not supporting python 3.8+, why not remove python support temporarily. Dropping python plugins is not brilliant, but its better than losing obs.
Yes, something will be done before that. Might use the "fix" mentioned here, while masking the flag, or at least adding a big warning about some scripts being broken with it. Mostly waiting to see if release 27 gets out before we do the thing.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d15e2b644efa1addd6de1e1c25452e325cbd84ea commit d15e2b644efa1addd6de1e1c25452e325cbd84ea Author: Jimi Huotari <chiitoo@gentoo.org> AuthorDate: 2021-04-28 07:06:02 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2021-05-07 20:58:08 +0000 media-video/obs-studio: raise python support to 3.8 and 3.9 With a patch. Closes: https://bugs.gentoo.org/754006 Closes: https://bugs.gentoo.org/784989 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Jimi Huotari <chiitoo@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/20574 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> .../files/obs-studio-26.1.2-python-3.8.patch | 24 +++ media-video/obs-studio/obs-studio-26.1.2-r1.ebuild | 167 +++++++++++++++++++++ media-video/obs-studio/obs-studio-9999.ebuild | 17 ++- 3 files changed, 205 insertions(+), 3 deletions(-)