<div dir="ltr"><div>> the novaclient docs should really be updated.<br><br>simple fix: <a href="https://review.openstack.org/#/c/127971/">https://review.openstack.org/#/c/127971/</a><br></div>but, imo, docs should contains more information(I will fix it a little bit later<span id="result_box" class="" lang="en"><span class=""></span></span>, <span id="result_box" class="" lang="en"><span class="">if no one</span> <span class="">takes this</span><span class=""></span></span>)<br><div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 13, 2014 at 7:49 PM, Ben Nemec <span dir="ltr"><<a href="mailto:openstack@nemebean.com" target="_blank">openstack@nemebean.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">On 10/13/2014 08:08 AM, Daniele Casini wrote:<br>
> I have already used "sudo" but it still fails:<br>
><br>
> ImportError: cannot import name exceptions<br>
> Ran 63 tests in 0.146s (+0.014s)<br>
> FAILED (id=3, failures=63)<br>
> error: testr failed (1)<br>
><br>
> So, it is quite strange because I do not modify the source code.<br>
> Let me know if you have some suggestions.<br>
<br>
</span>This is probably because of missing dependencies. tox takes care of<br>
that by building a virtual environment with all of the dependencies<br>
installed, but if you're running setup.py directly you'd have to take<br>
care of that.<br>
<br>
As Andrey noted, tox is used in the gate so the novaclient docs should<br>
really be updated.<br>
<span class=""><br>
><br>
> Thanks,<br>
><br>
> Daniele.<br>
><br>
> On 10/13/2014 01:19 PM, Murugan, Visnusaran wrote:<br>
>><br>
>> Just a permission issue. Use a “sudo”. You could alternatively install<br>
>> novaclient under a virtualenv and run the same “python setup.py test”<br>
>> without sudo.<br>
>><br>
>> -Vishnu<br>
>><br>
</span>>> *From:*Daniele Casini [mailto:<a href="mailto:daniele.casini@dektech.com.au">daniele.casini@dektech.com.au</a>]<br>
>> *Sent:* Monday, October 13, 2014 3:50 PM<br>
>> *To:* <a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a><br>
>> *Subject:* [openstack-dev] [Python-novaclient] Python-novaclient tests<br>
>> fail<br>
>><br>
>> Hi All,<br>
>><br>
>> I am trying to test *python-novaclient* using<br>
>> */python/**//**/<a href="http://setup.py/**//**/test/*asreported" target="_blank">setup.py/**//**/test/*asreported</a> in<br>
<span class="">>> <a href="http://docs.openstack.org/developer/python-novaclient/" target="_blank">http://docs.openstack.org/developer/python-novaclient/</a><br>
>> <<a href="mailto:cid%3Apart1.07080205.06020204@dektech.com.au">cid:part1.07080205.06020204@dektech.com.au</a>>.<br>
</span><div><div class="h5">>> In order to figure out the test logic I ran tests but an error is<br>
>> occurred:<br>
>><br>
>> Exception:<br>
>> Traceback (most recent call last):<br>
>> File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py",<br>
>> line 122, in main<br>
>> status = self.run(options, args)<br>
>> File<br>
>> "/usr/local/lib/python2.7/dist-packages/pip/commands/install.py", line<br>
>> 283, in run<br>
>> requirement_set.install(install_options, global_options,<br>
>> root=options.root_path)<br>
>> File "/usr/local/lib/python2.7/dist-packages/pip/req.py", line 1431,<br>
>> in install<br>
>> requirement.uninstall(auto_confirm=True)<br>
>> File "/usr/local/lib/python2.7/dist-packages/pip/req.py", line 598,<br>
>> in uninstall<br>
>> paths_to_remove.remove(auto_confirm)<br>
>> File "/usr/local/lib/python2.7/dist-packages/pip/req.py", line 1836,<br>
>> in remove<br>
>> renames(path, new_path)<br>
>> File "/usr/local/lib/python2.7/dist-packages/pip/util.py", line 295,<br>
>> in renames<br>
>> shutil.move(old, new)<br>
>> File "/usr/lib/python2.7/shutil.py", line 300, in move<br>
>> rmtree(src)<br>
>> File "/usr/lib/python2.7/shutil.py", line 247, in rmtree<br>
>> rmtree(fullname, ignore_errors, onerror)<br>
>> File "/usr/lib/python2.7/shutil.py", line 252, in rmtree<br>
>> onerror(os.remove, fullname, sys.exc_info())<br>
>> File "/usr/lib/python2.7/shutil.py", line 250, in rmtree<br>
>> os.remove(fullname)<br>
>> OSError: [Errno 13] Permission denied:<br>
>> '/usr/local/lib/python2.7/dist-packages/hacking/tests/test_doctest.pyc'<br>
>><br>
>> Storing debug log for failure in /home/devstack/.pip/pip.log<br>
>><br>
</div></div>>> I am working on *master branch* and *no source code modification* are<br>
<div class=""><div class="h5">>> performed.<br>
>><br>
>> Do you know how to fix it?<br>
>><br>
>> Thanks,<br>
>><br>
>> Daniele.<br>
>><br>
>><br>
>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> OpenStack-dev mailing list<br>
>> <a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
>> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
> OpenStack-dev mailing list<br>
> <a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
><br>
<br>
<br>
_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Best regards,<br>Andrey Kurilin.<br></div>
</div></div></div>