[Fab-user] Fabric 0.9.3

2011-10-23 Thread Kaushal Shriyan
Hi,

I am running Fabric 0.9.3 on Ubuntu Linux 11.04 Desktop, is there a
way to install 1.2.2. I am using the below command.
pip install http://pip.openplans.org
Downloading/unpacking http://pip.openplans.org Downloading
pip.openplans.org Cannot unpack file
/tmp/pip-qtQQZM-unpack/pip.openplans.org (downloaded
from /tmp/pip-2P741l-build, content-type: text/html); cannot detect
archive format
Cannot determine archive format of /tmp/pip-2P741l-build
Storing complete log in /home/kaushal/.pip/pip.log
Any clue ?

Regards

Kaushal

___
Fab-user mailing list
Fab-user@nongnu.org
https://lists.nongnu.org/mailman/listinfo/fab-user


Re: [Fab-user] Fabric 0.9.3

2011-10-23 Thread Kaushal Shriyan
On Sun, Oct 23, 2011 at 9:34 PM, Ahsan Rabbani ahs...@gmail.com wrote:
 If you installed it via apt then remove it first and try installing using
 easy_install. You will need to apt-get install python-setuptools for
 easy_install.

 On Sun, Oct 23, 2011 at 9:56 AM, Kaushal Shriyan kaushalshri...@gmail.com
 wrote:

 Hi,

 I am running Fabric 0.9.3 on Ubuntu Linux 11.04 Desktop, is there a
 way to install 1.2.2. I am using the below command.
 pip install http://pip.openplans.org
 Downloading/unpacking http://pip.openplans.org Downloading
 pip.openplans.org Cannot unpack file
 /tmp/pip-qtQQZM-unpack/pip.openplans.org (downloaded
 from /tmp/pip-2P741l-build, content-type: text/html); cannot detect
 archive format
 Cannot determine archive format of /tmp/pip-2P741l-build
 Storing complete log in /home/kaushal/.pip/pip.log
 Any clue ?

 Regards

 Kaushal

 ___
 Fab-user mailing list
 Fab-user@nongnu.org
 https://lists.nongnu.org/mailman/listinfo/fab-user



Hi Ahsan

kaushal@kaushal-laptop:~$ python -V
Python 2.7.1+
kaushal@kaushal-laptop:~$ sudo easy_install http://pip.openplans.org
Downloading http://pip.openplans.org
error: Unexpected HTML page found at http://pip.openplans.org
kaushal@kaushal-laptop:~$ sudo easy_install-2.7 http://pip.openplans.org
Downloading http://pip.openplans.org
error: Unexpected HTML page found at http://pip.openplans.org
kaushal@kaushal-laptop:~$

Please suggest further

Regards

Kaushal

___
Fab-user mailing list
Fab-user@nongnu.org
https://lists.nongnu.org/mailman/listinfo/fab-user


Re: [Fab-user] Fabric 0.9.3

2011-10-23 Thread Jeff Forcier
On Sun, Oct 23, 2011 at 9:18 AM, Kaushal Shriyan
kaushalshri...@gmail.com wrote:

 kaushal@kaushal-laptop:~$ python -V
 Python 2.7.1+
 kaushal@kaushal-laptop:~$ sudo easy_install http://pip.openplans.org
 Downloading http://pip.openplans.org

You appear to be installing pip's *website*, not pip itself. You want:

sudo easy_install pip

Easy_install (and pip itself, once you have it installed) take package
names as their arguments, for the most part, not URLs. The
documentation on pip.openplans.org should have examples ;)


-- 
Jeff Forcier
Unix sysadmin; Python/Ruby engineer
http://bitprophet.org

___
Fab-user mailing list
Fab-user@nongnu.org
https://lists.nongnu.org/mailman/listinfo/fab-user


[Fab-user] fab version

2011-10-23 Thread Kaushal Shriyan
Hi,

I have this fabric python script.

#!/usr/bin/env python
from fabric.api import *
env.shell = '/bin/bash -l -c'
out_log = open(output.txt, w)
with open(hosts.txt) as host_file:
host_list = [x.strip() for x in host_file.readlines()]

@hosts(host_list)
def install():
with settings(warn_only=True):
version = run(route -n).stderr
out_log.write(%s: %s % (env.host, version))

when i run from the command line fab version, i get

kaushal@kaushal-laptop:~$ fab version

Fatal error: Command(s) not found:
version

Aborting.
kaushal@kaushal-laptop:~$

Am i missing something ?

Thanks and Regards,

Kaushal

___
Fab-user mailing list
Fab-user@nongnu.org
https://lists.nongnu.org/mailman/listinfo/fab-user


Re: [Fab-user] Fabric 0.9.3

2011-10-23 Thread Kaushal Shriyan
On Sun, Oct 23, 2011 at 10:50 PM, Jeff Forcier j...@bitprophet.org wrote:
 On Sun, Oct 23, 2011 at 9:18 AM, Kaushal Shriyan
 kaushalshri...@gmail.com wrote:

 kaushal@kaushal-laptop:~$ python -V
 Python 2.7.1+
 kaushal@kaushal-laptop:~$ sudo easy_install http://pip.openplans.org
 Downloading http://pip.openplans.org

 You appear to be installing pip's *website*, not pip itself. You want:

    sudo easy_install pip

 Easy_install (and pip itself, once you have it installed) take package
 names as their arguments, for the most part, not URLs. The
 documentation on pip.openplans.org should have examples ;)


 --
 Jeff Forcier
 Unix sysadmin; Python/Ruby engineer
 http://bitprophet.org


Thanks a lot all of you. it worked like a charm

Regards

Kaushal

___
Fab-user mailing list
Fab-user@nongnu.org
https://lists.nongnu.org/mailman/listinfo/fab-user