All pastes #29082 Raw Edit

Someone

public text v1 · immutable
#29082 ·published 2005-11-18 01:09 UTC
rendered paste body
-----------error log ------------------------------------------------
Traceback (most recent call last):
  File "test1.py", line 8, in ?
    e = ECA_CONTROL_INTERFACE(debuglevel)
  File "/usr/lib/python2.3/site-packages/ecacontrol.py", line 36, in __init__
    I.initialize()
  File "/usr/lib/python2.3/site-packages/ecacontrol.py", line 154, in initialize
    if float(version[s+10:s+13])>=2.2:
ValueError: empty string for float()
-----------error log ------------------------------------------------

---------------test1.py --------------------------
#!/usr/bin/env python

import sys

from pyeca import *
debuglevel = 1

e = ECA_CONTROL_INTERFACE(debuglevel)
---------------test1.py--------------------

------------test1.sh-----------------
#!/bin/bash

ECASOUND=/usr/bin/ecasound
basedir=$HOME
recorder_log=test1.`date +%Y%m%d.%H%M`

#python test1_stresstest.py > $basedir/logs/$recorder_log  2>&1
python test1.py > $basedir/logs/$recorder_log  2>&1

------------test1.sh-----------------

when run from the command line this is the expected output 

-->python test1.py
********************************************************************************
*                 ecasound v2.4.1 (C) 1997-2005 Kai Vehmanen
********************************************************************************

Native python ECI (ecasound control interface) implementation

   Can be used to replace the C implementation 'pyecasound.so'.

by Kai Vehmanen, Eric S. Tiedemann and Janne Halttunen.

(to get rid of this message, pass zero to instance init)