<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I have already used "sudo" but it still fails:<br>
<br>
<font color="#666666">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)</font><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>
Thanks,<br>
<br>
Daniele. <br>
<br>
<div class="moz-cite-prefix">On 10/13/2014 01:19 PM, Murugan,
Visnusaran wrote:<br>
</div>
<blockquote
cite="mid:4641310AFBEE10419D0A020273367C140C9B8804@G1W3645.americas.hpqcorp.net"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";
color:black;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
tt
{mso-style-priority:99;
font-family:"Courier New";}
span.docutils
{mso-style-name:docutils;}
span.pre
{mso-style-name:pre;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Consolas","serif";
color:black;}
span.EmailStyle22
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">-Vishnu<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext">From:</span></b><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext">
Daniele Casini [<a class="moz-txt-link-freetext" href="mailto:daniele.casini@dektech.com.au">mailto:daniele.casini@dektech.com.au</a>]
<br>
<b>Sent:</b> Monday, October 13, 2014 3:50 PM<br>
<b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a><br>
<b>Subject:</b> [openstack-dev] [Python-novaclient]
Python-novaclient tests fail<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hi All,<br>
<br>
I am trying to test <b>python-novaclient</b> using <span
class="pre"><b><i>python</i></b></span><span
class="docutils"><b><i>
</i></b></span><span class="pre"><b><i>setup.py</i></b></span><span
class="docutils"><b><i>
</i></b></span><span class="pre"><b><i>test</i></b></span><span
class="pre"><span
style="font-size:10.0pt;font-family:"Courier
New"">
</span></span><span class="pre">as</span><span class="pre"><span
style="font-size:10.0pt;font-family:"Courier
New"">
</span></span><span class="pre">reported in <a
moz-do-not-send="true"
href="cid:part1.07080205.06020204@dektech.com.au">
http://docs.openstack.org/developer/python-novaclient/</a></span><span
class="pre"><span
style="font-size:10.0pt;font-family:"Courier
New"">.</span></span><span
style="font-size:10.0pt;font-family:"Courier New""><br>
</span><span class="pre">In order to figure out the test logic
I ran tests but an error is occurred:</span><span
style="font-size:10.0pt;font-family:"Courier New""><br>
<br>
</span><span class="pre"><span
style="font-size:10.0pt;font-family:"Courier
New";color:#333333">Exception:</span></span><span
style="font-size:10.0pt;font-family:"Courier
New";color:#333333"><br>
<span class="pre">Traceback (most recent call last):</span><br>
<span class="pre"> File
"/usr/local/lib/python2.7/dist-packages/pip/basecommand.py",
line 122, in main</span><br>
<span class="pre"> status = self.run(options, args)</span><br>
<span class="pre"> File
"/usr/local/lib/python2.7/dist-packages/pip/commands/install.py",
line 283, in run</span><br>
<span class="pre">
requirement_set.install(install_options, global_options,
root=options.root_path)</span><br>
<span class="pre"> File
"/usr/local/lib/python2.7/dist-packages/pip/req.py", line
1431, in install</span><br>
<span class="pre">
requirement.uninstall(auto_confirm=True)</span><br>
<span class="pre"> File
"/usr/local/lib/python2.7/dist-packages/pip/req.py", line
598, in uninstall</span><br>
<span class="pre"> paths_to_remove.remove(auto_confirm)</span><br>
<span class="pre"> File
"/usr/local/lib/python2.7/dist-packages/pip/req.py", line
1836, in remove</span><br>
<span class="pre"> renames(path, new_path)</span><br>
<span class="pre"> File
"/usr/local/lib/python2.7/dist-packages/pip/util.py", line
295, in renames</span><br>
<span class="pre"> shutil.move(old, new)</span><br>
<span class="pre"> File "/usr/lib/python2.7/shutil.py",
line 300, in move</span><br>
<span class="pre"> rmtree(src)</span><br>
<span class="pre"> File "/usr/lib/python2.7/shutil.py",
line 247, in rmtree</span><br>
<span class="pre"> rmtree(fullname, ignore_errors,
onerror)</span><br>
<span class="pre"> File "/usr/lib/python2.7/shutil.py",
line 252, in rmtree</span><br>
<span class="pre"> onerror(os.remove, fullname,
sys.exc_info())</span><br>
<span class="pre"> File "/usr/lib/python2.7/shutil.py",
line 250, in rmtree</span><br>
<span class="pre"> os.remove(fullname)</span><br>
<span class="pre">OSError: [Errno 13] Permission denied:
'/usr/local/lib/python2.7/dist-packages/hacking/tests/test_doctest.pyc'</span><br>
<br>
<span class="pre">Storing debug log for failure in
/home/devstack/.pip/pip.log</span></span><span
style="font-size:10.0pt;font-family:"Courier New""><br>
<br>
</span><span class="pre">I am working on <b>master branch</b>
and <b>no source code modification</b> are performed. </span><span
class="pre"><span
style="font-size:10.0pt;font-family:"Courier
New"">
</span></span><span
style="font-size:10.0pt;font-family:"Courier New""><br>
<br>
</span><span class="pre">Do you know how to fix it?</span><span
style="font-size:10.0pt;font-family:"Courier New""><br>
<br>
</span><span class="pre">Thanks,</span><span
style="font-size:10.0pt;font-family:"Courier New""><br>
<br>
</span><span class="pre">Daniele.</span><span
style="font-size:10.0pt;font-family:"Courier New""><br>
<br>
<br>
</span><o:p></o:p></p>
<pre><o:p> </o:p></pre>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
OpenStack-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniele Casini
DEK Technologies
Via dei Castelli Romani, 22
00040 Pomezia (Roma)
E-mail: <a class="moz-txt-link-abbreviated" href="mailto:daniele.casini@dektech.com.au">daniele.casini@dektech.com.au</a>
WEB: <a class="moz-txt-link-abbreviated" href="http://www.dektech.com.au">www.dektech.com.au</a> </pre>
</body>
</html>