[Bug 462603] New: capisuite 0.4.5 error in cs_helper.py sox related
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.
https://bugzilla.novell.com/show_bug.cgi?id=462603
User christian.fertig@consense-service.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=462603#c1
Christian Fertig
https://bugzilla.novell.com/show_bug.cgi?id=462603
Karsten Keil
https://bugzilla.novell.com/show_bug.cgi?id=462603
User kkeil@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=462603#c2
Karsten Keil
https://bugzilla.novell.com/show_bug.cgi?id=462603
User christian.fertig@consense-service.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=462603#c3
Christian Fertig
https://bugzilla.novell.com/show_bug.cgi?id=462603
User kkeil@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=462603#c4
--- Comment #4 from Karsten Keil
https://bugzilla.novell.com/show_bug.cgi?id=462603
User brunofr@ioda.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=462603#c5
--- Comment #5 from Bruno Friedmann
https://bugzilla.novell.com/show_bug.cgi?id=462603
User kkeil@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=462603#c6
--- Comment #6 from Karsten Keil
https://bugzilla.novell.com/show_bug.cgi?id=462603
User brunofr@ioda.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=462603#c7
--- Comment #7 from Bruno Friedmann
https://bugzilla.novell.com/show_bug.cgi?id=462603
User kkeil@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=462603#c8
--- Comment #8 from Karsten Keil
import sys; print sys.version[:3] File "<stdin>", line 1 import sys; print sys.version[:3] ^ SyntaxError: invalid syntax
-- 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.
https://bugzilla.novell.com/show_bug.cgi?id=462603
User kkeil@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=462603#c9
--- Comment #9 from Karsten Keil
https://bugzilla.novell.com/show_bug.cgi?id=462603
User brunofr@ioda.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=462603#c11
Bruno Friedmann
https://bugzilla.novell.com/show_bug.cgi?id=462603
User kkeil@linux-pingi.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=462603#c13
Karsten Keil
https://bugzilla.novell.com/show_bug.cgi?id=462603
User ast@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=462603#c14
Anja Stock
https://bugzilla.novell.com/show_bug.cgi?id=462603
Karsten Keil
participants (1)
-
bugzilla_noreply@novell.com