Openstack Issues: AttributeError: ‘NoneType’ object has no attribute ‘url’

if you see below issue, its due to new pip-6.1.1  release.  In this release they have remove the attribute “url” and used “link” in that place, so, devstack guys who were using “url” in the “openstack/requirements” project also need to change the variable. And I think you don’t have the updated “openstack/requirements” project.

—————-
+ python update.py /opt/stack/keystone
Traceback (most recent call last):
File “update.py”, line 273, in <module>
main(options, args)
File “update.py”, line 258, in main
_copy_requires(options.suffix, options.softupdate, args[0])
File “update.py”, line 219, in _copy_requires
source_reqs = _parse_reqs(‘global-requirements.txt’)
File “update.py”, line 140, in _parse_reqs
reqs[_parse_pip(pip)] = pip
File “update.py”, line 101, in _parse_pip
elif install_require.url:
File “/usr/lib/python2.7/site-packages/pip/req/req_install.py”, line 128, in url
return self.link.url
AttributeError: ‘NoneType’ object has no attribute ‘url’

————

Work around:

​Following steps you can use to solve this issue:
1. Do ./unstack.sh
2. Go to /op​t/stack/ and delete the requirements folder.
3. Go to devstack folder and run stack.sh again.
Advertisements

One thought on “Openstack Issues: AttributeError: ‘NoneType’ object has no attribute ‘url’

  1. Thank you :).
    I had this error in my devstack installation, your work around, worked for me.
    Not getting stuck at the same error anymore (something else, of course, is failing 😥 )

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s