Ironwood2 installation failure

Hi,

I am trying to install ironwood2 using the instruction published here:
https://openedx.atlassian.net/wiki/spaces/OpenOPS/pages/146440579/Native+Open+edX+Ubuntu+16.04+64+bit+Installation

Unfortunately the following error keeps occurring during step 5 - are there any suggestions to how to solve this?

TASK [edxapp : code sandbox | Install base sandbox requirements and create sandbox virtualenv] ***
fatal: [localhost]: FAILED! => {"changed": false, "cmd": "/edx/app/edxapp/venvs/edxapp-sandbox/bin/pip2 install -i https://pypi.python.org/simple --exists-action w -r /edx/app/edxapp/edx-platform/requirements/edx-sandbox/base.txt", "failed": true, "msg": "stdout: Looking in indexes: https://pypi.python.org/simple\nProcessing ./common/lib/calc\nProcessing ./common/lib/chem\nProcessing ./common/lib/sandbox-packages\nProcessing ./common/lib/symmath\nCollecting asn1crypto==0.24.0 (from -r /edx/app/edxapp/edx-platform/requirements/edx-sandbox/base.txt (line 11))\n  Using cached https://files.pythonhosted.org/packages/ea/cd/35485615f45f30a510576f1a56d1e0a7ad7bd8ab5ed7cdc600ef7cd06222/asn1crypto-0.24.0-py2.py3-none-any.whl\nCollecting backports-abc==0.5 (from -r /edx/app/edxapp/edx-platform/requirements/edx-sandbox/base.txt (line 12))\n  Using cached https://files.pythonhosted.org/packages/7d/56/6f3ac1b816d0cd8994e83d0c4e55bc64567532f7dc543378bd87f81cebc7/backports_abc-0.5-py2.py3-none-any.whl\nCollecting cffi==1.11.5 (from -r /edx/app/edxapp/edx-platform/requirements/edx-sandbox/base.txt (line 13))\n  Using cached https://files.pythonhosted.org/packages/14/dd/3e7a1e1280e7d767bd3fa15791759c91ec19058ebe31217fe66f3e9a8c49/cffi-1.11.5-cp27-cp27mu-manylinux1_x86_64.whl\nCollecting cryptography==2.4.2 (from -r /edx/app/edxapp/edx-platform/requirements/edx-sandbox/base.txt (line 14))\n  Using cached https://files.pythonhosted.org/packages/7f/ba/383b51cc26e3141c689ce988814385c7659f5ba01c4b5f2de38233010b5f/cryptography-2.4.2-cp27-cp27mu-manylinux1_x86_64.whl\nCollecting enum34==1.1.6 (from -r /edx/app/edxapp/edx-platform/requirements/edx-sandbox/base.txt (line 15))\n  Using cached https://files.pythonhosted.org/packages/c5/db/e56e6b4bbac7c4a06de1c50de6fe1ef3810018ae11732a50f15f62c7d050/enum34-1.1.6-py2-none-any.whl\nCollecting futures==3.2.0 (from -r /edx/app/edxapp/edx-platform/requirements/edx-sandbox/base.txt (line 16))\n  Using cached https://files.pythonhosted.org/packages/2d/99/b2c4e9d5a30f6471e410a146232b4118e697fa3ffc06d6a65efde84debd0/futures-3.2.0-py2-none-any.whl\nCollecting idna==2.8 (from -r /edx/app/edxapp/edx-platform/requirements/edx-sandbox/base.txt (line 17))\n  Using cached https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl\nCollecting ipaddress==1.0.22 (from -r /edx/app/edxapp/edx-platform/requirements/edx-sandbox/base.txt (line 18))\n  Using cached https://files.pythonhosted.org/packages/fc/d0/7fc3a811e011d4b388be48a0e381db8d990042df54aa4ef4599a31d39853/ipaddress-1.0.22-py2.py3-none-any.whl\nCollecting lxml==3.8.0 (from -r /edx/app/edxapp/edx-platform/requirements/edx-sandbox/base.txt (line 19))\n  Using cached https://files.pythonhosted.org/packages/1b/e8/ce25c547daf9b84cafea605eb8a5709524fb53e1b3bb5ef6884e561b9d34/lxml-3.8.0-cp27-cp27mu-manylinux1_x86_64.whl\nCollecting markupsafe==1.1.0 (from -r /edx/app/edxapp/edx-platform/requirements/edx-sandbox/base.txt (line 20))\n  Using cached https://files.pythonhosted.org/packages/bc/3a/6bfd7b4b202fa33bdda8e4e3d3acc719f381fd730f9a0e7c5f34e845bd4d/MarkupSafe-1.1.0-cp27-cp27mu-manylinux1_x86_64.whl\nCollecting matplotlib==1.3.1 (from -r /edx/app/edxapp/edx-platform/requirements/edx-sandbox/base.txt (line 21))\n  Using cached https://files.pythonhosted.org/packages/d4/d0/17f17792a4d50994397052220dbe3ac9850ecbde0297b7572933fa4a5c98/matplotlib-1.3.1.tar.gz\n\n:stderr: DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support\n    ERROR: Command errored out with exit status 1:\n     command: /edx/app/edxapp/venvs/edxapp-sandbox/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '\"'\"'/tmp/pip-install-xZfV9O/matplotlib/setup.py'\"'\"'; __file__='\"'\"'/tmp/pip-install-xZfV9O/matplotlib/setup.py'\"'\"';f=getattr(tokenize, '\"'\"'open'\"'\"', open)(__file__);code=f.read().replace('\"'\"'\\r\\n'\"'\"', '\"'\"'\\n'\"'\"');f.close();exec(compile(code, __file__, '\"'\"'exec'\"'\"'))' egg_info --egg-base pip-egg-info\n         cwd: /tmp/pip-install-xZfV9O/matplotlib/\n    Complete output (102 lines):\n    ============================================================================\n    Edit setup.cfg to change the build options\n    \n    BUILDING MATPLOTLIB\n                matplotlib: yes [1.3.1]\n                    python: yes [2.7.12 (default, Nov 12 2018, 14:36:49)  [GCC\n                            5.4.0 20160609]]\n                  platform: yes [linux2]\n    \n    REQUIRED DEPENDENCIES AND EXTENSIONS\n                     numpy: yes [not found. pip may install it below.]\n                  dateutil: yes [dateutil was not found. It is required for date\n                            axis support. pip/easy_install may attempt to\n                            install it after matplotlib.]\n                   tornado: yes [tornado was not found. It is required for the\n                            WebAgg backend. pip/easy_install may attempt to\n                            install it after matplotlib.]\n                 pyparsing: yes [pyparsing was not found. It is required for\n                            mathtext support. pip/easy_install may attempt to\n                            install it after matplotlib.]\n                     pycxx: yes [Couldn't import.  Using local copy.]\n                    libagg: yes [pkg-config information for 'libagg' could not\n                            be found. Using local copy.]\n                  freetype: yes [version 18.1.12]\n                       png: yes [version 1.2.54]\n    \n    OPTIONAL SUBPACKAGES\n               sample_data: yes [installing]\n                  toolkits: yes [installing]\n                     tests: yes [nose 0.11.1 or later is required to run the\n                            matplotlib test suite]\n    \n    OPTIONAL BACKEND EXTENSIONS\n                    macosx: no  [Mac OS-X only]\n                    qt4agg: no  [PyQt4 not found]\n                   gtk3agg: no  [Requires pygobject to be installed.]\n                 gtk3cairo: no  [Requires cairo to be installed.]\n                    gtkagg: no  [Requires pygtk]\n                     tkagg: no  [TKAgg requires Tkinter.]\n                     wxagg: no  [requires wxPython]\n                       gtk: no  [Requires pygtk]\n                       agg: yes [installing]\n                     cairo: no  [cairo not found]\n                 windowing: no  [Microsoft Windows only]\n    \n    OPTIONAL LATEX DEPENDENCIES\n                    dvipng: no\n               ghostscript: no\n                     latex: no\n                   pdftops: no\n    \n    Traceback (most recent call last):\n      File \"<string>\", line 1, in <module>\n      File \"/tmp/pip-install-xZfV9O/matplotlib/setup.py\", line 268, in <module>\n        **extra_args\n      File \"/edx/app/edxapp/venvs/edxapp-sandbox/local/lib/python2.7/site-packages/setuptools/__init__.py\", line 144, in setup\n        _install_setup_requires(attrs)\n      File \"/edx/app/edxapp/venvs/edxapp-sandbox/local/lib/python2.7/site-packages/setuptools/__init__.py\", line 139, in _install_setup_requires\n        dist.fetch_build_eggs(dist.setup_requires)\n      File \"/edx/app/edxapp/venvs/edxapp-sandbox/local/lib/python2.7/site-packages/setuptools/dist.py\", line 719, in fetch_build_eggs\n        replace_conflicting=True,\n      File \"/edx/app/edxapp/venvs/edxapp-sandbox/local/lib/python2.7/site-packages/pkg_resources/__init__.py\", line 782, in resolve\n        replace_conflicting=replace_conflicting\n      File \"/edx/app/edxapp/venvs/edxapp-sandbox/local/lib/python2.7/site-packages/pkg_resources/__init__.py\", line 1065, in best_match\n        return self.obtain(req, installer)\n      File \"/edx/app/edxapp/venvs/edxapp-sandbox/local/lib/python2.7/site-packages/pkg_resources/__init__.py\", line 1077, in obtain\n        return installer(requirement)\n      File \"/edx/app/edxapp/venvs/edxapp-sandbox/local/lib/python2.7/site-packages/setuptools/dist.py\", line 786, in fetch_build_egg\n        return cmd.easy_install(req)\n      File \"/edx/app/edxapp/venvs/edxapp-sandbox/local/lib/python2.7/site-packages/setuptools/command/easy_install.py\", line 679, in easy_install\n        return self.install_item(spec, dist.location, tmpdir, deps)\n      File \"/edx/app/edxapp/venvs/edxapp-sandbox/local/lib/python2.7/site-packages/setuptools/command/easy_install.py\", line 705, in install_item\n        dists = self.install_eggs(spec, download, tmpdir)\n      File \"/edx/app/edxapp/venvs/edxapp-sandbox/local/lib/python2.7/site-packages/setuptools/command/easy_install.py\", line 890, in install_eggs\n        return self.build_and_install(setup_script, setup_base)\n      File \"/edx/app/edxapp/venvs/edxapp-sandbox/local/lib/python2.7/site-packages/setuptools/command/easy_install.py\", line 1158, in build_and_install\n        self.run_setup(setup_script, setup_base, args)\n      File \"/edx/app/edxapp/venvs/edxapp-sandbox/local/lib/python2.7/site-packages/setuptools/command/easy_install.py\", line 1144, in run_setup\n        run_setup(setup_script, args)\n      File \"/edx/app/edxapp/venvs/edxapp-sandbox/local/lib/python2.7/site-packages/setuptools/sandbox.py\", line 253, in run_setup\n        raise\n      File \"/usr/lib/python2.7/contextlib.py\", line 35, in __exit__\n        self.gen.throw(type, value, traceback)\n      File \"/edx/app/edxapp/venvs/edxapp-sandbox/local/lib/python2.7/site-packages/setuptools/sandbox.py\", line 195, in setup_context\n        yield\n      File \"/usr/lib/python2.7/contextlib.py\", line 35, in __exit__\n        self.gen.throw(type, value, traceback)\n      File \"/edx/app/edxapp/venvs/edxapp-sandbox/local/lib/python2.7/site-packages/setuptools/sandbox.py\", line 166, in save_modules\n        saved_exc.resume()\n      File \"/edx/app/edxapp/venvs/edxapp-sandbox/local/lib/python2.7/site-packages/setuptools/sandbox.py\", line 141, in resume\n        six.reraise(type, exc, self._tb)\n      File \"/edx/app/edxapp/venvs/edxapp-sandbox/local/lib/python2.7/site-packages/setuptools/sandbox.py\", line 154, in save_modules\n        yield saved\n      File \"/edx/app/edxapp/venvs/edxapp-sandbox/local/lib/python2.7/site-packages/setuptools/sandbox.py\", line 195, in setup_context\n        yield\n      File \"/edx/app/edxapp/venvs/edxapp-sandbox/local/lib/python2.7/site-packages/setuptools/sandbox.py\", line 250, in run_setup\n        _execfile(setup_script, ns)\n      File \"/edx/app/edxapp/venvs/edxapp-sandbox/local/lib/python2.7/site-packages/setuptools/sandbox.py\", line 45, in _execfile\n        exec(code, globals, locals)\n      File \"/tmp/easy_install-5CJmEZ/numpy-1.17.1/setup.py\", line 31, in <module>\n        try:\n    RuntimeError: Python version >= 3.5 required.\n    ----------------------------------------\nERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.\n"}
	to retry, use: --limit @/var/tmp/configuration/playbooks/openedx_native.retry

PLAY RECAP *********************************************************************






























The directory '/home/ubuntu/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/ubuntu/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already up-to-date: pip==9.0.3 in /usr/local/lib/python2.7/dist-packages
You are using pip version 9.0.3, however version 19.2.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
The directory '/home/ubuntu/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/ubuntu/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already up-to-date: setuptools==39.0.1 in /usr/local/lib/python2.7/dist-packages
You are using pip version 9.0.3, however version 19.2.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
1 Like

The fix for that error (“RuntimeError: Python version >= 3.5 required”) is on the open-release/ironwood.master branch. I’ve edited the releases page (https://github.com/edx/edx-developer-docs/pull/22, not yet merged) to try to clarify it. Suggestions welcome.

3 Likes