I have everything running up until it attempts to install the python requirements via pip on [web], then it craps out. Any ideas on this? I tried logging into the vagrant vm and running the '/usr/bin/pip2' command, and I'm getting the same failure. Here's the output:
TASK [mezzanine : install Python requirements globally via pip] ****************
[DEPRECATION WARNING]: Invoking "pip" only once while using a loop via
squash_actions is deprecated. Instead of using a loop to supply multiple items
and specifying name: "{{ item }}"
, please use name: ['pip', 'virtualenv', 'virtualenvwrapper']
and remove the loop. This feature will be removed in
version 2.11. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
failed: [web] (item=['pip', 'virtualenv', 'virtualenvwrapper']) => {
"ansible_loop_var": "item",
"changed": false,
"cmd": [
"/usr/bin/pip2",
"install",
"-U",
"pip",
"virtualenv",
"virtualenvwrapper"
],
"item": [
"pip",
"virtualenv",
"virtualenvwrapper"
]
}
MSG:
stdout: Downloading/unpacking pip from https://files.pythonhosted.org/packages/43/84/23ed6a1796480a6f1a2d38f2802901d078266bda38388954d01d3f2e821d/pip-20.1.1-py2.py3-none-any.whl#sha256=b27c4dedae8c41aa59108f2fa38bf78e0890e590545bc8ece7cdceb4ba60f6e4
Downloading/unpacking virtualenv from https://files.pythonhosted.org/packages/45/24/27197e06ff269e54a05fcb7e270d5648fafe076eafd4ec289859a3dc4905/virtualenv-20.0.27-py2.py3-none-any.whl#sha256=c51f1ba727d1614ce8fd62457748b469fbedfdab2c7e5dd480c9ae3fbe1233f1
Downloading/unpacking virtualenvwrapper
Running setup.py (path:/tmp/pip_build_root/virtualenvwrapper/setup.py) egg_info for package virtualenvwrapper
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'long_description_content_type'
warnings.warn(msg)
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'project_urls'
warnings.warn(msg)
Installed /tmp/pip_build_root/virtualenvwrapper/pbr-5.4.5-py2.7.egg
[pbr] Processing SOURCES.txt
warning: LocalManifestMaker: standard file '-c' not found
warning: no previously-included files found matching '.gitignore'
warning: no previously-included files found matching '.gitreview'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
Downloading/unpacking appdirs>=1.4.3,<2 (from virtualenv)
Downloading appdirs-1.4.4-py2.py3-none-any.whl
Downloading/unpacking distlib>=0.3.1,<1 (from virtualenv)
Downloading/unpacking pathlib2>=2.3.3,<3 (from virtualenv)
Downloading pathlib2-2.3.5-py2.py3-none-any.whl
Downloading/unpacking filelock>=3.0.0,<4 (from virtualenv)
Downloading filelock-3.0.12.tar.gz
Running setup.py (path:/tmp/pip_build_root/filelock/setup.py) egg_info for package filelock
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'long_description_content_type'
warnings.warn(msg)
Downloading/unpacking six>=1.9.0,<2 (from virtualenv)
Downloading six-1.15.0-py2.py3-none-any.whl
Downloading/unpacking importlib-metadata>=0.12,<2 (from virtualenv)
Downloading importlib_metadata-1.7.0-py2.py3-none-any.whl
Downloading/unpacking importlib-resources>=1.0 (from virtualenv)
Downloading importlib_resources-3.0.0-py2.py3-none-any.whl
Downloading/unpacking virtualenv-clone (from virtualenvwrapper)
Downloading virtualenv_clone-0.5.4-py2.py3-none-any.whl
Downloading/unpacking stevedore (from virtualenvwrapper)
Running setup.py (path:/tmp/pip_build_root/stevedore/setup.py) egg_info for package stevedore
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'long_description_content_type'
warnings.warn(msg)
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'project_urls'
warnings.warn(msg)
Installed /tmp/pip_build_root/stevedore/pbr-5.4.5-py2.7.egg
Marker evaluation failed, see the following error. For more information see: http://docs.openstack.org/pbr/latest/user/using.html#environment-markers
ERROR:root:Error parsing
Traceback (most recent call last):
File "/tmp/pip_build_root/stevedore/pbr-5.4.5-py2.7.egg/pbr/core.py", line 96, in pbr
attrs = util.cfg_to_args(path, dist.script_args)
File "/tmp/pip_build_root/stevedore/pbr-5.4.5-py2.7.egg/pbr/util.py", line 273, in cfg_to_args
kwargs = setup_cfg_to_setup_kwargs(config, script_args)
File "/tmp/pip_build_root/stevedore/pbr-5.4.5-py2.7.egg/pbr/util.py", line 472, in setup_cfg_to_setup_kwargs
if pkg_resources.evaluate_marker('(%s)' % env_marker):
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1271, in evaluate_marker
return cls.interpret(parser.expr(text).totuple(1)[1])
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1306, in interpret
return op(nodelist)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1223, in atom
return cls.interpret(nodelist[2])
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1306, in interpret
return op(nodelist)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1241, in comparison
raise SyntaxError(repr(cop)+" operator not allowed in environment markers")
SyntaxError: '<' operator not allowed in environment markers
error in setup command: Error parsing /tmp/pip_build_root/stevedore/setup.cfg: SyntaxError: '<' operator not allowed in environment markers
Complete output from command python setup.py egg_info:
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'long_description_content_type'
warnings.warn(msg)
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'project_urls'
warnings.warn(msg)
Installed /tmp/pip_build_root/stevedore/pbr-5.4.5-py2.7.egg
Marker evaluation failed, see the following error. For more information see: http://docs.openstack.org/pbr/latest/user/using.html#environment-markers
ERROR:root:Error parsing
Traceback (most recent call last):
File "/tmp/pip_build_root/stevedore/pbr-5.4.5-py2.7.egg/pbr/core.py", line 96, in pbr
attrs = util.cfg_to_args(path, dist.script_args)
File "/tmp/pip_build_root/stevedore/pbr-5.4.5-py2.7.egg/pbr/util.py", line 273, in cfg_to_args
kwargs = setup_cfg_to_setup_kwargs(config, script_args)
File "/tmp/pip_build_root/stevedore/pbr-5.4.5-py2.7.egg/pbr/util.py", line 472, in setup_cfg_to_setup_kwargs
if pkg_resources.evaluate_marker('(%s)' % env_marker):
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1271, in evaluate_marker
return cls.interpret(parser.expr(text).totuple(1)[1])
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1306, in interpret
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1223, in atom
return cls.interpret(nodelist[2])
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1306, in interpret
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1241, in comparison
raise SyntaxError(repr(cop)+" operator not allowed in environment markers")
SyntaxError: '<' operator not allowed in environment markers
error in setup command: Error parsing /tmp/pip_build_root/stevedore/setup.cfg: SyntaxError: '<' operator not allowed in environment markers
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/stevedore
Storing debug log for failure in /root/.pip/pip.log
PLAY RECAP *********************************************************************
db : ok=7 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
web : ok=4 changed=1 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.