Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 754006 - media-video/obs-studio-25.0.8-r1: obs-studio requires python 3.6 or 3.7
Summary: media-video/obs-studio-25.0.8-r1: obs-studio requires python 3.6 or 3.7
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Chiitoo
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-11-11 09:54 UTC by Alex Belits
Modified: 2021-05-07 21:23 UTC (History)
8 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 Alex Belits 2020-11-11 09:54:28 UTC
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.
Comment 1 Chiitoo gentoo-dev 2020-11-11 23:53:02 UTC
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
Comment 2 Dennis Schridde 2020-12-03 23:09:53 UTC
(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
Comment 3 Jonathan Callen 2020-12-16 06:00:15 UTC
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.
Comment 4 Larry the Git Cow gentoo-dev 2020-12-16 06:08:13 UTC
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(-)
Comment 5 Bill Binder 2021-04-18 22:15:06 UTC
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.
Comment 6 Chiitoo gentoo-dev 2021-04-19 06:37:02 UTC
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.
Comment 7 Larry the Git Cow gentoo-dev 2021-05-07 21:23:16 UTC
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(-)