Bug 2326692 - [abrt] ibus-typing-booster: endElement(): langtable.py:334:endElement:AttributeError: 'dict' object has no attribute '_names'
Summary: [abrt] ibus-typing-booster: endElement(): langtable.py:334:endElement:Attribu...
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: ibus-typing-booster
Version: 41
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Mike FABIAN
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:32b157848ec9b889f0697dbb2cb...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-11-16 17:32 UTC by computer_nerd3
Modified: 2025-11-10 14:26 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-11-10 14:26:19 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: os_info (754 bytes, text/plain)
2024-11-16 17:32 UTC, computer_nerd3
no flags Details
File: environ (1.80 KB, text/plain)
2024-11-16 17:32 UTC, computer_nerd3
no flags Details
File: mountinfo (4.83 KB, text/plain)
2024-11-16 17:32 UTC, computer_nerd3
no flags Details
File: open_fds (1.46 KB, text/plain)
2024-11-16 17:32 UTC, computer_nerd3
no flags Details
File: namespaces (171 bytes, text/plain)
2024-11-16 17:32 UTC, computer_nerd3
no flags Details
File: backtrace (1.86 KB, text/plain)
2024-11-16 17:32 UTC, computer_nerd3
no flags Details
File: cpuinfo (3.25 KB, text/plain)
2024-11-16 17:32 UTC, computer_nerd3
no flags Details

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.


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