cycloneTiger / pygooglevoice

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

pygooglevoice replacing asterisk binary #20

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.get from mercurial
2.build and install
3.

What is the expected output? What do you see instead?

running install_scripts
copying build/scripts-2.5/gvoice -> /usr/bin
copying build/scripts-2.5/asterisk -> /usr/bin
changing mode of /usr/bin/gvoice to 755
changing mode of /usr/bin/asterisk to 755

What version of the product are you using? On what operating system?

Please provide any additional information below.

the asterisk binary is usually installed in /usr/sbin but not always. In
any event path may be set up to use /usr/bin first:

whereis asterisk
asterisk: /usr/bin/asterisk /usr/sbin/asterisk

Why not just rename script to asterisk-gv-convert? 

Original issue reported on code.google.com by cga...@newharbor.com on 28 Nov 2009 at 11:05

GoogleCodeExporter commented 9 years ago
Eeeew. I hate namespace collisions. Ive already decided to change it to
asterisk-gvoice-setup in the most recent commit and will be releasing it soon 
in v0.5

Original comment by justquick on 29 Nov 2009 at 4:40

GoogleCodeExporter commented 9 years ago
vi setup.py
         scripts = ['bin/gvoice','bin/asterisk-gvoice-setup']#,'bin/gvi']
However, when I use gvoice I get the following error:

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_sc                                                                          

ript
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 1091, in 
run_s                                                                           

cript
    exec script_code in namespace, namespace
  File "/usr/bin/gvoice", line 125, in ?

  File "build/bdist.linux-i686/egg/googlevoice/voice.py", line 88, in call
    # first phone matching forwardingNumber
  File "build/bdist.linux-i686/egg/googlevoice/voice.py", line 198, in 
__valida                                                                        

 te_special_page
    return urlopen(Request(getattr(settings, page) + data, None, headers))
  File "build/bdist.linux-i686/egg/googlevoice/voice.py", line 211, in 
__do_spe                                                                        

 cial_page

  File "build/bdist.linux-i686/egg/googlevoice/voice.py", line 191, in 
__do_pag                                                                        

 e
    Loads a page out of the settings and pass it on to urllib Request
  File "/usr/lib/python2.4/urllib2.py", line 130, in urlopen
    return _opener.open(url, data)
  File "/usr/lib/python2.4/urllib2.py", line 364, in open
    response = meth(req, response)
  File "/usr/lib/python2.4/urllib2.py", line 471, in http_response
    response = self.parent.error(
  File "/usr/lib/python2.4/urllib2.py", line 402, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.4/urllib2.py", line 337, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.4/urllib2.py", line 480, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 500: Internal Server Error

Original comment by mark...@gmail.com on 30 Nov 2009 at 4:23