fab-user
[Top][All Lists]
Advanced

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

Re: [Fab-user] TypeError: list objects are unhashable


From: Gustavo Soares
Subject: Re: [Fab-user] TypeError: list objects are unhashable
Date: Tue, 21 Apr 2009 16:12:01 -0300

hi!

First of all, sorry of not posting my code.

You are absoluting right.. I had something like config.fab_user = ['user'].

Now, everything is working just fine.

Cheers,
Gus

On Sat, Apr 18, 2009 at 10:15 AM, Christian Vest Hansen <address@hidden> wrote:
Or, what I *think* is happening:

You have something like
  config.fab_user = ['alice', 'bob']
or maybe just ['alice'], either way the value of fab_user is some kind
of list() and that is not how it is suppose to be used. If it has ever
worked, it has been purely by coincidence.

If you need different users for different hosts, do it like this (and
leave fab_user unset):
  config.fab_hosts = ['address@hidden', 'address@hidden']


On Sat, Apr 18, 2009 at 3:06 PM, Christian Vest Hansen
<address@hidden> wrote:
> What is the value of you fab_user variable?
>
> That is, where you do
>   config.fab_user = ...
> or
>   config['fab_user'] = ...
> what do you have in place of the "..." ?
>
>
> On Fri, Apr 17, 2009 at 9:03 PM, Gustavo Soares <address@hidden> wrote:
>> Hi all,
>>
>> I've made a fabfile.py that among other things, it send a file to a remote
>> host to a remote host... when using the "put" command, I am getting the
>> following error:
>>
>> Traceback (most recent call last):
>>   File "build/bdist.macosx-10.4-i386/egg/fabric.py", line 1518, in main
>>   File "build/bdist.macosx-10.4-i386/egg/fabric.py", line 1427, in
>> _execute_command
>>   File "build/bdist.macosx-10.4-i386/egg/fabric.py", line 1470, in
>> _execute_at_target
>>   File "fabfile.py", line 157, in deploy
>>     put('/tmp/project.zip', '/tmp/project.zip')
>>   File "build/bdist.macosx-10.4-i386/egg/fabric.py", line 167, in wrapper
>>   File "build/bdist.macosx-10.4-i386/egg/fabric.py", line 963, in
>> _run_serially
>>   File "build/bdist.macosx-10.4-i386/egg/fabric.py", line 1144, in _connect
>> TypeError: list objects are unhashable
>>
>> I have updated fabric to the latest version (0.1.1) but the problem
>> remains..
>>
>> any idea?
>>
>> Cheers,
>> Gus
>>
>> _______________________________________________
>> Fab-user mailing list
>> address@hidden
>> http://lists.nongnu.org/mailman/listinfo/fab-user
>>
>>
>
>
>
> --
> Venlig hilsen / Kind regards,
> Christian Vest Hansen.
>



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


reply via email to

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