Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

channel error #127

Closed
EXPEnbansal opened this issue May 20, 2016 · 3 comments
Closed

channel error #127

EXPEnbansal opened this issue May 20, 2016 · 3 comments

Comments

@EXPEnbansal
Copy link

gmaps = googlemaps.Client(client_id='id', client_secret='secret-No=',channel='channel')

TypeError: init() got an unexpected keyword argument 'channel'

@rbouchez
Copy link
Contributor

Hi EXPEnbansal, are you using the version 2.4.3 of the library? The channel was added in a later commit I think.
(check the available arguments with >> help(googlemaps.Client))

@EXPEnbansal
Copy link
Author

Yes that is still not on pip , when I pip install googlemaps that it install the version which does not have channel,kindly upload new package which has channel parameter

@rbouchez
Copy link
Contributor

rbouchez commented Jun 7, 2016

If you want you can also install the package as is it currently on the master branch, with the following command:
pip install git+git://github.com/googlemaps/google-maps-services-python@master
This should give you the channel parameter.

Side note: as it is currently on master, you can only use the channel arg if you don't use the key arg at all. I submitted a new pull request to correct that (i.e. allow channel when client ID and key are both used).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants