brain-hacker-antilammer / pygooglevoice

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

easy_install generates error #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Sorry to create a new issue, but I don't know how to open a closed issue.
I installed the python tools, and then issued:
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 issue reported on code.google.com by mark...@gmail.com on 26 Oct 2009 at 7:55

GoogleCodeExporter commented 9 years ago
You need the simplejson library (easy_install simplejson) or Python>=2.6

Original comment by justquick on 26 Oct 2009 at 8:10

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

yum install python-setuptools
easy_install simplejson
easy_install pygooglevoice

now using 0.4:  However, I don't think this is the compiled version (see 
cat /usr/bin/gvoice).

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