Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'list' object has no attribute 'startswith' #43

Open
DiyuanLu opened this issue Feb 1, 2018 · 0 comments
Open

AttributeError: 'list' object has no attribute 'startswith' #43

DiyuanLu opened this issue Feb 1, 2018 · 0 comments

Comments

@DiyuanLu
Copy link

DiyuanLu commented Feb 1, 2018

Exception in thread QueueRunnerThread-fifo_queue-fifo_queue_enqueue:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "load_audio_template.py", line 125, in _run
self.func(sess, enqueue_op) # call enqueue function
File "load_audio_template.py", line 72, in enqueue_func
data = func(sess.run(inputs))
File "load_audio_template.py", line 183, in get_audio_spectrograms
_spectrogram, _magnitude, _length = utils.get_spectrograms(_sound_file)
File "utils.py", line 40, in get_spectrograms
y, sr = librosa.load(sound_file, sr=hp.sr) # or set sr to hp.sr.
File "/home/elu/.local/lib/python2.7/site-packages/librosa/core/audio.py", line 107, in load
with audioread.audio_open(os.path.realpath(path)) as input_file:
File "/usr/lib/python2.7/posixpath.py", line 375, in realpath
path, ok = _joinrealpath('', filename, {})
File "/usr/lib/python2.7/posixpath.py", line 381, in _joinrealpath
if isabs(rest):
File "/usr/lib/python2.7/posixpath.py", line 54, in isabs
return s.startswith('/')
AttributeError: 'list' object has no attribute 'startswith'

I got this error when I run the load_data module.
Anyone knows how to solve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant