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

2014-10-13 Thread Andrey Kurilin
> the novaclient docs should really be updated.

simple fix: https://review.openstack.org/#/c/127971/
but, imo, docs should contains more information(I will fix it a little bit
later, if no one takes this)

On Mon, Oct 13, 2014 at 7:49 PM, Ben Nemec  wrote:

> On 10/13/2014 08:08 AM, Daniele Casini wrote:
> > I have already used "sudo" but it still fails:
> >
> > ImportError: cannot import name exceptions
> > Ran 63 tests in 0.146s (+0.014s)
> > FAILED (id=3, failures=63)
> > error: testr failed (1)
> >
> > So, it is quite strange because I do not modify the source code.
> > Let me know if you have some suggestions.
>
> This is probably because of missing dependencies.  tox takes care of
> that by building a virtual environment with all of the dependencies
> installed, but if you're running setup.py directly you'd have to take
> care of that.
>
> As Andrey noted, tox is used in the gate so the novaclient docs should
> really be updated.
>
> >
> > Thanks,
> >
> > Daniele.
> >
> > On 10/13/2014 01:19 PM, Murugan, Visnusaran wrote:
> >>
> >> 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.cas...@dektech.com.au]
> >> *Sent:* Monday, October 13, 2014 3:50 PM
> >> *To:* openstack-dev@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/*asreported in
> >> http://docs.openstack.org/developer/python-novaclient/
> >> .
> >> 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.
> >>
> >>
> >>
> >>
> >>
> >> ___
> >> OpenStack-dev mailing list
> >> OpenStack-dev@lists.openstack.org
> >> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> >
> >
> >
> > ___
> > OpenStack-dev mailing list
> > OpenStack-dev@lists.openstack.org
> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> >
>
>
> ___
> OpenStack-dev mailing list
> OpenStack-dev@lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>



-- 
Best regards,
Andrey Kurilin.
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


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

2014-10-13 Thread Ben Nemec
On 10/13/2014 08:08 AM, Daniele Casini wrote:
> I have already used "sudo" but it still fails:
> 
> ImportError: cannot import name exceptions
> Ran 63 tests in 0.146s (+0.014s)
> FAILED (id=3, failures=63)
> error: testr failed (1)
> 
> So, it is quite strange because I do not modify the source code.
> Let me know if you have some suggestions.

This is probably because of missing dependencies.  tox takes care of
that by building a virtual environment with all of the dependencies
installed, but if you're running setup.py directly you'd have to take
care of that.

As Andrey noted, tox is used in the gate so the novaclient docs should
really be updated.

> 
> Thanks,
> 
> Daniele.
> 
> On 10/13/2014 01:19 PM, Murugan, Visnusaran wrote:
>>
>> 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.cas...@dektech.com.au]
>> *Sent:* Monday, October 13, 2014 3:50 PM
>> *To:* openstack-dev@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/*asreported in 
>> http://docs.openstack.org/developer/python-novaclient/ 
>> .
>> 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.
>>
>>
>>   
>>
>>
>> ___
>> OpenStack-dev mailing list
>> OpenStack-dev@lists.openstack.org
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> 
> 
> 
> ___
> OpenStack-dev mailing list
> OpenStack-dev@lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> 


___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


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

2014-10-13 Thread Ben Nemec
On 10/13/2014 06:19 AM, Murugan, Visnusaran wrote:
> 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.

To my knowledge you should never have to run our unit tests with sudo,
and I wouldn't recommend doing it.  Handing root permissions to test
code that was written to run as a regular user just doesn't seem like a
good idea to me.

> 
> -Vishnu
> 
> From: Daniele Casini [mailto:daniele.cas...@dektech.com.au]
> Sent: Monday, October 13, 2014 3:50 PM
> To: openstack-dev@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/.
> 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.
> 
> 
> 
> 
> 
> 
> ___
> OpenStack-dev mailing list
> OpenStack-dev@lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> 


___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


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

2014-10-13 Thread Andrey Kurilin
>Can I use tox in order to test python-novaclient?

`tox` is used in novaclient gates, so you SHOULD use tox instead of "python
setup.py test" :) To make sure in my words, you can see
gate-python-novaclient-python27/console.html (for example:
http://logs.openstack.org/50/123850/4/check/gate-python-novaclient-python27/9d3d1c0/console.html.gz
) and find launch of `tox`.



On Mon, Oct 13, 2014 at 4:39 PM, Daniele Casini <
daniele.cas...@dektech.com.au> wrote:

>  I have already use "tox" instead of "python setup.py test" and the test
> is successfully passed.
>
> However, I do not understand because it does not pass using the way
> reported in the official document.
>
> Thus, two questions occour to me:
>
> Can I use tox in order to test python-novaclient? Should the official
> document (i.e http://docs.openstack.org/developer/python-novaclient/
> )
> be changed adding "tox", as well?
>
> Thanks,
>
> Daniele.
>
>
> On 10/13/2014 01:29 PM, Andrey Kurilin wrote:
>
> Simple way to run tests is using tox:
> $ tox -epy27
>
> For more details, look at nova guide:
> http://docs.openstack.org/developer/nova/devref/unit_tests.html
>
> PS: Why novaclient guide recommends to use "python setup.py test"? A bit
> strange for me.
>
> On Mon, Oct 13, 2014 at 1:19 PM, Daniele Casini <
> daniele.cas...@dektech.com.au> wrote:
>
>>  Hi All,
>>
>> I am trying to test *python-novaclient* using *python setup.py test* as 
>> reported
>> in http://docs.openstack.org/developer/python-novaclient/
>> 
>> .
>> 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.
>>
>>
>> ___
>> OpenStack-dev mailing list
>> OpenStack-dev@lists.openstack.org
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
>>
>
>
> --
> Best regards,
> Andrey Kurilin.
>
>
> ___
> OpenStack-dev mailing 
> listOpenStack-dev@lists.openstack.orghttp://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
> --
> Daniele Casini
>
> DEK Technologies
> Via dei Castelli Romani, 22
> 00040 Pomezia (Roma)
> E-mail: daniele.cas...@dektech.com.au
> WEB: www.dektech.com.au
>
>
> ___
> OpenStack-dev mailing list
> OpenStack-dev@lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>


-- 
Best regards,
Andrey Kurilin.
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


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

2014-10-13 Thread Daniele Casini
I have already use "tox" instead of "python setup.py test" and the test 
is successfully passed.


However, I do not understand because it does not pass using the way 
reported in the official document.


Thus, two questions occour to me:

Can I use tox in order to test python-novaclient? Should the official 
document (i.e http://docs.openstack.org/developer/python-novaclient/ 
) 
be changed adding "tox", as well?


Thanks,

Daniele.


On 10/13/2014 01:29 PM, Andrey Kurilin wrote:

Simple way to run tests is using tox:
$ tox -epy27

For more details, look at nova guide: 
http://docs.openstack.org/developer/nova/devref/unit_tests.html


PS: Why novaclient guide recommends to use "python setup.py test"? A 
bit strange for me.


On Mon, Oct 13, 2014 at 1:19 PM, Daniele Casini 
mailto:daniele.cas...@dektech.com.au>> 
wrote:


Hi All,

I am trying to test *python-novaclient* using
/*pythonsetup.pytes**t*/asreported in
http://docs.openstack.org/developer/python-novaclient/

.
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.


___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org

http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev




--
Best regards,
Andrey Kurilin.


___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


--
Daniele Casini

DEK Technologies
Via dei Castelli Romani, 22
00040 Pomezia (Roma)
E-mail: daniele.cas...@dektech.com.au
WEB: www.dektech.com.au

___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


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

2014-10-13 Thread Daniele Casini

I have already used "sudo" but it still fails:

ImportError: cannot import name exceptions
Ran 63 tests in 0.146s (+0.014s)
FAILED (id=3, failures=63)
error: testr failed (1)

So, it is quite strange because I do not modify the source code.
Let me know if you have some suggestions.

Thanks,

Daniele.

On 10/13/2014 01:19 PM, Murugan, Visnusaran wrote:


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.cas...@dektech.com.au]
*Sent:* Monday, October 13, 2014 3:50 PM
*To:* openstack-dev@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/*asreported in 
http://docs.openstack.org/developer/python-novaclient/ 
.
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.


  



___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


--
Daniele Casini

DEK Technologies
Via dei Castelli Romani, 22
00040 Pomezia (Roma)
E-mail: daniele.cas...@dektech.com.au
WEB: www.dektech.com.au

___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


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

2014-10-13 Thread Andrey Kurilin
Simple way to run tests is using tox:
$ tox -epy27

For more details, look at nova guide:
http://docs.openstack.org/developer/nova/devref/unit_tests.html

PS: Why novaclient guide recommends to use "python setup.py test"? A bit
strange for me.

On Mon, Oct 13, 2014 at 1:19 PM, Daniele Casini <
daniele.cas...@dektech.com.au> wrote:

>  Hi All,
>
> I am trying to test *python-novaclient* using *python setup.py test* as 
> reported
> in http://docs.openstack.org/developer/python-novaclient/
> 
> .
> 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.
>
>
> ___
> OpenStack-dev mailing list
> OpenStack-dev@lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>


-- 
Best regards,
Andrey Kurilin.
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


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

2014-10-13 Thread Murugan, Visnusaran
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.cas...@dektech.com.au]
Sent: Monday, October 13, 2014 3:50 PM
To: openstack-dev@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/.
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.




___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


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

2014-10-13 Thread Daniele Casini

Hi All,

I am trying to test *python-novaclient* using 
/*pythonsetup.pytes**t*/asreported in 
http://docs.openstack.org/developer/python-novaclient/ 
.

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.

___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev