th3-z / kf2-magicked-admin

:spider: Mutator-free management, statistics, and in-game bot for ranked Killing Floor 2 servers
https://kf2-ma.th3-z.xyz
MIT License
32 stars 7 forks source link

[BUG] Issue with docker version (pre-release 0.1.6) #162

Closed d1ceward closed 4 years ago

d1ceward commented 4 years ago

Describe the bug Issue about locale when starting docker version (with pre-release 0.1.6)

To Reproduce

  1. Start container with the given command (on readme)
  2. Container fail with error

Desktop

Config

[magicked_admin]
language = en_GB

[server_one]
game_password = <redacted>
address = <redacted>
username = <redacted>
password = <redacted>
refresh_rate = 5

Log

               _     _         _
 _____ ___ ___|_|___| |_ ___ _| |
|     | .'| . | |  _| '_| -_| . |
|_|_|_|__,|_  |_|___|_,_|___|___|
        _ |___| _
  ___ _| |_____|_|___   <<0.1.6#DEBUG>>
 | .'| . |     | |   |  https://th3-z.xyz/kf2-ma
 |__,|___|_|_|_|_|_|_|

Traceback (most recent call last):
  File "/magicked_admin/magicked_admin.py", line 208, in <module>
    application.run()
  File "/magicked_admin/magicked_admin.py", line 140, in run
    lang = gettext.translation(
  File "/usr/local/lib/python3.8/gettext.py", line 588, in translation
    raise FileNotFoundError(ENOENT,
FileNotFoundError: [Errno 2] No translation file found for domain: 'magicked_admin'
th3-z commented 4 years ago

The issue is that its missing the locale files. They need to be compiled with pybabel compile -d locale -D "magicked_admin". I'll have a look at the docker scripts later.