Pear0 / pygooglevoice

Automatically exported from code.google.com/p/pygooglevoice
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

pygooglevoice takes 30 seconds to login #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.run /usr/bin/gvoice or run pygooglevoice manually in python CLI
2.enter email address and password
3.script takes ~30 seconds to "login"

What is the expected output? What do you see instead?
Is it supposed to take this long to login?

What version of the product are you using? On what operating system?
Latest version 0.3 on Fedora 11 with latest updates as of 25 September 2009.

Please provide any additional information below.

Original issue reported on code.google.com by jason.ho...@gmail.com on 25 Sep 2009 at 6:25

GoogleCodeExporter commented 9 years ago
Logins have been changed around a bit to reflect google's changes to their auth
scheme. I think that the problem has been fixed in the new version which is now 
in
the repository. Please get a copy of it like so

hg clone https://pygooglevoice.googlecode.com/hg/ pygooglevoice  

install it, and then let me know how it goes. this should not be an issue 
anymore

Original comment by justquick on 28 Sep 2009 at 4:02

GoogleCodeExporter commented 9 years ago
After installing the latest from repository, I get this error when trying to 
run gvoice.

$ /usr/bin/gvoice
Traceback (most recent call last):
  File "/usr/bin/gvoice", line 5, in <module>
    pkg_resources.run_script('pygooglevoice==0.3', 'gvoice')
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 448, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 1173, in run_script
    exec script_code in namespace, namespace
  File
"/usr/lib/python2.6/site-packages/pygooglevoice-0.3-py2.6.egg/EGG-INFO/scripts/g
voice",
line 80, in <module>

TypeError: __init__() takes exactly 1 argument (2 given)

Original comment by jason.ho...@gmail.com on 28 Sep 2009 at 4:34

GoogleCodeExporter commented 9 years ago
whoops! there was a small bug in the gvoice binary. grab the latest code and 
lets try
this again

$ hg pull
$ sudo python setup.py install
$ gvoice

Original comment by justquick on 28 Sep 2009 at 4:42

GoogleCodeExporter commented 9 years ago
Thank you, the new one works.  However, I'm still seeing the slow login/logout 
issue.

Logging in takes ~50 seconds
Logging out takes ~25 seconds

Thank you for your help.

Original comment by jason.ho...@gmail.com on 28 Sep 2009 at 5:07

GoogleCodeExporter commented 9 years ago
The problem must be with your connection or google's service. I am able to 
login and
logout in just under 5s. The login changes did introduce another page request, 
but
that alone should not be causing that kind of delay. Im not sure what to tell 
you
about this issue, its probably google's service crapping out again. Try seeing 
if the
web interface at https://www.google.com/voice/ is just as slow, because that is
really all the python code is using. I am only able to fix this code, which is
finally working, but thats about all I can do unfortunately. I would try again 
in a
little bit and maybe some of their service issues will b cleared up by then. 
Godspeed

Original comment by justquick on 28 Sep 2009 at 5:38

GoogleCodeExporter commented 9 years ago
I narrowed the problem down to DNS lookups by python being slow to resolve.  
After a
ton of troubleshooting, I found that the problem is somehow related to 
Comcast's DNS
servers.  I am now using OpenDNS servers (http://www.opendns.com/) and the 
issue is gone.

Thanks.

Original comment by jason.ho...@gmail.com on 29 Sep 2009 at 5:23

GoogleCodeExporter commented 9 years ago
Actually the problem still remains even after changing to OpenDNS... It takes
approximately 35 seconds to call and 5 seconds to logout for me.

Original comment by st3amco0...@gmail.com on 16 Feb 2010 at 12:31