Running ./stack.sh gives the following error:
2015-04-07 05:53:50.819 | + cd /opt/stack/requirements
2015-04-07 05:53:50.820 | + python update.py /opt/stack/keystone
2015-04-07 05:53:51.115 | Traceback (most recent call last):
2015-04-07 05:53:51.116 | File "update.py", line 274, in
2015-04-07 05:53:51.116 | main(options, args)
2015-04-07 05:53:51.116 | File "update.py", line 259, in main
2015-04-07 05:53:51.116 | _copy_requires(options.suffix, options.softupdate, args[0])
2015-04-07 05:53:51.116 | File "update.py", line 219, in _copy_requires
2015-04-07 05:53:51.116 | source_reqs = _parse_reqs('global-requirements.txt')
2015-04-07 05:53:51.116 | File "update.py", line 140, in _parse_reqs
2015-04-07 05:53:51.116 | reqs[_parse_pip(pip)] = pip
2015-04-07 05:53:51.116 | File "update.py", line 101, in _parse_pip
2015-04-07 05:53:51.116 | elif install_require.url:
2015-04-07 05:53:51.116 | AttributeError: 'InstallRequirement' object has no attribute 'url'
Solution:
Seems pip 6.1.0 has changed 'url' to 'link'.
Use below workaround:
sed -i 's/install_require.url/install_require.link/g' /opt/stack/requirements/update.py
And this change can overcome the 'AttributeError' error.
Running ./stack.sh gives the following error:
2015-04-07 05:53:50.819 | + cd /opt/stack/requirements
2015-04-07 05:53:50.820 | + python update.py /opt/stack/keystone
2015-04-07 05:53:51.115 | Traceback (most recent call last):
2015-04-07 05:53:51.116 | File "update.py", line 274, in
2015-04-07 05:53:51.116 | main(options, args)
2015-04-07 05:53:51.116 | File "update.py", line 259, in main
2015-04-07 05:53:51.116 | _copy_requires(options.suffix, options.softupdate, args[0])
2015-04-07 05:53:51.116 | File "update.py", line 219, in _copy_requires
2015-04-07 05:53:51.116 | source_reqs = _parse_reqs('global-requirements.txt')
2015-04-07 05:53:51.116 | File "update.py", line 140, in _parse_reqs
2015-04-07 05:53:51.116 | reqs[_parse_pip(pip)] = pip
2015-04-07 05:53:51.116 | File "update.py", line 101, in _parse_pip
2015-04-07 05:53:51.116 | elif install_require.url:
2015-04-07 05:53:51.116 | AttributeError: 'InstallRequirement' object has no attribute 'url'
Solution:
Seems pip 6.1.0 has changed 'url' to 'link'.
Use below workaround:
sed -i 's/install_require.url/install_require.link/g' /opt/stack/requirements/update.py
And this change can overcome the 'AttributeError' error.