Bug 2227067 - [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'
Summary: [abrt] ibus-typing-booster: endElement(): langtable.py:538:endElement:TypeErr...
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: ibus-typing-booster
Version: 38
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:68b5066bc4980e6384615173beb...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-27 17:16 UTC by hx
Modified: 2024-05-22 04:25 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-01-22 08:25:43 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: os_info (734 bytes, text/plain)
2023-07-27 17:16 UTC, hx
no flags Details
File: environ (322 bytes, text/plain)
2023-07-27 17:16 UTC, hx
no flags Details
File: mountinfo (3.52 KB, text/plain)
2023-07-27 17:16 UTC, hx
no flags Details
File: open_fds (472 bytes, text/plain)
2023-07-27 17:16 UTC, hx
no flags Details
File: namespaces (171 bytes, text/plain)
2023-07-27 17:16 UTC, hx
no flags Details
File: backtrace (1.89 KB, text/plain)
2023-07-27 17:16 UTC, hx
no flags Details
File: cpuinfo (2.80 KB, text/plain)
2023-07-27 17:17 UTC, hx
no flags Details

Description hx 2023-07-27 17:16:49 UTC
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'

Comment 1 hx 2023-07-27 17:16:52 UTC
Created attachment 1980307 [details]
File: os_info

Comment 2 hx 2023-07-27 17:16:53 UTC
Created attachment 1980308 [details]
File: environ

Comment 3 hx 2023-07-27 17:16:54 UTC
Created attachment 1980309 [details]
File: mountinfo

Comment 4 hx 2023-07-27 17:16:56 UTC
Created attachment 1980310 [details]
File: open_fds

Comment 5 hx 2023-07-27 17:16:57 UTC
Created attachment 1980311 [details]
File: namespaces

Comment 6 hx 2023-07-27 17:16:58 UTC
Created attachment 1980312 [details]
File: backtrace

Comment 7 hx 2023-07-27 17:17:00 UTC
Created attachment 1980313 [details]
File: cpuinfo

Comment 8 Mike FABIAN 2023-07-29 18:23:42 UTC
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']
>>>

Comment 9 Mike FABIAN 2024-01-22 08:25:43 UTC
No info provided and I could never reproduce this.
Closing as WORKSFORME.

Comment 10 Red Hat Bugzilla 2024-05-22 04:25:03 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days


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