[openstack-dev] [Python-novaclient] Python-novaclient tests fail

Murugan, Visnusaran visnusaran.murugan at hp.com
Mon Oct 13 11:19:11 UTC 2014


Just a permission issue. Use a “sudo”. You could alternatively install novaclient under a virtualenv and run the same “python setup.py test” without sudo.

-Vishnu

From: Daniele Casini [mailto:daniele.casini at dektech.com.au]
Sent: Monday, October 13, 2014 3:50 PM
To: openstack-dev at lists.openstack.org
Subject: [openstack-dev] [Python-novaclient] Python-novaclient tests fail

Hi All,

I am trying to test python-novaclient using python setup.py test as reported in http://docs.openstack.org/developer/python-novaclient/<cid:part1.07080205.06020204@dektech.com.au>.
In order to figure out the test logic I ran tests but an error is occurred:

Exception:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/local/lib/python2.7/dist-packages/pip/commands/install.py", line 283, in run
    requirement_set.install(install_options, global_options, root=options.root_path)
  File "/usr/local/lib/python2.7/dist-packages/pip/req.py", line 1431, in install
    requirement.uninstall(auto_confirm=True)
  File "/usr/local/lib/python2.7/dist-packages/pip/req.py", line 598, in uninstall
    paths_to_remove.remove(auto_confirm)
  File "/usr/local/lib/python2.7/dist-packages/pip/req.py", line 1836, in remove
    renames(path, new_path)
  File "/usr/local/lib/python2.7/dist-packages/pip/util.py", line 295, in renames
    shutil.move(old, new)
  File "/usr/lib/python2.7/shutil.py", line 300, in move
    rmtree(src)
  File "/usr/lib/python2.7/shutil.py", line 247, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "/usr/lib/python2.7/shutil.py", line 252, in rmtree
    onerror(os.remove, fullname, sys.exc_info())
  File "/usr/lib/python2.7/shutil.py", line 250, in rmtree
    os.remove(fullname)
OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/hacking/tests/test_doctest.pyc'

Storing debug log for failure in /home/devstack/.pip/pip.log

I am working on master branch and no source code modification are performed.

Do you know how to fix it?

Thanks,

Daniele.




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20141013/35c03a60/attachment.html>


More information about the OpenStack-dev mailing list