Problem with sox call in cs_helpers.py

Bug #381438 reported by Simon N.
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
capisuite (Debian)
Fix Released
Unknown
capisuite (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: capisuite

Ubuntu 9.04 32-bit
Version: capisuite/jaunty uptodate 0.4.5-8ubuntu3

I get an error in /var/log/capisuite.error after a call is received on the answering machine and no mail is sent out:
Thu May 28 20:31:50 2009 Pythonscript 0x922af38: Python traceback: Traceback (most recent call last):
Thu May 28 20:31:50 2009 Pythonscript 0x922af38: Traceback: File "/usr/lib/capisuite/incoming.py", line 76, in callIncoming
Thu May 28 20:31:50 2009 Pythonscript 0x922af38: Traceback: voiceIncoming(call,call_from,call_to,curr_user,config)
Thu May 28 20:31:50 2009 Pythonscript 0x922af38: Traceback: File "/usr/lib/capisuite/incoming.py", line 256, in voiceIncoming
Thu May 28 20:31:50 2009 Pythonscript 0x922af38: Traceback: +"See attached file.\nThe original file was saved to file://"+filename+"\n\n", filename)
Thu May 28 20:31:50 2009 Pythonscript 0x922af38: Traceback: File "/usr/lib/python2.6/dist-packages/cs_helpers.py", line 234, in sendMIMEMail
Thu May 28 20:31:50 2009 Pythonscript 0x922af38: Traceback: raise "conv-error","Error while calling sox. Not installed?"
Thu May 28 20:31:50 2009 Pythonscript 0x922af38: Traceback: TypeError: exceptions must be classes or instances, not str

Bug is in /usr/lib/python2.6/dist-packages/cs_helpers.py where sox is called with parameter -w which dos not work with current sox.
What works for me is calling sox without any parameters:
ret = os.spawnlp(os.P_WAIT,"sox","sox",attachment,basename+"wav")

The solution on http://wiki.ubuntuusers.de/CapiSuite for Ubuntu 7.04 does NOT work for me (-X is not needed -v does not work on this place and is also not needed).

Revision history for this message
Simon N. (simon-ubuntu-sngs) wrote :
Revision history for this message
Hendrik Lönngren (hendrik0) wrote :

Indeed, the patch fixes the problem for me.

Changed in capisuite (Ubuntu):
status: New → Confirmed
Changed in capisuite (Debian):
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.