NameError: name 'inv_input_device_indices' is not defined
Ah. This would appear to be a sound card issue. Is any scanner or audio plugged into the computer, or did you just try setting up the software and starting it? If there is nothing plugged into the computer try plugging something - scanner patch cable, any pair of headphones, an old 3.5mm (1/8") stereo jack by itself - into the microphone or line in jack. See if the computer recognizes it in the sound control panel as an input source. Then try relaunching the software. If that doesn't work we will need to see why the computer / TTD is not detecting an audio input device.
Sometimes the new "intelligent" drivers try to disable the inputs if nothing is plugged in. Had this happen on an HP machine. Have to leave an old headphone cable plugged into the speaker port just so the soundcard driver thinks there is an output device connected. Otherwise TTD would crash as well. Check both and try again.