[BangPypers] Stack Overflow Questions Tags Users Badges Unanswered Ask Question google oauth login Python: “Invalid parameter value for redirect_uri: Missing scheme: None”
This is my code: flow = OAuth2WebServerFlow(client_id='XX',client_secret='X',scope=' https://www.googleapis.com/auth/userinfo.email',redirect_uri=' https://.com/oauth2callback') log.debug(flow.__dict__) if not self.request.get(code): auth_uri = flow.step1_get_authorize_url() log.debug(the link + auth_uri) self.redirect(auth_uri) else: code = self.request.get(code) log.debug(code=+str(code)) credentials = flow.step2_exchange(str(code)) http = httplib2.Http() http = credentials.authorize(http) log.info('authorisation completed') service = build('gmail', 'v2', http=http) self.render_json(service.__dict__) After all this, code. i am getting an error as below: Failed to retrieve access token: { error : invalid_request, error_description : Invalid parameter value for redirect_uri: Missing scheme: None } Can anyone help me out. Stuck for a 2 days on this. ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Pygtk
Thank you Gora. Sayantan i did not understand the page you have mentioned. i could not find any link i your reply. Functionality wise QT n pygtk are same na. On Thu, Jul 24, 2014 at 1:03 AM, sayantan bhattacharya skb655...@gmail.com wrote: Here's another page which kind of summarizes the difference between gtk and pygtk. If you are into creating UI using gtk, I would suggest using some wrapper module like wx or QT. -- Sayantan On Thu, Jul 24, 2014 at 12:38 AM, Gora Mohanty g...@mimirtech.com wrote: On 22 July 2014 21:27, Ankita Rath ankitarath2...@gmail.com wrote: Hi, I am using pygtk for GUI. We can import gtk module for this. But lot of places i have seen pygtk module along with gtk module. So can somebody tell me what is the use of this pygtk module. import pygtk import gtk we can do everything with gtk module only. So when is this pygtk module is useful. pygtk has pretty decent documentation, which you might want to read carefully: Please see the right-hand sidebar at http://www.pygtk.org/ From the tutorial: The variables and functions that are defined in the PyGTK module are named as gtk.*. So, you are very likely using functions from pygtk, even when they are named as gtk.XXX. If you are so inclined, you can look into the two modules to figure out what is defined where. Regards, Gora ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers -- Sayantan Bhattacharya ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Pygtk
Yes, functionally they are same. I am sorry to have missed out the link : http://stackoverflow.com/questions/3961397/gtk-and-pygtk-difference. Internally the calls the same. On Jul 25, 2014 5:29 PM, Ankita Rath ankitarath2...@gmail.com wrote: Thank you Gora. Sayantan i did not understand the page you have mentioned. i could not find any link i your reply. Functionality wise QT n pygtk are same na. On Thu, Jul 24, 2014 at 1:03 AM, sayantan bhattacharya skb655...@gmail.com wrote: Here's another page which kind of summarizes the difference between gtk and pygtk. If you are into creating UI using gtk, I would suggest using some wrapper module like wx or QT. -- Sayantan On Thu, Jul 24, 2014 at 12:38 AM, Gora Mohanty g...@mimirtech.com wrote: On 22 July 2014 21:27, Ankita Rath ankitarath2...@gmail.com wrote: Hi, I am using pygtk for GUI. We can import gtk module for this. But lot of places i have seen pygtk module along with gtk module. So can somebody tell me what is the use of this pygtk module. import pygtk import gtk we can do everything with gtk module only. So when is this pygtk module is useful. pygtk has pretty decent documentation, which you might want to read carefully: Please see the right-hand sidebar at http://www.pygtk.org/ From the tutorial: The variables and functions that are defined in the PyGTK module are named as gtk.*. So, you are very likely using functions from pygtk, even when they are named as gtk.XXX. If you are so inclined, you can look into the two modules to figure out what is defined where. Regards, Gora ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers -- Sayantan Bhattacharya ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers