ankitshah009 / Task-4-Large-scale-weakly-supervised-sound-event-detection-for-smart-cars

Task 4 Large-scale weakly supervised sound event detection for smart cars
http://www.cs.tut.fi/sgn/arg/dcase2017/challenge/task-large-scale-sound-event-detection
Other
64 stars 31 forks source link

Unicode Error #14

Closed dannyheard7 closed 7 years ago

dannyheard7 commented 7 years ago

Running with defaults on Scientific Linux 6.9, I am getting this encoding error when dowloading the files

[I]   Evaluator

[I]     Save path            : system/task4/evaluator

Files                    :   0%|                      | 0/51660 [00:00<?, ?it/s]

'latin-1' codec can't encode characters in position 33-37: ordinal not in range(256)
ankitshah009 commented 7 years ago

@dannyheard7, Thanks for sharing the issue. We have tested in Ubuntu based Linux environment where the above issue was not encountered. We need more details to understand the error. In the meanwhile, to proceed further review the Alternate download method in the README to obtain the datasets.

dannyheard7 commented 7 years ago

Full Trace:

  File "/home/aca14dh/DCASE/DCASE-Task4/DCASE2017-baseline-system/dcase_framework/datasets.py", line 742, in download_packages
    data=None
  File "/home/aca14dh/.conda/envs/python2/lib/python2.7/urllib.py", line 98, in urlretrieve
    return opener.retrieve(url, filename, reporthook, data)
  File "/home/aca14dh/.conda/envs/python2/lib/python2.7/urllib.py", line 280, in retrieve
    reporthook(blocknum, bs, size)
  File "/home/aca14dh/DCASE/DCASE-Task4/DCASE2017-baseline-system/dcase_framework/datasets.py", line 722, in inner
    t.update((b - last_b[0]) * bsize)
  File "/home/aca14dh/.conda/envs/python2/lib/python2.7/site-packages/tqdm/_tqdm.py", line 992, in update
    self.sp(self.__repr__())
  File "/home/aca14dh/.conda/envs/python2/lib/python2.7/site-packages/tqdm/_tqdm.py", line 198, in print_status
    fp_write('\r' + s + (' ' * max(last_len[0] - len_s, 0)))
  File "/home/aca14dh/.conda/envs/python2/lib/python2.7/site-packages/tqdm/_tqdm.py", line 191, in fp_write
    fp.write(_unicode(s))
UnicodeEncodeError: 'latin-1' codec can't encode character u'\u258f' in position'latin-1' codec can't encode character u'\u258f' in position 48: ordinal not in range(256)
dannyheard7 commented 7 years ago

Enable use_ascii_progress_bar in task4.defaults.yaml