thefactory/marathon-python

List apps returns TypeError

Opened this issue · 7 comments

I am getting the following error while trying to access the list of apps.
Error: TypeError: init() got an unexpected keyword argument 'role'

Method to reproduce the issue.

from marathon import MarathonClient
host_url = "http://ip/service/marathon"
auth_token = "xxxxx"
client = MarathonClient(host_url, auth_token=auth_token)
client.list_apps()

version of marathon: 0.12.0

@missingcharacter marathon python client version 0.12.0 and marathon version 1.10.17

@PraveenMundur as mentioned in https://github.com/thefactory/marathon-python#compatibility

For Marathon 1.9.x and 1.10.x, use at least 0.13.0

But version 0.13.0 is not available yet, could you please try installing from the master branch?

pip install -e git+https://github.com/thefactory/marathon-python.git@master#egg=marathon-python or
pipenv install -e git+https://github.com/thefactory/marathon-python.git@master#egg=marathon-python

Installing the package from master branch resolves the issue.
When we can expect the release of new version 0.13.0?

I've release 0.13.0 just now.