https://bugzilla.redhat.com/show_bug.cgi?id=2227067
Bug ID: 2227067 Summary: [abrt] ibus-typing-booster: endElement(): langtable.py:538:endElement:TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType' Product: Fedora Version: 38 Hardware: x86_64 Status: NEW Whiteboard: abrt_hash:68b5066bc4980e6384615173bebf45adb412050c;VAR IANT_ID=workstation; Component: ibus-typing-booster Assignee: mfabian@redhat.com Reporter: hx@inbox.lv QA Contact: extras-qa@fedoraproject.org CC: anish.developer@gmail.com, i18n-bugs@lists.fedoraproject.org, mfabian@redhat.com Target Milestone: --- Classification: Fedora
Version-Release number of selected component: ibus-typing-booster-2.23.1-1.fc38
Additional info: reporter: libreport-2.17.11 kernel: 6.4.4-200.fc38.x86_64 cmdline: /usr/bin/python3 /usr/share/ibus-typing-booster/engine/main.py --ibus cgroup: 0::/user.slice/user-42.slice/session-c1.scope uid: 42 reason: langtable.py:538:endElement:TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType' executable: /usr/share/ibus-typing-booster/engine/main.py type: Python3 package: ibus-typing-booster-2.23.1-1.fc38 runlevel: N 5 exception_type: TypeError crash_function: endElement interpreter: python3-3.11.4-1.fc38.x86_64
Truncated backtrace: langtable.py:538:endElement:TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'
Traceback (most recent call last): File "/usr/share/ibus-typing-booster/engine/main.py", line 133, in <module> import factory File "/usr/share/ibus-typing-booster/engine/factory.py", line 38, in <module> import hunspell_table File "/usr/share/ibus-typing-booster/engine/hunspell_table.py", line 53, in <module> import itb_util File "/usr/share/ibus-typing-booster/engine/itb_util.py", line 94, in <module> import langtable # type: ignore ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/langtable/__init__.py", line 1, in <module> from .langtable import * File "/usr/lib/python3.11/site-packages/langtable/langtable.py", line 2633, in <module> __module_init = __ModuleInitializer() ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/langtable/langtable.py", line 2627, in __init__ _init() File "/usr/lib/python3.11/site-packages/langtable/langtable.py", line 2620, in _init _read_file('languages.xml', LanguagesContentHandler()) File "/usr/lib/python3.11/site-packages/langtable/langtable.py", line 937, in _read_file _expat_parse(file, sax_handler) File "/usr/lib/python3.11/site-packages/langtable/langtable.py", line 917, in _expat_parse parser.ParseFile(file) File "/builddir/build/BUILD/Python-3.11.4/Modules/pyexpat.c", line 468, in EndElement File "/usr/lib/python3.11/site-packages/langtable/langtable.py", line 538, in endElement self._consolefonts[str(self._item_id)] = int(self._item_rank) ^^^^^^^^^^^^^^^^^^^^ TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'
Local variables in innermost frame: self: <langtable.langtable.LanguagesContentHandler object at 0x7f830bf3bc90> name: 'languageId'
https://bugzilla.redhat.com/show_bug.cgi?id=2227067
Mike FABIAN mfabian@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Doc Type|--- |If docs needed, set a value
https://bugzilla.redhat.com/show_bug.cgi?id=2227067
Mike FABIAN mfabian@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo?(hx@inbox.lv)
--- Comment #8 from Mike FABIAN mfabian@redhat.com --- Can you reproduce a problem with langtable by just doing
$ python3 Python 3.11.4 (main, Jun 7 2023, 00:00:00) [GCC 13.1.1 20230511 (Red Hat 13.1.1-2)] on linux Type "help", "copyright", "credits" or "license" for more information.
import langtable langtable.info()
Project name: = langtable Version: = 0.0.62 Module path: = /usr/lib/python3.11/site-packages Loaded from: /usr/lib/python3.11/site-packages/langtable/langtable.py Data files read: ['/usr/lib/python3.11/site-packages/langtable/data/territories.xml.gz', '/usr/lib/python3.11/site-packages/langtable/data/languages.xml.gz', '/usr/lib/python3.11/site-packa ges/langtable/data/keyboards.xml.gz', '/usr/lib/python3.11/site-packages/langtable/data/timezones.xml.gz', '/usr/lib/python3.11/site-packages/langtable/data/timezoneidparts.xml.gz']
https://bugzilla.redhat.com/show_bug.cgi?id=2227067
Mike FABIAN mfabian@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |CLOSED Resolution|--- |WORKSFORME Last Closed| |2024-01-22 08:25:43
--- Comment #9 from Mike FABIAN mfabian@redhat.com --- No info provided and I could never reproduce this. Closing as WORKSFORME.
i18n-bugs@lists.fedoraproject.org