bertok / pygooglevoice

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

ImportError: No module named voice #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. hg clone https://pygooglevoice.googlecode.com/hg/ pygooglevoice
2. sudo python setup.py install
3. gvoice

What is the expected output? What do you see instead?
prompt for email address

What version of the product are you using? On what operating system?
latest revision to fix login failed issue on centos (PBX in a Flash)

Please provide any additional information below.
trying to update to the latest revision by doing the command above and I
receive the following instead.

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

Original issue reported on code.google.com by parrotgu...@yahoo.com on 29 Sep 2009 at 3:58

GoogleCodeExporter commented 9 years ago
I have gotten this working on my centos vm and think the problem is you old 
install
of pygooglevoice is still laying around someplace and is gumming up the works. 
Here
is my example how to detect it and remove it

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

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

GoogleCodeExporter commented 9 years ago
erm. that above solution will fix it. the underlying problem was i forgot to up 
the
version to 0.4 in the setup. hg pull, then run setup.py install again should 
fix it too

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

GoogleCodeExporter commented 9 years ago
Could you explain how to do this? syntax would be "hg pull' then what?
I'm not a linux tool expert so this is getting a bit murky..

I've done the hg clone, that completed but then couldn't go any further because 
of
the version issue you mentioned... so now what?

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

GoogleCodeExporter commented 9 years ago
just go into the pygooglevoice directory and type hg pull then hg update then 
run
python setup.py install. that should do it. if you still get an errors look for 
what
lib your gvoice is using mine was in pygooglevoice.egg in
/usr/lib/python/site-packages i believe. you can run the above to find yours and
delete the directory and run setup again.

Original comment by parrotgu...@yahoo.com on 30 Sep 2009 at 1:33

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
So strange... Im lookin into the ImportError today and will get back to you. I
suspect the old version is hanging around someplace in your sys.path, either as
source or an egg. The second error is probably because one of the phone numbers 
is
bogus and it cant call them for some reason. I saw this when I try to call my 
own
phone. Does it work in their web interface? The tb goes into the call method 
which
means that it was able to validate your login correctly, and a non-gmail address
should not matter as long as it works on their web interface.

Original comment by justquick on 13 Oct 2009 at 1:38

GoogleCodeExporter commented 9 years ago
voice.py is missing from the pygooglevoice 0.4 distribution.
I grabbed the voice.py source from this site and added it to the installed
pygooglevoice egg file using the zip utility.

gvoice now works and no more missing voice module.

Solution:  Add voice.py back into the distribution.  

Original comment by davidt...@gmail.com on 14 Oct 2009 at 6:40

GoogleCodeExporter commented 9 years ago
i had the same issue.  voice.py was not in the distribution.

i solved it by setting up the clone.  after doing so, voice.py was included in 
the googlevoice folder along with 
__init__.py, settings.py, tests.py and util.py.

i then installed from setup.py and now v0.4, runs without the import error.

Original comment by skou...@gmail.com on 14 Oct 2009 at 8:01

GoogleCodeExporter commented 9 years ago
good call, voice.py was missing! after reading through some forums about 
distutils
not including some files, i have fixed the problem and updated the download. 
this
should all be working now

Original comment by justquick on 14 Oct 2009 at 1:43