Bug 2326692

Summary: [abrt] ibus-typing-booster: endElement(): langtable.py:334:endElement:AttributeError: 'dict' object has no attribute '_names'
Product: [Fedora] Fedora Reporter: computer_nerd3
Component: ibus-typing-boosterAssignee: Mike FABIAN <mfabian>
Status: CLOSED WORKSFORME QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 41CC: computer_nerd3, i18n-bugs, mfabian
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/a1a0be910cef4a652a96b9e2189f4a0f1e8b856
Whiteboard: abrt_hash:32b157848ec9b889f0697dbb2cbc8e8b8ed9f268;VARIANT_ID=workstation;
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-11-10 14:26:19 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: os_info
none
File: environ
none
File: mountinfo
none
File: open_fds
none
File: namespaces
none
File: backtrace
none
File: cpuinfo none

Description computer_nerd3 2024-11-16 17:32:21 UTC
Description of problem:
I was adjusting the preferences of the Terminal. Although, ibus-typing-booster seems to crash regardless of what I'm doing.

Version-Release number of selected component:
ibus-typing-booster-2.26.8-1.fc41

Additional info:
reporter:       libreport-2.17.15
kernel:         6.11.7-300.fc41.x86_64
cmdline:        /usr/bin/python3 /usr/share/ibus-typing-booster/engine/main.py --ibus
cgroup:         0::/user.slice/user-1001.slice/user/session.slice/org.freedesktop.IBus.session.GNOME.service
uid:            1001
reason:         langtable.py:334:endElement:AttributeError: 'dict' object has no attribute '_names'
executable:     /usr/share/ibus-typing-booster/engine/main.py
type:           Python3
package:        ibus-typing-booster-2.26.8-1.fc41
runlevel:       N 5
exception_type: AttributeError
crash_function: endElement
interpreter:    python3-3.13.0-1.fc41.x86_64
comment:        I was adjusting the preferences of the Terminal. Although, ibus-typing-booster seems to crash regardless of what I'm doing.

Truncated backtrace:
langtable.py:334:endElement:AttributeError: 'dict' object has no attribute '_names'

Traceback (most recent call last):
  File "/usr/share/ibus-typing-booster/engine/main.py", line 132, in <module>
    import factory
  File "/usr/share/ibus-typing-booster/engine/factory.py", line 37, in <module>
    import hunspell_table
  File "/usr/share/ibus-typing-booster/engine/hunspell_table.py", line 52, in <module>
    import itb_util
  File "/usr/share/ibus-typing-booster/engine/itb_util.py", line 97, in <module>
    import langtable # type: ignore
    ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/langtable/__init__.py", line 1, in <module>
    from .langtable import *
  File "/usr/lib/python3.13/site-packages/langtable/langtable.py", line 2719, in <module>
    __module_init = __ModuleInitializer()
  File "/usr/lib/python3.13/site-packages/langtable/langtable.py", line 2714, in __init__
    _init()
    ~~~~~^^
  File "/usr/lib/python3.13/site-packages/langtable/langtable.py", line 2704, in _init
    _read_file('territories.xml', TerritoriesContentHandler())
    ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/langtable/langtable.py", line 954, in _read_file
    _expat_parse(file, sax_handler)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/langtable/langtable.py", line 934, in _expat_parse
    parser.ParseFile(file)
    ~~~~~~~~~~~~~~~~^^^^^^
  File "/builddir/build/BUILD/python3.13-3.13.0-build/Python-3.13.0/Modules/pyexpat.c", line 473, in EndElement
  File "/usr/lib/python3.13/site-packages/langtable/langtable.py", line 334, in endElement
    self._names[str(self._item_id)] = self._item_name
    ^^^^^^^^^^^
AttributeError: 'dict' object has no attribute '_names'

Local variables in innermost frame:
self: <langtable.langtable.TerritoriesContentHandler object at 0x7f2a140f0440>
name: 'name'

Comment 1 computer_nerd3 2024-11-16 17:32:24 UTC
Created attachment 2058152 [details]
File: os_info

Comment 2 computer_nerd3 2024-11-16 17:32:25 UTC
Created attachment 2058153 [details]
File: environ

Comment 3 computer_nerd3 2024-11-16 17:32:27 UTC
Created attachment 2058154 [details]
File: mountinfo

Comment 4 computer_nerd3 2024-11-16 17:32:28 UTC
Created attachment 2058155 [details]
File: open_fds

Comment 5 computer_nerd3 2024-11-16 17:32:29 UTC
Created attachment 2058156 [details]
File: namespaces

Comment 6 computer_nerd3 2024-11-16 17:32:30 UTC
Created attachment 2058157 [details]
File: backtrace

Comment 7 computer_nerd3 2024-11-16 17:32:31 UTC
Created attachment 2058158 [details]
File: cpuinfo

Comment 8 Mike FABIAN 2025-11-10 14:26:19 UTC
I could never reproduce this unfortunately. `import langtable` works fine for me. 

I think I can close this bug.

If you can still reproduce it on Fedora 43, please reopen it with more details on how to reproduce it.