tryolabs/luminoth

Non-ASCII filenames

Opened this issue · 0 comments

Luminoth cannot handle non-ASCII filename characters.
Build from 15-Dec-2018, Python 2.7.15rc1.
File: äöüéè023.jpg:
Traceback (most recent call last):
File "/home/dennis/.autotag/bin/lumi", line 11, in
load_entry_point('luminoth', 'console_scripts', 'lumi')()
File "/home/dennis/.autotag/local/lib/python2.7/site-packages/click/core.py", line 722, in call
return self.main(*args, **kwargs)
File "/home/dennis/.autotag/local/lib/python2.7/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/home/dennis/.autotag/local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/dennis/.autotag/local/lib/python2.7/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/dennis/.autotag/local/lib/python2.7/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/home/dennis/pve/buildlum/luminoth/luminoth/predict.py", line 270, in predict
) if save_media_to else None
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-4: ordinal not in range(128)