Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 889986 - x11-misc/arandr-0.1.10-r3 does not support python3_11 (AttributeError: module 'inspect' has no attribute 'getargspec'. Did you mean: 'getargs'?)
Summary: x11-misc/arandr-0.1.10-r3 does not support python3_11 (AttributeError: module...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Conrad Kostecki
URL:
Whiteboard:
Keywords: PATCH
Depends on: 891227
Blocks:
  Show dependency tree
 
Reported: 2023-01-06 20:01 UTC by marius.spix
Modified: 2023-01-18 00:47 UTC (History)
0 users

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 marius.spix 2023-01-06 20:01:37 UTC
x11-misc/arandr-0.1.10-r3 does not support python3_11. The useflag PYTHON_TARGETS="python3_11" makes no sense for that package. ARandR works fine with Python 3.10.

Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.11/arandr", line 41, in <module>
    from screenlayout.gui import main
  File "/usr/lib/python3.11/site-packages/screenlayout/gui.py", line 76, in <module>
    class Application:
  File "/usr/lib/python3.11/site-packages/screenlayout/gui.py", line 185, in Application
    @actioncallback
     ^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/screenlayout/gui.py", line 48, in actioncallback
    argnames = inspect.getargspec(function)[0]
               ^^^^^^^^^^^^^^^^^^
AttributeError: module 'inspect' has no attribute 'getargspec'. Did you mean: 'getargs'?
Comment 1 Larry the Git Cow gentoo-dev 2023-01-18 00:21:26 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0066a0410749f668d0ec4f90b15d2491f2290dd4

commit 0066a0410749f668d0ec4f90b15d2491f2290dd4
Author:     Sebastian Pipping <sping@gentoo.org>
AuthorDate: 2023-01-17 23:33:21 +0000
Commit:     Sebastian Pipping <sping@gentoo.org>
CommitDate: 2023-01-17 23:33:21 +0000

    x11-misc/arandr: 0.1.11 with Python 3.11 fixes
    
    Closes: https://bugs.gentoo.org/889986
    Closes: https://bugs.gentoo.org/891227
    Signed-off-by: Sebastian Pipping <sping@gentoo.org>

 x11-misc/arandr/Manifest             |  1 +
 x11-misc/arandr/arandr-0.1.11.ebuild | 25 +++++++++++++++++++++++++
 2 files changed, 26 insertions(+)
Comment 2 Larry the Git Cow gentoo-dev 2023-01-18 00:47:50 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74d0e3236f73d2486d4dbe18c8c0533564ecfc97

commit 74d0e3236f73d2486d4dbe18c8c0533564ecfc97
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-01-18 00:46:43 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-01-18 00:47:22 +0000

    x11-misc/arandr: disable py3.11 for 0.1.10-r3
    
    Broken at runtime. New version has it (was bumped earlier) but let's
    drop it from the old version in case some folks are using py3.11 on stable.
    
    Bug: https://bugs.gentoo.org/889986
    Signed-off-by: Sam James <sam@gentoo.org>

 x11-misc/arandr/arandr-0.1.10-r3.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)