Pear0 / pygooglevoice

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

v0.4: error importing googlevoice #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. install v0.4
2. run idle
3. type: import googlevoice

What is the expected output? What do you see instead?
I expected a successful import of googlevoice.  but i get this instead:

IDLE 2.6.2      
>>> import googlevoice

Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    import googlevoice
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-
packages/googlevoice/__init__.py", line 23, in <module>
    from voice import Voice, Phone, Message, Folder
ImportError: No module named voice

What version of the product are you using? On what operating system?
i'm using v0.4 on python 2.6 on osx 10.6

Please provide any additional information below.
I have this problem if I install over v0.3 without removing its files and I 
also have the problem if I 
remove what I think are all the v0.3 files.  If I remove v0.4 and reinstall 
v0.3, I can import 
googlevoice (but of course, it's v0.3).

Those files are:
/Library/Frameworks/Python.framework/Versions/2.6/bin/gvoice
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-
packages/pygooglevoice-0.4-py2.6.egg-info
and the folder:
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/go
oglevoice

Also, I notice that __init__.py is quite different in v0.4 vs v0.3

Also, thinking this could be related to issue 9 
(http://code.google.com/p/pygooglevoice/issues/detail?id=9&can=1) I tried 
following comment 
1, but got the same error since comment 1 also tries to import googlevoice.

Original issue reported on code.google.com by skou...@gmail.com on 11 Oct 2009 at 9:48

GoogleCodeExporter commented 9 years ago
yes, you must remove all previous installs. for your setup, just run this 
command in
ur terminal

$ sudo rm -rf 
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-
packages/googlevoice/

then re-install either from source or from easy_install

Original comment by justquick on 11 Oct 2009 at 11:28