Bug 2141076

Summary: arandr doesn't start
Product: [Fedora] Fedora Reporter: Stefan Kutzke <skutzke>
Component: arandrAssignee: Frantisek Sumsal <fsumsal>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 37CC: frantisek, fsumsal, mzatko, skutzke, thrcka
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: arandr-0.1.10-13.fc37 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-17 01:27:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Stefan Kutzke 2022-11-08 17:17:58 UTC
Description of problem:

arandr doesn't start due to usage of 'inspect.getargspec' which is not available in Python 3.11 any longer.

Traceback:
Traceback (most recent call last):
  File "/usr/bin/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]
               ^^^^^^^^^^^^^^^^^^

Fix:
/usr/lib/python3.11/site-packages/screenlayout/gui.py

Line 48 needs to be changed from
argnames = inspect.getargspec(function)[0]
to
argnames = inspect.getfullargspec(function)[0]


Version-Release number of selected component (if applicable):
arandr-0.1.10-12.fc37.noarch
python3-3.11.0-1.fc37.x86_64

How reproducible:
always

Steps to Reproduce:
1. Start arandr
2. Start arandr from a terminal to the see the traceback

Actual results:
GUI doesn't start

Expected results:
GUI starts properly


Additional info:

Comment 1 Fedora Update System 2022-11-08 18:24:58 UTC
FEDORA-2022-f90e383cfd has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-f90e383cfd

Comment 2 Fedora Update System 2022-11-09 09:17:37 UTC
FEDORA-2022-f90e383cfd has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-f90e383cfd`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-f90e383cfd

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 3 Stefan Kutzke 2022-11-09 13:13:51 UTC
FEDORA-2022-f90e383cfd fixed the issue. Thank you.

Comment 4 Fedora Update System 2022-11-17 01:27:33 UTC
FEDORA-2022-f90e383cfd has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.