Git-Host / pygooglevoice

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

easy_install update #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have two Asterisk PBxIAF systems under Centos 5.3 running, one system 
has easy_install, and one does not.  Here is how I applied the update:
cd /root
rm -r pygooglevoice
hg clone https://pygooglevoice.googlecode.com/hg/ pygooglevoice
cd pygooglevoice
rm /usr/bin/gvoice
python setup.py install

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

Your response was: "This has been fixed and should not be a problem. If 
you are using the hg clone, you must delete the build directory before 
reinstalling (which I did, still same error). Ideally, just get it from 
easy install (sudo easy_install pygooglevoice).  Three questions that will 
help me understand, and probably others:

First, should this get version 0.3 or 0.4?  It always seems to get 0.3 
when I run it.

Second, "easy_install" is on one of my sytems, but not the other.  How do 
I install just "easy_install"?

Third, if I am logged in as root, and I am in the /root directory, where 
do I run "easy_install -U pygooglevoice" from?  Will it install version 
0.4? Thanks for your help.

Original issue reported on code.google.com by mark...@gmail.com on 26 Oct 2009 at 5:39

GoogleCodeExporter commented 9 years ago
1) You should get v0.4
2) You need the python-setuptools package (yum install python-setuptools)
3) You can run easy_install anywhere

Original comment by justquick on 26 Oct 2009 at 5:53

GoogleCodeExporter commented 9 years ago
After install the tools, the easy_install generated the following error:
easy_install -U pygooglevoice
Searching for pygooglevoice
Reading http://cheeseshop.python.org/pypi/pygooglevoice/
Reading http://code.google.com/p/pygooglevoice
Reading http://cheeseshop.python.org/pypi/pygooglevoice/0.4
Best match: pygooglevoice 0.4
Downloading http://pygooglevoice.googlecode.com/files/pygooglevoice-0.4.tar.gz
Processing pygooglevoice-0.4.tar.gz
Running pygooglevoice-0.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-
pGSXw6/pygooglevoice-0.4/egg-dist-tmp-koQ8x1
zip_safe flag not set; analyzing archive contents...
Adding pygooglevoice 0.4 to easy-install.pth file
Installing gvoice script to /usr/bin

Installed /usr/lib/python2.4/site-packages/pygooglevoice-0.4-py2.4.egg
Processing dependencies for pygooglevoice

gvoice
Traceback (most recent call last):
  File "/usr/bin/gvoice", line 5, in ?
    pkg_resources.run_script('pygooglevoice==0.4', 'gvoice')
  File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 407, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 1091, in run_script
    exec script_code in namespace, namespace
  File "/usr/bin/gvoice", line 5, in ?
    pkg_resources.run_script('pygooglevoice==0.4', 'gvoice')
  File "build/bdist.linux-i686/egg/googlevoice/__init__.py", line 23, in ?
  File "build/bdist.linux-i686/egg/googlevoice/voice.py", line 10, in ?
  File "build/bdist.linux-i686/egg/googlevoice/util.py", line 20, in ?
ImportError: No module named simplejson

The /usr/bin/gvoice contained the following:
#!/usr/bin/python
# EASY-INSTALL-SCRIPT: 'pygooglevoice==0.4','gvoice'
__requires__ = 'pygooglevoice==0.4'
import pkg_resources
pkg_resources.run_script('pygooglevoice==0.4', 'gvoice')

I also noticed that the files in /tmp are deleted.  Is this the way it is 
suppose to 
work.

Original comment by mark...@gmail.com on 26 Oct 2009 at 7:43

GoogleCodeExporter commented 9 years ago
Thank you, 0.4 is now working. Here are the steps:

yum install python-setuptools
easy_install simplejson (not needed if using python 2.6)
easy_install pygooglevoice

Original comment by mark...@gmail.com on 27 Oct 2009 at 2:32