bertok / pygooglevoice

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

Login Failed #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run gvoice at command prompt
2. Enter in google voice username
3. Enter in google voice password

What is the expected output? What do you see instead?
Expected the login to be successful.  Login failed message received.  
gvoice was working fine up until about 2 or 3 days ago.

What version of the product are you using? On what operating system?
used with current PBX in a flash Linux OS distribution.

Please provide any additional information below.

Original issue reported on code.google.com by mphac...@gmail.com on 27 Sep 2009 at 7:26

GoogleCodeExporter commented 9 years ago
Google ended up changing their service a bit and i just pushed the code into the
repository to adapt to their new auth scheme. please get a copy of the 
following like so

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

install it, and give it a try again. this should no longer be an issue

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

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Whats the best way to do an update to fix this? I can't get the method above to 
work.
I installed Mercureal, ran the command and immediately had problems because you 
can't
clone to a non-empty directory... renamed pygooglevoice to something else, ran 
the hg
clone command which then suceeded but then ran into other problems related to 
the
from module "from googlevoice.voice import Voice" not being there... If this 
utility
is going to have such frequent changes based on googlevoice changes we need a 
smooth
way to update it!

HELP!

Original comment by kellyswa...@gmail.com on 30 Sep 2009 at 11:47

GoogleCodeExporter commented 9 years ago
There is a smooth way to update it: learn how to use mercurial. Make sure your
codebase it up to date:

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

If this does not work, then remove any previous versions of pygooglevoice 
(usually
found in /usr/lib/python/site-packages/pygooglevoice*) and then reinstall. If 
you are
unhappy with the amount of changes that the nonexistent Google Voice API is
undergoing, please feel free to contact support@google.com

Original comment by justquick on 30 Sep 2009 at 3:17

GoogleCodeExporter commented 9 years ago
I'm trying!!

--------------------------------------------------
so if I do the following...
switch to /root directory then

hg clone https://pygooglevoice.googlecode.com/hg/ pygooglevoice
requesting all changes
adding changesets
adding manifests
adding file changes
added 25 changesets with 215 changes to 75 files
updating working directory
61 files updated, 0 files merged, 0 files removed, 0 files unresolved

hg pull
pulling from https://pygooglevoice.googlecode.com/hg/
searching for changes
no changes found

hg update
0 files updated, 0 files merged, 0 files removed, 0 files unresolved

sudo python setup.py install
running install
running build
running build_py
running build_scripts
running install_lib
running install_scripts
changing mode of /usr/bin/gvoice to 755

If I then type gvoice I get the following:

root@pbx:~/pygooglevoice $ gvoice
Traceback (most recent call last):
  File "/usr/bin/gvoice", line 5, in ?
    from googlevoice.voice import Voice
ImportError: No module named voice

Original comment by kellyswa...@gmail.com on 30 Sep 2009 at 4:16

GoogleCodeExporter commented 9 years ago
since the install doesnt actually move any new files, python still thinks you 
have
the same code installed and therefore will not update the new version. try to 
follow
this example

$ cd
$ python
>>> import googlevoice as g
>>> g.__file__
'/usr/local/lib/python2.5/dist-packages/googlevoice/__init__.pyc' # or some dir 
like it
$ sudo rm -rf /usr/local/lib/python2.5/dist-packages/googlevoice/

$ cd pygooglevoice # or wherever you put it
$ hg pull
$ hg update
$ sudo rm -rf build
$ sudo python setup.py install

Original comment by justquick on 30 Sep 2009 at 4:29

GoogleCodeExporter commented 9 years ago
Got it! I am very rusty at this stuff didn't help that I was running as root 
superuser vs needing sudo. Since I WAS able to get Mercurial installed last 
night 
that should make this easier in the future. Thx for your help...

Brian

Original comment by kellyswa...@gmail.com on 30 Sep 2009 at 8:30

GoogleCodeExporter commented 9 years ago
woot

Original comment by justquick on 30 Sep 2009 at 9:39