document language codes - error via docker

When things doesn't work as they should.
Post Reply
j1gg3
Posts: 3
Joined: Fri Sep 06, 2019 12:11 pm

document language codes - error via docker

Post by j1gg3 » Wed Sep 11, 2019 8:05 am

Hi there,

I'm not able to launch my mayan-edms docker container with the parameter

-e MAYAN_DOCUMENTS_LANGUAGE_CODES=[deu,eng]

I have tried several options, also the one which has been described in this area (https://docs.mayan-edms.com/chapters/languages.html).

Here is the error output:

Code: Select all

raceback (most recent call last):
  File "/opt/mayan-edms/bin/mayan-edms.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/opt/mayan-edms/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
    utility.execute()
  File "/opt/mayan-edms/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 338, in execute
    django.setup()
  File "/opt/mayan-edms/local/lib/python2.7/site-packages/django/__init__.py", line 27, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/opt/mayan-edms/local/lib/python2.7/site-packages/django/apps/registry.py", line 108, in populate
    app_config.import_models()
  File "/opt/mayan-edms/local/lib/python2.7/site-packages/django/apps/config.py", line 202, in import_models
    self.models_module = import_module(models_module_name)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/opt/mayan-edms/local/lib/python2.7/site-packages/mayan/apps/sources/models/__init__.py", line 1, in <module>
    from .base import *  # NOQA
  File "/opt/mayan-edms/local/lib/python2.7/site-packages/mayan/apps/sources/models/base.py", line 22, in <module>
    from ..wizards import WizardStep
  File "/opt/mayan-edms/local/lib/python2.7/site-packages/mayan/apps/sources/wizards.py", line 14, in <module>
    from mayan.apps.documents.forms import DocumentTypeFilteredSelectForm
  File "/opt/mayan-edms/local/lib/python2.7/site-packages/mayan/apps/documents/forms/__init__.py", line 3, in <module>
    from .document_forms import *  # NOQA
  File "/opt/mayan-edms/local/lib/python2.7/site-packages/mayan/apps/documents/forms/document_forms.py", line 51, in <module>
    class DocumentForm(forms.ModelForm):
  File "/opt/mayan-edms/local/lib/python2.7/site-packages/mayan/apps/documents/forms/document_forms.py", line 55, in DocumentForm
    class Meta:
  File "/opt/mayan-edms/local/lib/python2.7/site-packages/mayan/apps/documents/forms/document_forms.py", line 60, in Meta
    choices=get_language_choices(), attrs={
  File "/opt/mayan-edms/local/lib/python2.7/site-packages/mayan/apps/documents/utils.py", line 26, in get_language_choices
    ) for iso639_3 in setting_language_codes.value

User avatar
rosarior
Posts: 345
Joined: Tue Aug 21, 2018 3:28 am

Re: document language codes - error via docker

Post by rosarior » Thu Sep 12, 2019 4:37 am

Thanks for the report and debug output. We'll take a look and replicate the issue. In the meantime try the same variable as follows:

Code: Select all

-e MAYAN_DOCUMENTS_LANGUAGE_CODES="[deu,eng]"
and

Code: Select all

-e MAYAN_DOCUMENTS_LANGUAGE_CODES="deu,eng"
to see if it is an issue with the YAML format recognition.

j1gg3
Posts: 3
Joined: Fri Sep 06, 2019 12:11 pm

Re: document language codes - error via docker

Post by j1gg3 » Fri Sep 13, 2019 6:38 am

Hi,

still the same issue. Meanwhile I found a solution with:

-e MAYAN_DOCUMENTS_LANGUAGE=deu \
-e MAYAN_DOCUMENT_LANGUAGE_CHOICES='["deu", "Deutsch"]' \

Post Reply