https://bugzilla.novell.com/show_bug.cgi?id=462603 Summary: capisuite 0.4.5 error in cs_helper.py sox related Product: openSUSE 11.1 Version: Final Platform: 32bit OS/Version: openSUSE 11.1 Status: NEW Severity: Normal Priority: P5 - None Component: ISDN AssignedTo: kkeil@novell.com ReportedBy: brunofr@ioda.net QAContact: qa@suse.de Found By: Consulting With new version of sox (& python) there's some messages which lead to an error raised. error log Thu Dec 25 16:42:00 2008 CapiSuite 0xbffae698: CapiSuite 0.4.5 started. Thu Dec 25 16:42:57 2008 Pythonscript /usr/lib/capisuite/incoming.py,callIncoming,0x826d2e8: A python error occured. See traceback below. Thu Dec 25 16:42:57 2008 Pythonscript 0x826d2e8: Python traceback: Traceback (most recent call last): Thu Dec 25 16:42:57 2008 Pythonscript 0x826d2e8: Traceback: File "/usr/lib/capisuite/incoming.py", line 75, in callIncoming Thu Dec 25 16:42:57 2008 Pythonscript 0x826d2e8: Traceback: voiceIncoming(call,call_from,call_to,curr_user,config) Thu Dec 25 16:42:57 2008 Pythonscript 0x826d2e8: Traceback: File "/usr/lib/capisuite/incoming.py", line 255, in voiceIncoming Thu Dec 25 16:42:57 2008 Pythonscript 0x826d2e8: Traceback: +"See attached file.\nThe original file was saved to file://"+filename+"\n\n", filename) Thu Dec 25 16:42:57 2008 Pythonscript 0x826d2e8: Traceback: File "/usr/lib/python2.6/site-packages/cs_helpers.py", line 234, in sendMIMEMail Thu Dec 25 16:42:57 2008 Pythonscript 0x826d2e8: Traceback: raise "conv-error","Error while calling sox. Not installed?" Thu Dec 25 16:42:57 2008 Pythonscript 0x826d2e8: Traceback: TypeError: exceptions must be classes or instances, not str Thu Dec 25 18:35:27 2008 CapiSuite 0xbffae698: CapiSuite finished. This could be corrected by this line the diff patch extract @@ -229,7 +229,8 @@ elif (mail_type=="la"): # voice file # la -> wav # don't use stdout as sox needs a file to be able to seek in it otherwise the header will be incomplete - ret = os.spawnlp(os.P_WAIT,"sox","sox",attachment,"-w",basename+"wav") + # ret = os.spawnlp(os.P_WAIT,"sox","sox",attachment,"-w",basename+"wav") + ret = os.spawnlp(os.P_WAIT,"sox","sox","-r","8000","-c","1",attachment,basename+"wav") if (ret or not os.access(basename+"wav",os.R_OK)): raise "conv-error","Error while calling sox. Not installed?" filepart = email.MIMEAudio.MIMEAudio(open(basename+"wav").read(),"x-wav",email.Encoders.encode_base64,name=os.path.basename(basename)+"wav") This only correct the call to sox without any warning or message. As I can't to much correct python code. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.