health-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Health-dev] [bug #64761] Locale [zh_cn] does not exist.


From: Feng Shu
Subject: [Health-dev] [bug #64761] Locale [zh_cn] does not exist.
Date: Sat, 7 Oct 2023 20:38:53 -0400 (EDT)

URL:
  <https://savannah.gnu.org/bugs/?64761>

                 Summary: Locale [zh_cn] does not exist.
                   Group: GNU Health
               Submitter: tumashu
               Submitted: Sun 08 Oct 2023 12:38:51 AM UTC
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
                 Release: None
         Discussion Lock: Any
                  Module: health_orthanc
               Component: Hospital Management


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Sun 08 Oct 2023 12:38:51 AM UTC By: Feng Shu <tumashu>
  File
"/home/feng/gnuhealth/tryton/server/trytond-6.0.34/trytond/protocols/dispatcher.py",
line 180, in _dispatch
    result = rpc.result(meth(*c_args, **c_kwargs))
                        ^^^^^^^^^^^^^^^^^^^^^^^^^
  File
"/home/feng/gnuhealth/tryton/server/trytond-6.0.34/trytond/model/modelsql.py",
line 870, in read
    getter_results = field.get(
                     ^^^^^^^^^^
  File
"/home/feng/gnuhealth/tryton/server/trytond-6.0.34/trytond/model/fields/function.py",
line 105, in get
    return dict((name, call(name)) for name in names)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File
"/home/feng/gnuhealth/tryton/server/trytond-6.0.34/trytond/model/fields/function.py",
line 105, in <genexpr>
    return dict((name, call(name)) for name in names)
                       ^^^^^^^^^^
  File
"/home/feng/gnuhealth/tryton/server/trytond-6.0.34/trytond/model/fields/function.py",
line 100, in call
    return dict((r.id, method(r, name)) for r in records)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File
"/home/feng/gnuhealth/tryton/server/trytond-6.0.34/trytond/model/fields/function.py",
line 100, in <genexpr>
    return dict((r.id, method(r, name)) for r in records)
                       ^^^^^^^^^^^^^^^
  File
"/home/feng/gnuhealth/tryton/server/trytond-6.0.34/trytond/modules/health_orthanc/health_orthanc.py",
line 521, in get_since_sync_readable
    return d.in_words(Transaction().language)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/feng/.local/lib/python3.11/site-packages/pendulum/period.py",
line 262, in in_words
    locale = pendulum.locale(locale)
             ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/feng/.local/lib/python3.11/site-packages/pendulum/helpers.py",
line 200, in locale
    return Locale.load(name)
           ^^^^^^^^^^^^^^^^^
  File
"/home/feng/.local/lib/python3.11/site-packages/pendulum/locales/locale.py",
line 42, in load
    raise ValueError("Locale [{}] does not exist.".format(locale))
ValueError: Locale [zh_cn] does not exist.
2704 140002948265664 [2023-10-08 00:35:58,699] INFO werkzeug 127.0.0.1 - -
[08/Oct/2023 00:35:58] "POST /gnuhealth/ HTTP/1.1" 200 -
2704 140002948265664 [2023-10-08 00:35:58,723] ERROR
trytond.protocols.dispatcher <class
'trytond.pool.gnuhealth.orthanc.config'>.read(*([1, 8], ['domain', 'label',
'link', 'since_sync_readable', 'validated', 'rec_name', '_timestamp',
'_write', '_delete'], {'client': '91c4e4f6-fecc-490f-805b-c1f06562df6a',
'company_filter': 'one', 'company': 1, 'company.rec_name':
'灌云县卫生健康委员会', 'language': 'zh_CN', 'language_direction':
'ltr', 'groups': [7, 8, 1, 3, 5, 2, 6, 10, 19, 35, 20, 22, 27, 23, 25, 30, 26,
28, 29, 4, 9, 32, 33, 34, 15, 16, 17], 'locale': {'date': '%Y-%m-%d',
'grouping': [3, 0], 'decimal_point': '.', 'thousands_sep': ','}}), **{}) from
admin@127.0.0.1/gnuhealth/
Traceback (most recent call last):
  File
"/home/feng/gnuhealth/tryton/server/trytond-6.0.34/trytond/protocols/dispatcher.py",
line 180, in _dispatch
    result = rpc.result(meth(*c_args, **c_kwargs))
                        ^^^^^^^^^^^^^^^^^^^^^^^^^
  File
"/home/feng/gnuhealth/tryton/server/trytond-6.0.34/trytond/model/modelsql.py",
line 870, in read
    getter_results = field.get(
                     ^^^^^^^^^^
  File
"/home/feng/gnuhealth/tryton/server/trytond-6.0.34/trytond/model/fields/function.py",
line 105, in get
    return dict((name, call(name)) for name in names)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File
"/home/feng/gnuhealth/tryton/server/trytond-6.0.34/trytond/model/fields/function.py",
line 105, in <genexpr>
    return dict((name, call(name)) for name in names)
                       ^^^^^^^^^^
  File
"/home/feng/gnuhealth/tryton/server/trytond-6.0.34/trytond/model/fields/function.py",
line 100, in call
    return dict((r.id, method(r, name)) for r in records)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File
"/home/feng/gnuhealth/tryton/server/trytond-6.0.34/trytond/model/fields/function.py",
line 100, in <genexpr>
    return dict((r.id, method(r, name)) for r in records)
                       ^^^^^^^^^^^^^^^
  File
"/home/feng/gnuhealth/tryton/server/trytond-6.0.34/trytond/modules/health_orthanc/health_orthanc.py",
line 521, in get_since_sync_readable
    return d.in_words(Transaction().language)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/feng/.local/lib/python3.11/site-packages/pendulum/period.py",
line 262, in in_words
    locale = pendulum.locale(locale)
             ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/feng/.local/lib/python3.11/site-packages/pendulum/helpers.py",
line 200, in locale
    return Locale.load(name)
           ^^^^^^^^^^^^^^^^^
  File
"/home/feng/.local/lib/python3.11/site-packages/pendulum/locales/locale.py",
line 42, in load
    raise ValueError("Locale [{}] does not exist.".format(locale))
ValueError: Locale [zh_cn] does not exist.








    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?64761>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]