fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fab-user] fabric on python2.4


From: Christian Vest Hansen
Subject: Re: [Fab-user] fabric on python2.4
Date: Thu, 12 Jun 2008 15:34:14 +0200

Thanks for sharing that.

I'll try to fix py2.4 related issues as they pop up, but unless
someone picks up the ball and commits to keeping the py2.4 issues out,
then using Fabric on py2.4 will always be an adventure as I only use
py2.5 myself.

So it seems str.partition was introduced in 2.5. What a shame, I was
kind of liking that method :/


On 6/12/08, Erwin Elling <address@hidden> wrote:
> Hi all,
>  The Fabric website states "Python 2.5 (2.4 might work but is not tested)."
> as one of the system requirements.
>  [http://www.nongnu.org/fab/index.html]
>
>  Since we wanted to try Fabric for the deployment of our projects, we've
> been playing around with it and ran into some problems on python2.4.
>  When going through the tutorial, the "hello_remote" command does not seem
> to work on python2.4 (transcript of my terminal below). After switching to
> python2.5 we haven't run into any problems yet.
>
>  Don't know whether this is indeed a problem of fabric on python2.4, but it
> seems like it is. Hopefully this information is useful to some of you.
>  Cheers,
>  Erwin
>
>
>  -------
>
>    Fabric v. 0.0.5, Copyright (C) 2008 Christian Vest Hansen.
>    Fabric comes with ABSOLUTELY NO WARRANTY; for details type `fab
> warranty'.
>    This is free software, and you are welcome to redistribute it
>    under certain conditions; type `fab license' for details.
>
>  Running hello_remote...
>  Logging into the following hosts as [...]:
>     [...]
>  Password:
>  Traceback (most recent call last):
>   File
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/bin/fab",
> line 32, in ?
>     fabric.main(sys.argv[1:])
>   File
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/fabric.py",
> line 1021, in main
>     _execute_commands(commands)
>   File
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/fabric.py",
> line 1011, in _execute_commands
>     COMMANDS[cmd](**(args or {}))
>   File "fabfile.py", line 13, in hello_remote
>     run("echo hello from $(fab_host) to $(fab_user).")
>   File
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/fabric.py",
> line 92, in wrapper
>     _connect()
>   File
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/fabric.py",
> line 874, in _connect
>     host, _, port = host.partition(':')
>  AttributeError: 'str' object has no attribute 'partition'
>
>
>
>
>
>  _______________________________________________
>  Fab-user mailing list
>  address@hidden
>  http://lists.nongnu.org/mailman/listinfo/fab-user
>


-- 
Venlig hilsen / Kind regards,
Christian Vest Hansen.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]