Skip to content
This repository was archived by the owner on May 26, 2021. It is now read-only.
This repository was archived by the owner on May 26, 2021. It is now read-only.

TypeError: 'bool' object is not iterable #14

@MrHobbits

Description

@MrHobbits

Hi, fair warning, I'm new to this module and I think I'm understanding it well enough by your examples to get it going. Please correct me if I'm not using it right.

My intention is to analyze the sample file you provided on the docs page (small_audio.wav), but when I run this using python 3.6 I get this error:

Traceback (most recent call last):
  File "times.py", line 5, in <module>
    indexer.index_audio(basename ='small_audio.wav')
  File "/home/mrhobbits/.local/lib/python3.6/site-packages/SimpleAudioIndexer/__init__.py", line 1108, in index_audio
    self._index_audio_ibm(*args, **kwargs)
  File "/home/mrhobbits/.local/lib/python3.6/site-packages/SimpleAudioIndexer/__init__.py", line 953, in _index_audio_ibm
    self._timestamp_regulator()
  File "/home/mrhobbits/.local/lib/python3.6/site-packages/SimpleAudioIndexer/__init__.py", line 1167, in _timestamp_regulator
    timestamp_basename][0]
TypeError: 'bool' object is not iterable

Here is the code I'm using, it doesn't get past the 4th line, so the rest is omitted.

from SimpleAudioIndexer import SimpleAudioIndexer as sai
indexer = sai(mode="ibm", src_dir="/home/mrhobbits/programming/pythonStuff/recordSpeakerAudio",
username_ibm="", password_ibm="")
indexer.index_audio(basename ='small_audio.wav')

Directory information:

mrhobbits@hobbits:~/programming/pythonStuff/recordSpeakerAudio$ ls -1
small_audio.wav
times.py
mrhobbits@hobbits:~/programming/pythonStuff/recordSpeakerAudio$ pwd
/home/mrhobbits/programming/pythonStuff/recordSpeakerAudio

System: Ubuntu 18.04.4 LTS
Python version(s) 3.6 and 3.7
SAI version: 1.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions