Errors While Upgrading to dotCloud CLI 0.4 (MAC OSX & Python 2.6)

| Comments

When trying to upgrade from dotCloud CLI 0.3 to 0.4 under OSX running the following command

1
$ sudo easy_install --upgrade dotCloud

I encountered this error

1
2
install_requires    = ['dotcloud.cli >= {0}'.format(VERSION)],
AttributeError: 'str' object has no attribute 'format'

I’m running Python 2.6, which has support for str.format(), but in my system easy_install is bound to Python 2.5, hence the error.

The fastest way to solve this is to tell easy_install to use python 2.6

1
$sudo easy_install-2.6 --upgrade dotcloud

Another way is to match easy_install with your current version of Python. Read more about it here.