Uploaded image for project: 'Picard'
  1. Picard
  2. PICARD-1907

Handle WSL (Windows Subsystem for Linux) paths

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2.6.0b1
    • 2.4.1
    • File Move & Rename
    • None
    • Windows 10 with WSL 1

      Adding audio files from a WSL folder (e.g. \\wsl$\Ubuntu\home\navap) results in an invalid/non-existent file path being used to parse the file (C:\Ubuntu\home\navap\01.mp3)

      Error log:

       

      E: 14:55:06,774 util.thread.run:64: Traceback (most recent call last):
      File "site-packages\mutagen_util.py", line 251, in _openfile
      FileNotFoundError: [Errno 2] No such file or directory: C:\\Ubuntu\\home
      navap
      01.mp3'

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
      File "picard\util\thread.py", line 60, in run
      File "picard\file.py", line 171, in _load_check
      File "picard\formats\id3.py", line 259, in _load
      File "picard\formats\id3.py", line 682, in _get_file
      File "site-packages\mutagen_file.py", line 48, in _init_
      File "site-packages\mutagen_util.py", line 155, in wrapper
      File "contextlib.py", line 112, in _enter_
      File "site-packages\mutagen_util.py", line 272, in _openfile
      mutagen.MutagenError: [Errno 2] No such file or directory: 'C:\\Ubuntu\\home
      navap
      01.mp3'

      E: 14:55:06,775 file._loading_finished:189: Guessing format of C:\Ubuntu\home\navap\01.mp3 failed
      Traceback (most recent call last):
      File "picard\file.py", line 187, in _loading_finished
      File "picard\formats\util.py", line 61, in guess_format
      FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Ubuntu\\home
      navap
      01.mp3'

       

      Steps to reproduce would be to have an audio file within a WSL folder (e.g. user home folder) and either:

      • Execute `explorer.exe .` to open Windows Explorer and drag audio files into Picard
      • Browse to \\wsl$\Ubuntu\home\navap within Picard and add audio files

            outsidecontext Philipp Wolfer
            navap Pavan Chander
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                2.6.0b1