I’ve stumbled upon a bug seemingly related to the use of the os.replace
function and the import: move
option, as using the copy
option instead fixes the bug.
Note that the same config was working correctly with a previous install which ran on Python 3.7.
Here is the full bug:
Traceback (most recent call last):
File "C:\Users\hydro\anaconda3\lib\site-packages\beets\util\__init__.py", line 496, in move
os.replace(path, dest)
OSError: [WinError 17] The system cannot move the file to a different disk drive: '\\\\?\\C:\\Users\\hydro\\AppData\\Local\\Temp\\tmp02lvwxx1.flac' -> '\\\\?\\M:\\Musique lossless\\Ancient Methods\\2021 - The Jericho Remixes\\01 Swordplay (Hypnoskull vocal remix).flac'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\hydro\anaconda3\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\hydro\anaconda3\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\hydro\anaconda3\Scripts\beet.exe\__main__.py", line 7, in <module>
File "C:\Users\hydro\anaconda3\lib\site-packages\beets\ui\__init__.py", line 1285, in main
_raw_main(args)
File "C:\Users\hydro\anaconda3\lib\site-packages\beets\ui\__init__.py", line 1272, in _raw_main
subcommand.func(lib, suboptions, subargs)
File "C:\Users\hydro\anaconda3\lib\site-packages\beets\ui\commands.py", line 973, in import_func
import_files(lib, paths, query)
File "C:\Users\hydro\anaconda3\lib\site-packages\beets\ui\commands.py", line 943, in import_files
session.run()
File "C:\Users\hydro\anaconda3\lib\site-packages\beets\importer.py", line 340, in run
pl.run_parallel(QUEUE_SIZE)
File "C:\Users\hydro\anaconda3\lib\site-packages\beets\util\pipeline.py", line 446, in run_parallel
raise exc_info[1].with_traceback(exc_info[2])
File "C:\Users\hydro\anaconda3\lib\site-packages\beets\util\pipeline.py", line 358, in run
self.coro.send(msg)
File "C:\Users\hydro\anaconda3\lib\site-packages\beets\util\pipeline.py", line 170, in coro
task = func(*(args + (task,)))
File "C:\Users\hydro\anaconda3\lib\site-packages\beets\importer.py", line 1566, in manipulate_files
task.manipulate_files(
File "C:\Users\hydro\anaconda3\lib\site-packages\beets\importer.py", line 757, in manipulate_files
item.move(operation)
File "C:\Users\hydro\anaconda3\lib\site-packages\beets\library.py", line 922, in move
self.move_file(dest, operation)
File "C:\Users\hydro\anaconda3\lib\site-packages\beets\library.py", line 821, in move_file