locale.Error: unsupported locale setting WINDOWS 11

93 views Asked by At

I am receiving error since 1 week in python.

Note: Im using W11

I've tried before:

set LC_ALL="en_US.UTF-8"

set LC_ALL="C"

Traceback (most recent call last):
  File "c:\Users\user\OneDrive\Masaüstü\Desktop_brightness_app_github\main.py", line 17, in <module>
    import ttkbootstrap as tb
  File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\ttkbootstrap\__init__.py", line 3, in <module>
    from ttkbootstrap.widgets import *
  File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\ttkbootstrap\widgets.py", line 14, in <module>
    from ttkbootstrap.dialogs import Querybox
  File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\ttkbootstrap\dialogs\__init__.py", line 1, in <module>
    from ttkbootstrap.dialogs.dialogs import *
  File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\ttkbootstrap\dialogs\dialogs.py", line 536, in <module>
    class DatePickerDialog:
  File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\ttkbootstrap\dialogs\dialogs.py", line 566, in DatePickerDialog
    locale.setlocale(locale.LC_ALL, locale.setlocale(locale.LC_TIME, ""))
  File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\locale.py", line 627, in setlocale
    return _setlocale(category, locale)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
locale.Error: unsupported locale setting
0

There are 0 answers