Yes, you need to run all the arches commands in the env, assuming you have been following the documentation. Arches 5+ requires python 3.7+ so you need to make sure that the env was built using the python 3.x interpreter.
On Thursday, January 28, 2021 at 10:32:41 AM UTC [email protected] wrote: > > Hello, > > My mistake currently the version we are running is 5x. After run the > command > > *-->* > > * python manage.py packages -o import_business_data -s > /path/to/the/file.csv -c /path/to/the/file.mapping -ow 'overwrite' -bulk * > *<--* > > > in the same folder than manage.py file the retun is: > > *Traceback (most recent call last):* > * File "manage.py", line 28, in <module>* > * from django.core.management import execute_from_command_line* > *ImportError: No module named django.core.management* > > > I guess that the error came because it should be run in the env mode, is > that correct? or maybe with python2 or 3 instead of just python manage. > py... > > > Thanks in advance for answering me. > > On Thursday, 28 January 2021 at 09:10:09 UTC > [email protected] wrote: > >> Just an observation, are you using Arches 4.x or 5.x? I see you are using >> Python 2.7 so am assuming Arches 4.x? >> >> On Wednesday, January 27, 2021 at 11:04:05 AM UTC [email protected] >> wrote: >> >>> 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/d84006c0-8403-479d-b481-583e6951092bn%40googlegroups.com.
