You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any folder with at least one unicode character could not be imported by beets: see following traceback.
Running this command:
$ mkdir 'ithéof/'&& beet -vv import 'ithéof/'
Led to this problem:
user configuration: /home/theophile/.config/beets/config.yaml
data directory: /home/theophile/.config/beets
plugin paths:
Sending event: pluginload
library database: /home/theophile/.config/musiclibrary.db
library directory: /data/music
Sending event: library_opened
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/beets/util/__init__.py", line 362, in bytestring_path
return path.encode(_fsencoding())
UnicodeEncodeError: 'ascii' codec can't encode characters in position 8-9: ordinal not in range(128)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/beet", line 11, in <module>
load_entry_point('beets==1.4.6', 'console_scripts', 'beet')()
File "/usr/lib/python3.6/site-packages/beets/ui/__init__.py", line 1256, in main
_raw_main(args)
File "/usr/lib/python3.6/site-packages/beets/ui/__init__.py", line 1243, in _raw_main
subcommand.func(lib, suboptions, subargs)
File "/usr/lib/python3.6/site-packages/beets/ui/commands.py", line 937, in import_func
import_files(lib, paths, query)
File "/usr/lib/python3.6/site-packages/beets/ui/commands.py", line 889, in import_files
if not os.path.exists(syspath(normpath(path))):
File "/usr/lib/python3.6/site-packages/beets/util/__init__.py", line 143, in normpath
return bytestring_path(path)
File "/usr/lib/python3.6/site-packages/beets/util/__init__.py", line 364, in bytestring_path
return path.encode('utf-8')
UnicodeEncodeError: 'utf-8' codec can't encode characters in position 8-9: surrogates not allowed
Wow; this is very strange! Especially because I'm unable to reproduce the problem here. Does it seem to work if you temporarily set a UTF-8 locale? (For example, export LC_ALL=en_US.UTF-8 might help you experiment.)
sampsyo
added
the
needinfo
We need more details or follow-up from the filer before this can be tagged "bug" or "feature."
label
Jan 16, 2018
Hello! Could you please try out #2803? I can't reproduce this on my dev machine (because macOS forces a UTF-8 locale, I think), but I believe I found the problem.
Problem
Any folder with at least one unicode character could not be imported by beets: see following traceback.
Running this command:
Led to this problem:
Setup
My configuration (output of
beet config
) is:Locale is poorly setup on my system:
may be similar to #2585
The text was updated successfully, but these errors were encountered: