bertok / pygooglevoice

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

gvoice invalid syntax error #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
After install, interactive python works fine, from command line:
gvoice -e myusername@gmail.com

gives the following output:
Traceback (most recent call last):
  File "/usr/bin/gvoice", line 5, in <module>
    pkg_resources.run_script('pygooglevoice==0.3', 'gvoice')
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 448, in
run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 1172, in
run_script
    script_code = compile(script_text,script_filename,'exec')
  File
"/usr/lib/python2.6/site-packages/pygooglevoice-0.3-py2.6.egg/EGG-INFO/scripts/g
voice",
line 113

SyntaxError: invalid syntax

This is whatever was installed via easy_install and I'm running on Gentoo.

Original issue reported on code.google.com by flynn...@gmail.com on 22 Aug 2009 at 9:40

GoogleCodeExporter commented 9 years ago
Also, I'm running python 2.6 if that makes a difference.

Original comment by flynn...@gmail.com on 22 Aug 2009 at 9:44

GoogleCodeExporter commented 9 years ago
had the same problem...
go to the directory
/usr/lib/python2.6/site-packages/pygooglevoice-0.3-py2.6.egg

then unzip the egg file
and modify the 113 line in the Egg-info/scripts/gvoice file.
( remove that extra line/tab <-- i forget which it was :) )

then rezip and your set :D

Original comment by mcheng...@gmail.com on 24 Aug 2009 at 7:57

GoogleCodeExporter commented 9 years ago
Thanks, that did it.

Original comment by flynn...@gmail.com on 25 Aug 2009 at 2:39

GoogleCodeExporter commented 9 years ago
Thats so weird that an extra line will throw off the egg, but running it 
directly in
the bin folder in the working copy will work just fine. Regardless, the tgz has 
been
updated and is working with easy_install

Original comment by justquick on 26 Aug 2009 at 10:07