Bug 1655285

Summary: [abrt] system-config-language: setup_conditional_pkgs(): install_packages3.py:169:setup_conditional_pkgs:AttributeError: 'Metadata' object has no attribute 'comps_fn'
Product: [Fedora] Fedora Reporter: ali.sherif10
Component: system-config-languageAssignee: Parag Nemade <pnemade>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 29CC: fabiano.litrix.sj, fabiano.livre.sj, i18n-bugs, nav007, pnemade, psatpute
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/67cde36eafa307661257ed9a86070fc8a47ce453
Whiteboard: abrt_hash:c0f1858effb4792d047a056916c5d2119b918f64;
Fixed In Version: system-config-language-3.5.0-1.fc29 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-12-15 03:18:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: cgroup
none
File: cpuinfo
none
File: environ
none
File: mountinfo
none
File: namespaces
none
File: open_fds none

Description ali.sherif10 2018-12-02 12:05:28 UTC
Description of problem:
I can't use it to change language. I found the crash then reported it.
The cause might be trying to change the language.

Version-Release number of selected component:
system-config-language-3.4.2-7.fc29

Additional info:
reporter:       libreport-2.9.6
cmdline:        /usr/bin/python3 /usr/share/system-config-language/system-config-language.py
crash_function: setup_conditional_pkgs
exception_type: AttributeError
executable:     /usr/share/system-config-language/system-config-language.py
interpreter:    python3-3.7.1-4.fc29.x86_64
kernel:         4.19.4-300.fc29.x86_64
runlevel:       N 5
type:           Python3
uid:            0

Truncated backtrace:
install_packages3.py:169:setup_conditional_pkgs:AttributeError: 'Metadata' object has no attribute 'comps_fn'

Traceback (most recent call last):
  File "/usr/share/system-config-language/install_packages3.py", line 167, in setup_conditional_pkgs
    comps_fn = repo.metadata._comps_fn
AttributeError: 'Metadata' object has no attribute '_comps_fn'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/share/system-config-language/language_gui.py", line 307, in ok_btn
    installed = self.instpkg.install_packages3(dlang)
  File "/usr/share/system-config-language/install_packages3.py", line 238, in install_packages3
    self.setup_conditional_pkgs(repos)
  File "/usr/share/system-config-language/install_packages3.py", line 169, in setup_conditional_pkgs
    comps_fn = repo.metadata.comps_fn
AttributeError: 'Metadata' object has no attribute 'comps_fn'

Local variables in innermost frame:
self: <install_packages3.InstallLangpack object at 0x7fdae8950978>
repos: <generator object RepoDict.iter_enabled.<locals>.<genexpr> at 0x7fdae8928de0>
repo: <Repo fedora-modular>

Comment 1 ali.sherif10 2018-12-02 12:05:34 UTC
Created attachment 1510579 [details]
File: backtrace

Comment 2 ali.sherif10 2018-12-02 12:05:36 UTC
Created attachment 1510580 [details]
File: cgroup

Comment 3 ali.sherif10 2018-12-02 12:05:37 UTC
Created attachment 1510581 [details]
File: cpuinfo

Comment 4 ali.sherif10 2018-12-02 12:05:39 UTC
Created attachment 1510582 [details]
File: environ

Comment 5 ali.sherif10 2018-12-02 12:05:43 UTC
Created attachment 1510583 [details]
File: mountinfo

Comment 6 ali.sherif10 2018-12-02 12:05:44 UTC
Created attachment 1510584 [details]
File: namespaces

Comment 7 ali.sherif10 2018-12-02 12:05:46 UTC
Created attachment 1510585 [details]
File: open_fds

Comment 8 ali.sherif10 2018-12-02 22:05:41 UTC
Similar problem has been detected:

The GUI is frozen and I can't click on anything.
I kept clicking button x, until I have got the termination window. I found the crash, after termination.
I remember it had happened before, so it may be always reproducible.

reporter:       libreport-2.9.6
cmdline:        /usr/bin/python3 /usr/share/system-config-language/system-config-language.py
crash_function: setup_conditional_pkgs
exception_type: AttributeError
executable:     /usr/share/system-config-language/system-config-language.py
interpreter:    python3-3.7.1-4.fc29.x86_64
kernel:         4.19.5-300.fc29.x86_64
package:        system-config-language-3.4.2-7.fc29
reason:         install_packages3.py:169:setup_conditional_pkgs:AttributeError: 'Metadata' object has no attribute 'comps_fn'
runlevel:       N 5
type:           Python3
uid:            0

Comment 9 ali.sherif10 2018-12-03 13:23:42 UTC
Similar problem has been detected:

This program is completely unusable and always crashing.

reporter:       libreport-2.9.6
cmdline:        /usr/bin/python3 /usr/share/system-config-language/system-config-language.py
crash_function: setup_conditional_pkgs
exception_type: AttributeError
executable:     /usr/share/system-config-language/system-config-language.py
interpreter:    python3-3.7.1-4.fc29.x86_64
kernel:         4.19.5-300.fc29.x86_64
package:        system-config-language-3.4.2-7.fc29
reason:         install_packages3.py:169:setup_conditional_pkgs:AttributeError: 'Metadata' object has no attribute 'comps_fn'
runlevel:       N 5
type:           Python3
uid:            0

Comment 10 Parag Nemade 2018-12-03 13:38:04 UTC
Please note I am getting all the notifications and I am aware of this problem. Its just that I got some different job work which preventing me to give time for this package. 

As usual if you can fix this issue, patches are welcome. I will find time for this and fix this week.

Comment 11 Fedora Update System 2018-12-04 16:37:28 UTC
system-config-language-3.5.0-1.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2018-27e153fbd4

Comment 12 Fedora Update System 2018-12-05 03:54:18 UTC
system-config-language-3.5.0-1.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-27e153fbd4

Comment 13 Fabiano 2018-12-13 12:17:59 UTC
*** Bug 1659034 has been marked as a duplicate of this bug. ***

Comment 14 Fedora Update System 2018-12-15 03:18:43 UTC
system-config-language-3.5.0-1.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.

Comment 15 Fabiano 2019-03-23 14:26:26 UTC
*** Bug 1692034 has been marked as a duplicate of this bug. ***