Type Error While Instantiating TrelloConnection

Issue #3 resolved
Aditya Kulkarni
created an issue

Hey All,

I just installed trollop using pip (pip install trollop)

However when I try to instantiate the connection object I get the following error

/usr/local/lib/python2.7/dist-packages/trollop/lib.pyc in __init__(self, api_key, oauth_token)
     24         self.session = requests.session(
     25             headers={'Accept': 'application/json',
---> 26                      'Content-Type': 'application/json'})
     27         self.key = api_key
     28         self.token = oauth_token

TypeError: session() takes no arguments (1 given)

So I checked the code in /usr/local/lib/python2.7/dist-packages/trollop/lib.py and found that there is actually an error in the code. However, it seems to be fixed on master.

Could you please check?

Thanks for your help!

Comments (2)

  1. Log in to comment