Hello,

I hope someone could help with this, or maybe someone had the same problem.

I am trying to import some csv by using

python manage.py packages -o import_business_data -s /path/to/the/file.csv 
-c /path/to/the/file.mapping -ow 'overwrite' -bulk

After run the command in my local machine it successfully load all the 
data, but when doing the same in the instance I get this messages:

Traceback (most recent call last):
  File "manage.py", line 28, in <module>
    execute_from_command_line(sys.argv)
  File 
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
line 364, in execute_from_command_line
    utility.execute()
  File 
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
line 308, in execute
    settings.INSTALLED_APPS
  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", 
line 56, in __getattr__
    self._setup(name)
  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", 
line 41, in _setup
    self._wrapped = Settings(settings_module)
  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", 
line 110, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/opt/maindb-app/eamena-main-app/eamena/eamena/settings.py", line 
225, in <module>
    ('NAME.E41', _('Resource Names')),
  File 
"/usr/local/lib/python2.7/dist-packages/django/utils/translation/__init__.py", 
line 89, in ugettext
    return _trans.ugettext(message)
  File 
"/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
 
line 345, in ugettext
    return do_translate(message, 'ugettext')
  File 
"/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
 
line 321, in do_translate
    _default = _default or translation(settings.LANGUAGE_CODE)
  File 
"/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
 
line 228, in translation
    _translations[language] = DjangoTranslation(language)
  File 
"/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
 
line 129, in __init__
    self._add_installed_apps_translations()
  File 
"/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py",
 
line 171, in _add_installed_apps_translations
    "The translation infrastructure cannot be initialized before the "
django.core.exceptions.AppRegistryNotReady: The translation infrastructure 
cannot be initialized before the apps registry is ready. Check that you 
don't make non-lazy gettext calls at import time.

I am not sure if changing settings.py from 

from django.utils.translation import gettext as _ 

to 

from django.utils.translation import ugettext_lazy as _ 

Will resolve the issue or it going to generate otehr adittional errors. 



Regards,








-- 
-- To post, send email to [email protected]. To unsubscribe, send 
email to [email protected]. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/8d972c63-a9d6-471f-a79e-ae3ccfa87c7cn%40googlegroups.com.

Reply via email to