This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients amazingminecrafter2015, lys.nikolaou, terry.reedy
Date 2022-02-18.20:13:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1645215194.49.0.300569409854.issue46735@roundup.psfhosted.org>
In-reply-to
Content
As 'crash', as used here, is when python exits abnormally *without* an exception traceback.  The traceback in the linked report is:

Traceback (most recent call last):
  File "video2x.py", line 53, in <module>
    from upscaler import AVAILABLE_DRIVERS
  File "/home/meltonmb/video2x-4.6.1/src/upscaler.py", line 48, in <module>
    language = gettext.translation(DOMAIN, LOCALE_DIRECTORY, [default_locale], fallback=True)
  File "/usr/lib/python3.8/gettext.py", line 583, in translation
    mofiles = find(domain, localedir, languages, all=True)
  File "/usr/lib/python3.8/gettext.py", line 554, in find
    for nelang in _expand_lang(lang):
  File "/usr/lib/python3.8/gettext.py", line 213, in _expand_lang
    loc = locale.normalize(loc)
  File "/usr/lib/python3.8/locale.py", line 401, in normalize
    code = localename.lower()
AttributeError: 'NoneType' object has no attribute 'lower'

Whether the bug is in the 3rd party module 'upscaler' or the stdlib module gettext depends on whether the DOMAIN, LOCALE_DIRECTORY, and [default_locale] arguments in upscaler's call to gettext.translation meet the documented requirements.  What are their values?
History
Date User Action Args
2022-02-18 20:13:14terry.reedysetrecipients: + terry.reedy, lys.nikolaou, amazingminecrafter2015
2022-02-18 20:13:14terry.reedysetmessageid: <1645215194.49.0.300569409854.issue46735@roundup.psfhosted.org>
2022-02-18 20:13:14terry.reedylinkissue46735 messages
2022-02-18 20:13:14terry.reedycreate