beets icon indicating copy to clipboard operation
beets copied to clipboard

Input/output error

Open youngtrashbag opened this issue 5 months ago • 2 comments

Hello all I encountered this bug while trying to import some music into my library. Maybe this helps with the Development.

/run/user/1000/gvfs/smb-share:server=illmatic.local,share=media/Music/downloads/MF DOOM/Singles/Yee Haw VLS (2003) (4 items)
Tagging:
    MF DOOM - Yee Haw
URL:
    https://musicbrainz.org/release/47b0acd9-b7c0-480e-b521-debe691019b0
(Similarity: 100.0%) (12" Vinyl, 2003, US, Molemen, MR 015)
 * Yee Haw (Instrumental)    -> Yee Haw (instrumental)
 * Is He Ill? (Instrumental) -> Is He Ill? (instrumental)
 


Traceback (most recent call last):
  File "/usr/bin/beet", line 33, in <module>
    sys.exit(load_entry_point('beets==1.6.0', 'console_scripts', 'beet')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/beets/beets/ui/__init__.py", line 1285, in main
    _raw_main(args)
  File "/usr/share/beets/beets/ui/__init__.py", line 1272, in _raw_main
    subcommand.func(lib, suboptions, subargs)
  File "/usr/share/beets/beets/ui/commands.py", line 973, in import_func
    import_files(lib, paths, query)
  File "/usr/share/beets/beets/ui/commands.py", line 943, in import_files
    session.run()
  File "/usr/share/beets/beets/importer.py", line 340, in run
    pl.run_parallel(QUEUE_SIZE)
  File "/usr/share/beets/beets/util/pipeline.py", line 446, in run_parallel
    raise exc_info[1].with_traceback(exc_info[2])
  File "/usr/share/beets/beets/util/pipeline.py", line 358, in run
    self.coro.send(msg)
  File "/usr/share/beets/beets/util/pipeline.py", line 170, in coro
    task = func(*(args + (task,)))
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/beets/beets/importer.py", line 1573, in manipulate_files
    task.finalize(session)
  File "/usr/share/beets/beets/importer.py", line 607, in finalize
    self.cleanup(copy=session.config['copy'],
  File "/usr/share/beets/beets/importer.py", line 635, in cleanup
    self.prune(old_path)
  File "/usr/share/beets/beets/importer.py", line 880, in prune
    util.prune_dirs(os.path.dirname(filename),
  File "/usr/share/beets/beets/util/__init__.py", line 296, in prune_dirs
    match_paths = [bytestring_path(d) for d in os.listdir(directory)]
                                               ^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 5] Input/output error: b'/run/user/1000/gvfs/smb-share:server=illmatic.local,share=media/Music/downloads/MF DOOM/Compilations/DOOM - DOOM! (2010)'

youngtrashbag avatar Jan 18 '24 16:01 youngtrashbag

My best guess here is this isn't a beets problem and is more of a network/samba/filesystem problem. Could be something with special characters (exclamation point?), in which case maybe that could be a beets thing, but this would have come up a lot before if it was.

taylorthurlow avatar Jan 19 '24 05:01 taylorthurlow

My best guess here is this isn't a beets problem and is more of a network/samba/filesystem problem. Could be something with special characters (exclamation point?), in which case maybe that could be a beets thing, but this would have come up a lot before if it was.

I tend to agree: Beets should generally deal with any Unicode characters in file names (there might be some bugs left to iron out). Does this happen repeatedly, or was it a one-off error?

wisp3rwind avatar Jan 27 '24 08:01 wisp3rwind