Bug 1732633 - system-config-keyboard uses /usr/bin/python
Summary: system-config-keyboard uses /usr/bin/python
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: system-config-keyboard
Version: 30
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lubomir Rintel
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1585626 PYTHONIS3
TreeView+ depends on / blocked
 
Reported: 2019-07-23 22:41 UTC by Miro Hrončok
Modified: 2019-07-23 22:44 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description Miro Hrončok 2019-07-23 22:41:44 UTC
system-config-keyboard-1.4.0-17.fc30.noarch

$ system-config-keyboard 
/usr/sbin/system-config-keyboard: line 4: /usr/bin/python: No such file or directory

This makes the package potentially broken on Fedora 29 and 30:

https://fedoraproject.org/wiki/Changes/Move_usr_bin_python_into_separate_package

And totally broken on Fedora 31:

https://fedoraproject.org/wiki/Changes/Python_means_Python3

Comment 1 Miro Hrončok 2019-07-23 22:43:34 UTC
This is from rawhide:

$ system-config-keyboard 
Traceback (most recent call last):
  File "/usr/share/system-config-keyboard/system-config-keyboard.py", line 75, in <module>
    useGuiMode()
  File "/usr/share/system-config-keyboard/system-config-keyboard.py", line 44, in useGuiMode
    import keyboard_gui
  File "/usr/share/system-config-keyboard/keyboard_gui.py", line 69
    def scrollToIdleHandler((view, store, iddict)):
                            ^
SyntaxError: invalid syntax

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/share/system-config-keyboard/system-config-keyboard.py", line 79, in <module>
    useTextMode()
  File "/usr/share/system-config-keyboard/system-config-keyboard.py", line 35, in useTextMode
    import keyboard_tui
  File "/usr/share/system-config-keyboard/keyboard_tui.py", line 32, in <module>
    import system_config_keyboard.keyboard as keyboard
ModuleNotFoundError: No module named 'system_config_keyboard'


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