cycloneTiger / pygooglevoice

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

gvoiceony works as root for me and I cant tell why.. #32

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
If I run gvoice as root it can make calls fine.. but if I run it as any
user I get the error:

Traceback (most recent call last):
  File "/usr/bin/gvoice", line 5, in <module>
    pkg_resources.run_script('pygooglevoice==0.5', '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 1173, in
run_script
    exec script_code in namespace, namespace
  File
"/usr/lib/python2.6/site-packages/pygooglevoice-0.5-py2.6.egg/EGG-INFO/scripts/g
voice",
line 79, in <module>

  File
"/usr/lib/python2.6/site-packages/pygooglevoice-0.5-py2.6.egg/EGG-INFO/scripts/g
voice",
line 49, in login

  File "build/bdist.linux-x86_64/egg/googlevoice/voice.py", line 68, in login
  File "build/bdist.linux-x86_64/egg/googlevoice/voice.py", line 203, in
__do_page
  File "/usr/lib64/python2.6/urllib2.py", line 124, in urlopen
    return _opener.open(url, data, timeout)
  File "/usr/lib64/python2.6/urllib2.py", line 383, in open
    response = self._open(req, data)
  File "/usr/lib64/python2.6/urllib2.py", line 401, in _open
    '_open', req)
  File "/usr/lib64/python2.6/urllib2.py", line 361, in _call_chain
    result = func(*args)
  File "/usr/lib64/python2.6/urllib2.py", line 1138, in https_open
    return self.do_open(httplib.HTTPSConnection, req)
  File "/usr/lib64/python2.6/urllib2.py", line 1105, in do_open
    raise URLError(err)
urllib2.URLError: <urlopen error [Errno 0] Error>

any assistance would be greatly appreciate..  tried both stable, and
bleeding edge code according to
http://sphinxdoc.github.com/pygooglevoice/install.html

Original issue reported on code.google.com by netnut...@gmail.com on 10 Jan 2010 at 5:21

GoogleCodeExporter commented 9 years ago
I'm having a similar issue. Can run fine as root. As soon as I try as user 
asterisk
it craps out. It seems to be a permissions problem, but I can't figure it out 
from
the error output. Here is what I get when trying to run the gvoice command as 
user
asterisk:

Traceback (most recent call last):
  File "/usr/bin/gvoice", line 7, in ?
    pkg_resources.run_script('pygooglevoice==0.5', '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 129, in ?

  File "build/bdist.linux-i686/egg/googlevoice/voice.py", line 99, in call
  File "build/bdist.linux-i686/egg/googlevoice/conf.py", line 39, in phoneType
  File "build/bdist.linux-i686/egg/googlevoice/conf.py", line 30, in get
  File "/usr/lib/python2.4/ConfigParser.py", line 506, in get
    d = self._defaults.copy()
AttributeError: Config instance has no attribute '_defaults'
Logging out of voice...

Original comment by jhbori...@gmail.com on 11 Mar 2010 at 5:03

GoogleCodeExporter commented 9 years ago
I was getting the AttributeError: Config instance has no attribute '_defaults', 
too.

I wasn't specifying the phoneType on the gvoice command line, after the two 
phone
numbers.

1 (for home) in my case

Original comment by tndo...@gmail.com on 27 Apr 2010 at 3:05