Bug 2141076 - arandr doesn't start
Summary: arandr doesn't start
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: arandr
Version: 37
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Frantisek Sumsal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-11-08 17:17 UTC by Stefan Kutzke
Modified: 2022-11-17 01:27 UTC (History)
5 users (show)

Fixed In Version: arandr-0.1.10-13.fc37
Clone Of:
Environment:
Last Closed: 2022-11-17 01:27:33 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.