Installation of hawthorn.master fails with "ImportError: No module named aws"],

44 views
Skip to first unread message

Rajesh

unread,
Aug 7, 2019, 8:14:33 PM8/7/19
to Open edX operations
Hi

I have a need to install hawthorn for our development environment. Since live is this version, I need to install hawthorn itself.

I get the following error during edxapp: migrate phase. 

Please help to resolve the issue.

Thanks
Rajesh


TASK [edxapp : migrate] ********************************************************
failed: [localhost] (item=lms) => {"changed": true, "cmd": ["/edx/bin/edxapp-migrate-lms"], "delta": "0:00:00.534390", "end": "2019-08-08 05:22:09.702758", "item": "lms", "msg": "non-zero return code", "rc": 1, "start": "2019-08-08 05:22:09.168368", "stderr": "Traceback (most recent call last):\n  File \"manage.py\", line 119, in <module>\n    startup = importlib.import_module(edx_args.startup)\n  File \"/usr/lib/python2.7/importlib/__init__.py\", line 37, in import_module\n    __import__(name)\n  File \"/edx/app/edxapp/edx-platform/lms/startup.py\", line 11, in <module>\n    settings.INSTALLED_APPS  # pylint: disable=pointless-statement\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/conf/__init__.py\", line 56, in __getattr__\n    self._setup(name)\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/conf/__init__.py\", line 41, in _setup\n    self._wrapped = Settings(settings_module)\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/conf/__init__.py\", line 110, in __init__\n    mod = importlib.import_module(self.SETTINGS_MODULE)\n  File \"/usr/lib/python2.7/importlib/__init__.py\", line 37, in import_module\n    __import__(name)\nImportError: No module named aws", "stderr_lines": ["Traceback (most recent call last):", "  File \"manage.py\", line 119, in <module>", "    startup = importlib.import_module(edx_args.startup)", "  File \"/usr/lib/python2.7/importlib/__init__.py\", line 37, in import_module", "    __import__(name)", "  File \"/edx/app/edxapp/edx-platform/lms/startup.py\", line 11, in <module>", "    settings.INSTALLED_APPS  # pylint: disable=pointless-statement", "  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/conf/__init__.py\", line 56, in __getattr__", "    self._setup(name)", "  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/conf/__init__.py\", line 41, in _setup", "    self._wrapped = Settings(settings_module)", "  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-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)", "ImportError: No module named aws"], "stdout": "", "stdout_lines": []}
failed: [localhost] (item=cms) => {"changed": true, "cmd": ["/edx/bin/edxapp-migrate-cms"], "delta": "0:00:00.576245", "end": "2019-08-08 05:22:10.473984", "item": "cms", "msg": "non-zero return code", "rc": 1, "start": "2019-08-08 05:22:09.897739", "stderr": "Traceback (most recent call last):\n  File \"manage.py\", line 119, in <module>\n    startup = importlib.import_module(edx_args.startup)\n  File \"/usr/lib/python2.7/importlib/__init__.py\", line 37, in import_module\n    __import__(name)\n  File \"/edx/app/edxapp/edx-platform/cms/startup.py\", line 11, in <module>\n    settings.INSTALLED_APPS  # pylint: disable=pointless-statement\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/conf/__init__.py\", line 56, in __getattr__\n    self._setup(name)\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/conf/__init__.py\", line 41, in _setup\n    self._wrapped = Settings(settings_module)\n  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/conf/__init__.py\", line 110, in __init__\n    mod = importlib.import_module(self.SETTINGS_MODULE)\n  File \"/usr/lib/python2.7/importlib/__init__.py\", line 37, in import_module\n    __import__(name)\nImportError: No module named aws", "stderr_lines": ["Traceback (most recent call last):", "  File \"manage.py\", line 119, in <module>", "    startup = importlib.import_module(edx_args.startup)", "  File \"/usr/lib/python2.7/importlib/__init__.py\", line 37, in import_module", "    __import__(name)", "  File \"/edx/app/edxapp/edx-platform/cms/startup.py\", line 11, in <module>", "    settings.INSTALLED_APPS  # pylint: disable=pointless-statement", "  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/conf/__init__.py\", line 56, in __getattr__", "    self._setup(name)", "  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/conf/__init__.py\", line 41, in _setup", "    self._wrapped = Settings(settings_module)", "  File \"/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-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)", "ImportError: No module named aws"], "stdout": "", "stdout_lines": []}

dhruv amin

unread,
Aug 8, 2019, 12:55:16 AM8/8/19
to opene...@googlegroups.com
well it seems like requirements are not installed.
Follow below steps, It might solve the problem
1. sudo -H -u edxapp bash
2. source ~/edxapp_env
3. cd ~/edx-platform
4. paver install_prereqs
5. If you get NO_PREREQ_INSTALL is set then, nano /edx/app/edxapp/edxapp_env
NO_PREREQ_INSTALL = 0. Deactivate edxapp_env and activate it again. Go to step 4

--
***NOTE: This Google Group has been deprecated. Please visit https://discuss.openedx.org/
---
You received this message because you are subscribed to the Google Groups "Open edX operations" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openedx-ops...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openedx-ops/82ec9686-6845-43ff-9a09-857b1193df8a%40googlegroups.com.

bindu rajesh

unread,
Aug 8, 2019, 3:27:27 AM8/8/19
to opene...@googlegroups.com
Thanks for the reply.
Is it mandatory to run those steps?

Regards
Rajesh

You received this message because you are subscribed to a topic in the Google Groups "Open edX operations" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openedx-ops/dE-wbG6O0f0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openedx-ops...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openedx-ops/CAOzPiX_36MgKhhVN8fT0yPO9NHB59R25jWQuGusuOB_ZxX9mFQ%40mail.gmail.com.

dhruv amin

unread,
Aug 8, 2019, 3:38:50 AM8/8/19
to opene...@googlegroups.com
You should follow above steps only if error occurs. Moreover above steps are particularly for this error only.
Also do check the branch of edx-platform

Rajesh

unread,
Aug 14, 2019, 5:39:30 AM8/14/19
to Open edX operations
Hi

Thanks for the reply. I tried this. But still I keep getting the same error.
Any other suggestions?

Thanks
Rajesh
To unsubscribe from this group and stop receiving emails from it, send an email to opene...@googlegroups.com.

--
***NOTE: This Google Group has been deprecated. Please visit https://discuss.openedx.org/
---
You received this message because you are subscribed to a topic in the Google Groups "Open edX operations" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openedx-ops/dE-wbG6O0f0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to opene...@googlegroups.com.

--
***NOTE: This Google Group has been deprecated. Please visit https://discuss.openedx.org/
---
You received this message because you are subscribed to the Google Groups "Open edX operations" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opene...@googlegroups.com.

Mahyar Damavand

unread,
Aug 14, 2019, 11:06:16 AM8/14/19
to Open edX operations
Hello Rajesh,
Try to check which version of edx-platform you are trying to setup.
cd ~edxapp/edx-platform
git status

Post the result please.


To unsubscribe from this group and stop receiving emails from it, send an email to openedx-ops...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openedx-ops/66ef28b8-7038-4708-9608-cfe58138b4be%40googlegroups.com.


--
"""""""""""""""""""""""
مهیار دماوند
Mahyar Damavand

"""""""""""""""""""""""

bindu rajesh

unread,
Aug 15, 2019, 1:17:50 PM8/15/19
to opene...@googlegroups.com
Hi

Output as below

(edx_ansible) edxapp@openedx-newupgrade:~/edx-platform$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
(edx_ansible) edxapp@openedx-newupgrade:~/edx-platform$
 
Thanks
Rajesh

To unsubscribe from this group and all its topics, send an email to openedx-ops...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openedx-ops/CABCzmJKBO6Qpant9jbwY-6XOipZC6cDrjkSti9UeDPHiwxQRww%40mail.gmail.com.

Mahyar Damavand

unread,
Aug 15, 2019, 4:49:55 PM8/15/19
to Open edX operations
OK cleared.
The problem has came from the first step of the installation manual. the document asks to determine which version do you want to install.
to do so you have to set an environment variable like this:
export OPENEDX_RELEASE=the-tag/you-want-to-install

for example if you want to install the latest hawthorn you must run:
export OPENEDX_RELEASE=open-release/hawthorn.master

if you don't set any, it will install the master which is unstable.
The settings file is renamed from aws to production from ironwood. and I think you have done steps out if the order.
I suggest you to try to reinstall the platform on a fresh OS.

good luck




bindu rajesh

unread,
Aug 16, 2019, 6:49:24 AM8/16/19
to opene...@googlegroups.com
Thanks for the reply.

I had set this variable before the installation. Don't know why it was not taken.
I will try the installation again.

Thanks
Rajesh


bindu rajesh

unread,
Aug 17, 2019, 8:33:15 AM8/17/19
to opene...@googlegroups.com
Thank you for that useful tip.
I could figure out that while retrying the installation, it was not activating the correct variables and that is why it was pointing to master release..
I could successfully complete the installation  after correcting the problem.

Thanks
Rajesh

On Fri, 16 Aug 2019 at 02:19, Mahyar Damavand <mahyar....@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages