[BUG] PermissionError [WinError 32] The Process Cannot the file because it is being used by another process
Describe the bug
Any rip url.com and it first fails to grab all the tracks with a TypeError that not all argument converted during string formatting and then when I rerun it - it gives me a runtime error: coroutine 'Playlist.download. was never awaited.'
It seems to be stuck on trying to download a jpg artwork cover. Not sure how to close this other process. Debug is too long for this form.
Command Used
rip url https://tidal.com/browse/playlist/644505c5-bafa-46db-a517-23c7390d6501
Debug Traceback
` │ │
│ │
│ 25 def coro(f): │
│ 26 │ @wraps(f) │
│ 27 │ def wrapper(*args, **kwargs): │
│ ❱ 28 │ │ return asyncio.run(f(*args, **kwargs)) │
│ 29 │ │
│ 30 │ return wrapper │
│ 31 │
│ │
│ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │
│ │ args = (<click.core.Context object at 0x000001E6FCE5AC90>,) │ │
│ │ f = <function url at 0x000001E680DDAA20> │ │
│ │ kwargs = { │ │
│ │ │ 'urls': ( │ │
│ │ │ │ 'https://tidal.com/browse/playlist/644505c5-bafa-46db-a517-23c7390d6501', │ │
│ │ │ ) │ │
│ │ } │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
│ │
│ C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py:190 in run │
│ │
│ 187 │ │ │ "asyncio.run() cannot be called from a running event loop") │
│ 188 │ │
│ 189 │ with Runner(debug=debug) as runner: │
│ ❱ 190 │ │ return runner.run(main) │
│ 191 │
│ 192 │
│ 193 def _cancel_all_tasks(loop): │
│ │
│ ╭──────────────────────────── locals ────────────────────────────╮ │
│ │ debug = None │ │
│ │ main = <coroutine object url at 0x000001E680CC39A0> │ │
│ │ runner = <asyncio.runners.Runner object at 0x000001E680DF6890> │ │
│ ╰────────────────────────────────────────────────────────────────╯ │
│ │
│ C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py:118 in run │
│ │
│ 115 │ │ │
│ 116 │ │ self._interrupt_count = 0 │
│ 117 │ │ try: │
│ ❱ 118 │ │ │ return self._loop.run_until_complete(task) │
│ 119 │ │ except exceptions.CancelledError: │
│ 120 │ │ │ if self._interrupt_count > 0: │
│ 121 │ │ │ │ uncancel = getattr(task, "uncancel", None) │
│ │
│ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │
│ │ context = <_contextvars.Context object at 0x000001E68088A740> │ │
│ │ coro = <coroutine object url at 0x000001E680CC39A0> │ │
│ │ self = <asyncio.runners.Runner object at 0x000001E680DF6890> │ │
│ │ sigint_handler = functools.partial(<bound method Runner._on_sigint of │ │
│ │ <asyncio.runners.Runner object at 0x000001E680DF6890>>, main_task=<Task │ │
│ │ finished name='Task-1' coro=<url() done, defined at │ │
│ │ C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\s… │ │
│ │ exception=PermissionError(13, 'The process cannot access the file because │ │
│ │ it is being used by another process')>) │ │
│ │ task = <Task finished name='Task-1' coro=<url() done, defined at │ │
│ │ C:\Users\Mikey\AppData\Local\Programs\Python\Python311\Lib\site-packages\s… │ │
│ │ exception=PermissionError(13, 'The process cannot access the file because │ │
│ │ it is being used by another process')> │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
│ │
│ C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py:654 in │
│ run_until_complete │
│ │
│ 651 │ │ if not future.done(): │
│ 652 │ │ │ raise RuntimeError('Event loop stopped before Future completed.') │
│ 653 │ │ │
│ ❱ 654 │ │ return future.result() │
│ 655 │ │
│ 656 │ def stop(self): │
│ 657 │ │ """Stop running the event loop. │
│ │
│ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │
│ │ future = <Task finished name='Task-1' coro=<url() done, defined at │ │
│ │ C:\Users\Mikey\AppData\Local\Programs\Python\Python311\Lib\site-packages\streamr… │ │
│ │ exception=PermissionError(13, 'The process cannot access the file because it is │ │
│ │ being used by another process')> │ │
│ │ new_task = False │ │
│ │ self = <ProactorEventLoop running=False closed=True debug=False> │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
│ │
│ C:\Users\Mikey\AppData\Local\Programs\Python\Python311\Lib\site-packages\streamrip\rip\cli.py:16 │
│ 5 in url │
│ │
│ 162 │ │ else: │
│ 163 │ │ │ version_coro = None │
│ 164 │ │ │
│ ❱ 165 │ │ async with Main(cfg) as main: │
│ 166 │ │ │ await main.add_all(urls) │
│ 167 │ │ │ await main.resolve() │
│ 168 │ │ │ await main.rip() │
│ │
│ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │
│ │ cfg = <streamrip.config.Config object at 0x000001E680E01C50> │ │
│ │ ctx = <click.core.Context object at 0x000001E6FCE5AC90> │ │
│ │ main = <streamrip.rip.main.Main object at 0x000001E680E54E50> │ │
│ │ updates = True │ │
│ │ urls = ('https://tidal.com/browse/playlist/644505c5-bafa-46db-a517-23c7390d6501',) │ │
│ │ version_coro = <Task finished name='Task-2' coro=<latest_streamrip_version() done, defined │ │
│ │ at │ │
│ │ C:\Users\Mikey\AppData\Local\Programs\Python\Python311\Lib\site-packages\str… │ │
│ │ result=('2.0.5', None)> │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
│ │
│ C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\streamrip\rip\main.py:2 │
│ 89 in __aexit__ │
│ │
│ 286 │ │ # We remove artwork tempdirs here because multiple singles │
│ 287 │ │ # may be able to share downloaded artwork in the same `rip` session │
│ 288 │ │ # We don't know that a cover will not be used again until end of execution │
│ ❱ 289 │ │ remove_artwork_tempdirs() │
│ 290 │
│ │
│ ╭─────────────────────────────────────── locals ───────────────────────────────────────╮ │
│ │ _ = ( │ │
│ │ │ <class 'TypeError'>, │ │
│ │ │ TypeError('not all arguments converted during string formatting'), │ │
│ │ │ <traceback object at 0x000001E6827DB140> │ │
│ │ ) │ │
│ │ client = <streamrip.client.soundcloud.SoundcloudClient object at 0x000001E681017AD0> │ │
│ │ self = <streamrip.rip.main.Main object at 0x000001E680E54E50> │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────╯ │
│ │
│ C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\streamrip\media\artwork │
│ .py:22 in remove_artwork_tempdirs │
│ │
│ 19 │ logger.debug("Removing dirs %s", _artwork_tempdirs) │
│ 20 │ for path in _artwork_tempdirs: │
│ 21 │ │ try: │
│ ❱ 22 │ │ │ shutil.rmtree(path) │
│ 23 │ │ except FileNotFoundError: │
│ 24 │ │ │ pass │
│ 25 │
│ │
│ ╭───────────────────────────────────── locals ─────────────────────────────────────╮ │
│ │ path = 'C:\\Users\\User\\StreamripDownloads\\Best Opening Rap Lines\\__artwork' │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────╯ │
│ │
│ C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\shutil.py:787 in rmtree │
│ │
│ 784 │ │ │ onerror(os.path.islink, path, sys.exc_info()) │
│ 785 │ │ │ # can't continue even if onerror hook returns │
│ 786 │ │ │ return │
│ ❱ 787 │ │ return _rmtree_unsafe(path, onerror) │
│ 788 │
│ 789 # Allow introspection of whether or not the hardening against symlink │
│ 790 # attacks is supported on the current platform │
│ │
│ ╭───────────────────────────────────────── locals ──────────────────────────────────────────╮ │
│ │ dir_fd = None │ │
│ │ ignore_errors = False │ │
│ │ onerror = <function rmtree.<locals>.onerror at 0x000001E680DFE8E0> │ │
│ │ path = 'C:\\Users\\User\\StreamripDownloads\\Best Opening Rap Lines\\__artwork' │ │
│ ╰───────────────────────────────────────────────────────────────────────────────────────────╯ │
│ │
│ C:\Users\Mikey\AppData\Local\Programs\Python\Python311\Lib\shutil.py:634 in _rmtree_unsafe │
│ │
│ 631 │ │ │ try: │
│ 632 │ │ │ │ os.unlink(fullname) │
│ 633 │ │ │ except OSError: │
│ ❱ 634 │ │ │ │ onerror(os.unlink, fullname, sys.exc_info()) │
│ 635 │ try: │
│ 636 │ │ os.rmdir(path) │
│ 637 │ except OSError: │
│ │
│ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │
│ │ entries = [ │ │
│ │ │ <DirEntry 'cover-2234636850216066158.jpg'>, │ │
│ │ │ <DirEntry 'cover-3166517830994939440.jpg'>, │ │
│ │ │ <DirEntry 'cover-4063778968654533076.jpg'>, │ │
│ │ │ <DirEntry 'cover-4596876979481131603.jpg'>, │ │
│ │ │ <DirEntry 'cover-5290791573362653355.jpg'>, │ │
│ │ │ <DirEntry 'cover-5874845255123284239.jpg'>, │ │
│ │ │ <DirEntry 'cover-6144707510728072144.jpg'>, │ │
│ │ │ <DirEntry 'cover-6506602744963449558.jpg'>, │ │
│ │ │ <DirEntry 'cover-7149255997319334715.jpg'>, │ │
│ │ │ <DirEntry 'cover-7337354242132422235.jpg'>, │ │
│ │ │ ... +13 │ │
│ │ ] │ │
│ │ entry = <DirEntry 'cover-4063778968654533076.jpg'> │ │
│ │ fullname = 'C:\\Users\\Mikey\\StreamripDownloads\\Best Opening Rap │ │
│ │ Lines\\__artwork\\cover-4063778'+16 │ │
│ │ onerror = <function rmtree.<locals>.onerror at 0x000001E680DFE8E0> │ │
│ │ path = 'C:\\Users\\Mikey\\StreamripDownloads\\Best Opening Rap Lines\\__artwork' │ │
│ │ scandir_it = <nt.ScandirIterator object at 0x000001E681DD7A60> │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
│ │
│ C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\shutil.py:632 in _rmtree_unsafe │
│ │
│ 629 │ │ │ _rmtree_unsafe(fullname, onerror) │
│ 630 │ │ else: │
│ 631 │ │ │ try: │
│ ❱ 632 │ │ │ │ os.unlink(fullname) │
│ 633 │ │ │ except OSError: │
│ 634 │ │ │ │ onerror(os.unlink, fullname, sys.exc_info()) │
│ 635 │ try: │
│ │
│ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │
│ │ entries = [ │ │
│ │ │ <DirEntry 'cover-2234636850216066158.jpg'>, │ │
│ │ │ <DirEntry 'cover-3166517830994939440.jpg'>, │ │
│ │ │ <DirEntry 'cover-4063778968654533076.jpg'>, │ │
│ │ │ <DirEntry 'cover-4596876979481131603.jpg'>, │ │
│ │ │ <DirEntry 'cover-5290791573362653355.jpg'>, │ │
│ │ │ <DirEntry 'cover-5874845255123284239.jpg'>, │ │
│ │ │ <DirEntry 'cover-6144707510728072144.jpg'>, │ │
│ │ │ <DirEntry 'cover-6506602744963449558.jpg'>, │ │
│ │ │ <DirEntry 'cover-7149255997319334715.jpg'>, │ │
│ │ │ <DirEntry 'cover-7337354242132422235.jpg'>, │ │
│ │ │ ... +13 │ │
│ │ ] │ │
│ │ entry = <DirEntry 'cover-4063778968654533076.jpg'> │ │
│ │ fullname = 'C:\\Users\\Mikey\\StreamripDownloads\\Best Opening Rap │ │
│ │ Lines\\__artwork\\cover-4063778'+16 │ │
│ │ onerror = <function rmtree.<locals>.onerror at 0x000001E680DFE8E0> │ │
│ │ path = 'C:\\Users\\Mikey\\StreamripDownloads\\Best Opening Rap Lines\\__artwork' │ │
│ │ scandir_it = <nt.ScandirIterator object at 0x000001E681DD7A60> │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process:
'C:\\Users\\Mikey\\StreamripDownloads\\Best Opening Rap Lines\\__artwork\\cover-4063778968654533076.jpg'
sys:1: RuntimeWarning: coroutine 'Playlist.download.<locals>._resolve_download' was never awaited``
Config File
[downloads]
# Folder where tracks are downloaded to
folder = "C:\\Users\\USER\\StreamripDownloads"
# Put Qobuz albums in a 'Qobuz' folder, Tidal albums in 'Tidal' etc.
source_subdirectories = false
# Download (and convert) tracks all at once, instead of sequentially.
# If you are converting the tracks, or have fast internet, this will
# substantially improve processing speed.
concurrency = true
# The maximum number of tracks to download at once
# If you have very fast internet, you will benefit from a higher value,
# A value that is too high for your bandwidth may cause slowdowns
# Set to -1 for no limit
max_connections = 6
# Max number of API requests per source to handle per minute
# Set to -1 for no limit
requests_per_minute = 60
[qobuz]
# 1: 320kbps MP3, 2: 16/44.1, 3: 24/<=96, 4: 24/>=96
quality = 3
# This will download booklet pdfs that are included with some albums
download_booklets = true
# Authenticate to Qobuz using auth token? Value can be true/false only
use_auth_token = false
# Enter your userid if the above use_auth_token is set to true, else enter your email
email_or_userid = ""
# Enter your auth token if the above use_auth_token is set to true, else enter the md5 hash of your plaintext password
password_or_token = ""
# Do not change
app_id = ""
# Do not change
secrets = []
[tidal]
# 0: 256kbps AAC, 1: 320kbps AAC, 2: 16/44.1 "HiFi" FLAC, 3: 24/44.1 "MQA" FLAC
quality = 3
# This will download videos included in Video Albums.
download_videos = true
# Do not change any of the fields below
user_id = 197620226
country_code = "CA"
access_token = "X"
refresh_token = "y"
# Tokens last 1 week after refresh. This is the Unix timestamp of the expiration
# time. If you haven't used streamrip in more than a week, you may have to log
# in again using `rip config --tidal`
token_expiry = 1710142182.8652747
[deezer]
# 0, 1, or 2
# This only applies to paid Deezer subscriptions. Those using deezloader
# are automatically limited to quality = 1
quality = 2
# An authentication cookie that allows streamrip to use your Deezer account
# See https://github.com/nathom/streamrip/wiki/Finding-Your-Deezer-ARL-Cookie
# for instructions on how to find this
arl = ""
# This allows for free 320kbps MP3 downloads from Deezer
# If an arl is provided, deezloader is never used
use_deezloader = true
# This warns you when the paid deezer account is not logged in and rip falls
# back to deezloader, which is unreliable
deezloader_warnings = true
[soundcloud]
# Only 0 is available for now
quality = 0
# This changes periodically, so it needs to be updated
client_id = ""
app_version = ""
[youtube]
# Only 0 is available for now
quality = 0
# Download the video along with the audio
download_videos = false
# The path to download the videos to
video_downloads_folder = "C:\\Users\\User\\StreamripDownloads\\YouTubeVideos"
[database]
# Create a database that contains all the track IDs downloaded so far
# Any time a track logged in the database is requested, it is skipped
# This can be disabled temporarily with the --no-db flag
downloads_enabled = true
# Path to the downloads database
downloads_path = "C:\\Users\\User\\AppData\\Roaming\\streamrip\\downloads.db"
# If a download fails, the item ID is stored here. Then, `rip repair` can be
# called to retry the downloads
failed_downloads_enabled = true
failed_downloads_path = "C:\\Users\\User\\AppData\\Roaming\\streamrip\\failed_downloads.db"
# Convert tracks to a codec after downloading them.
[conversion]
enabled = false
# FLAC, ALAC, OPUS, MP3, VORBIS, or AAC
codec = "ALAC"
# In Hz. Tracks are downsampled if their sampling rate is greater than this.
# Value of 48000 is recommended to maximize quality and minimize space
sampling_rate = 48000
# Only 16 and 24 are available. It is only applied when the bit depth is higher
# than this value.
bit_depth = 24
# Only applicable for lossy codecs
lossy_bitrate = 320
# Filter a Qobuz artist's discography. Set to 'true' to turn on a filter.
# This will also be applied to other sources, but is not guaranteed to work correctly
[qobuz_filters]
# Remove Collectors Editions, live recordings, etc.
extras = false
# Picks the highest quality out of albums with identical titles.
repeats = false
# Remove EPs and Singles
non_albums = false
# Remove albums whose artist is not the one requested
features = false
# Skip non studio albums
non_studio_albums = false
# Only download remastered albums
non_remaster = false
[artwork]
# Write the image to the audio file
embed = true
# The size of the artwork to embed. Options: thumbnail, small, large, original.
# "original" images can be up to 30MB, and may fail embedding.
# Using "large" is recommended.
embed_size = "large"
# If this is set to a value > 0, max(width, height) of the embedded art will be set to this value in pixels
# Proportions of the image will remain the same
embed_max_width = -1
# Save the cover image at the highest quality as a seperate jpg file
save_artwork = true
# If this is set to a value > 0, max(width, height) of the saved art will be set to this value in pixels
# Proportions of the image will remain the same
saved_max_width = -1
[metadata]
# Sets the value of the 'ALBUM' field in the metadata to the playlist's name.
# This is useful if your music library software organizes tracks based on album name.
set_playlist_to_album = true
# If part of a playlist, sets the `tracknumber` field in the metadata to the track's
# position in the playlist instead of its position in its album
renumber_playlist_tracks = true
# The following metadata tags won't be applied
# See https://github.com/nathom/streamrip/wiki/Metadata-Tag-Names for more info
exclude = []
# Changes the folder and file names generated by streamrip.
[filepaths]
# Create folders for single tracks within the downloads directory using the folder_format
# template
add_singles_to_folder = false
# Available keys: "albumartist", "title", "year", "bit_depth", "sampling_rate",
# "id", and "albumcomposer"
folder_format = "{albumartist} - {title} ({year}) [{container}] [{bit_depth}B-{sampling_rate}kHz]"
# Available keys: "tracknumber", "artist", "albumartist", "composer", "title",
# and "albumcomposer", "explicit"
track_format = "{tracknumber:02}. {artist} - {title}{explicit}"
# Only allow printable ASCII characters in filenames.
restrict_characters = false
# Truncate the filename if it is greater than this number of characters
# Setting this to false may cause downloads to fail on some systems
truncate_to = 120
# Last.fm playlists are downloaded by searching for the titles of the tracks
[lastfm]
# The source on which to search for the tracks.
source = "qobuz"
# If no results were found with the primary source, the item is searched for
# on this one.
fallback_source = ""
[cli]
# Print "Downloading {Album name}" etc. to screen
text_output = true
# Show resolve, download progress bars
progress_bars = true
# The maximum number of search results to show in the interactive menu
max_search_results = 100
[misc]
# Metadata to identify this config file. Do not change.
version = "2.0.3"
# Print a message if a new version of streamrip is available
check_for_updates = true
Operating System
Windows 11
streamrip version
2.0.5
Screenshots and recordings
No response
Additional context
No response
I was able to fix it, in my case. I'm not sure its helpful but seems like this error happens when some related co-routine fails? For me it failed because of the copyright tag, I temporarily fixed it locally on metadata/album.py
I also printed the copyright to see what the issue I think it fails when it is set to None.
in album.py
# In from_tidal_playlist_track_resp method I changed
_copyright = typed(resp.get("copyright"), str)
# to
copy = resp.get("copyright")
if copy is not None:
_copyright = typed(copy, str)
else:
_copyright = ""
Here is the complete log
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮ │ C:\Users\zephyr\Code\streamrip\venv\lib\site-packages\streamrip\rip\cli.py:168 in url │ │ │ │ 165 │ │ async with Main(cfg) as main: │ │ 166 │ │ │ await main.add_all(urls) │ │ 167 │ │ │ await main.resolve() │ │ ❱ 168 │ │ │ await main.rip() │ │ 169 │ │ │ │ 170 │ │ if version_coro is not None: │ │ 171 │ │ │ latest_version, notes = await version_coro │ │ │ │ C:\Users\zephyr\Code\streamrip\venv\lib\site-packages\streamrip\rip\main.py:165 in rip │ │ │ │ 162 │ │ │ 163 │ async def rip(self): │ │ 164 │ │ """Download all resolved items.""" │ │ ❱ 165 │ │ await asyncio.gather(*[item.rip() for item in self.media]) │ │ 166 │ │ │ 167 │ async def search_interactive(self, source: str, media_type: str, query: str): │ │ 168 │ │ client = await self.get_logged_in_client(source) │ │ │ │ ... 5 frames hidden ... │ │ │ │ C:\Users\zephyr\Code\streamrip\venv\lib\site-packages\streamrip\metadata\album.py:387 in │ │ from_tidal_playlist_track_resp │ │ │ │ 384 │ │ │ year = "Unknown Year" │ │ 385 │ │ │ │ 386 │ │ print(resp.get("copyright")) │ │ ❱ 387 │ │ _copyright = typed(resp.get("copyright"), str) │ │ 388 │ │ artists = typed(resp.get("artists", []), list) │ │ 389 │ │ albumartist = ", ".join(a["name"] for a in artists) │ │ 390 │ │ if not albumartist: │ │ │ │ C:\Users\zephyr\Code\streamrip\venv\lib\site-packages\streamrip\metadata\util.py:24 in typed │ │ │ │ 21 │ │ 22 │ │ 23 def typed(thing, expected_type: Type[T]) -> T: │ │ ❱ 24 │ assert isinstance(thing, expected_type) │ │ 25 │ return thing │ │ 26 │ │ 27 │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ AssertionError
During handling of the above exception, another exception occurred:
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ C:\Users\zephyr\AppData\Local\Programs\Python\Python310\lib\runpy.py:196 in _run_module_as_main │
│ │
│ 193 │ main_globals = sys.modules["main"].dict │
│ 194 │ if alter_argv: │
│ 195 │ │ sys.argv[0] = mod_spec.origin │
│ ❱ 196 │ return _run_code(code, main_globals, None, │
│ 197 │ │ │ │ │ "main", mod_spec) │
│ 198 │
│ 199 def run_module(mod_name, init_globals=None, │
│ │
│ C:\Users\zephyr\AppData\Local\Programs\Python\Python310\lib\runpy.py:86 in _run_code │
│ │
│ 83 │ │ │ │ │ loader = loader, │
│ 84 │ │ │ │ │ package = pkg_name, │
│ 85 │ │ │ │ │ spec = mod_spec) │
│ ❱ 86 │ exec(code, run_globals) │
│ 87 │ return run_globals │
│ 88 │
│ 89 def _run_module_code(code, init_globals=None, │
│ │
│ ... 14 frames hidden ... │
│ │
│ C:\Users\zephyr\AppData\Local\Programs\Python\Python310\lib\shutil.py:620 in _rmtree_unsafe │
│ │
│ 617 │ │ │ try: │
│ 618 │ │ │ │ os.unlink(fullname) │
│ 619 │ │ │ except OSError: │
│ ❱ 620 │ │ │ │ onerror(os.unlink, fullname, sys.exc_info()) │
│ 621 │ try: │
│ 622 │ │ os.rmdir(path) │
│ 623 │ except OSError: │
│ │
│ C:\Users\zephyr\AppData\Local\Programs\Python\Python310\lib\shutil.py:618 in _rmtree_unsafe │
│ │
│ 615 │ │ │ _rmtree_unsafe(fullname, onerror) │
│ 616 │ │ else: │
│ 617 │ │ │ try: │
│ ❱ 618 │ │ │ │ os.unlink(fullname) │
│ 619 │ │ │ except OSError: │
│ 620 │ │ │ │ onerror(os.unlink, fullname, sys.exc_info()) │
│ 621 │ try: │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process:
'C:\Users\zephyr\StreamripDownloads\Apple Music\__artwork\cover-8752636556330399257.jpg'
sys:1: RuntimeWarning: coroutine 'Playlist.download.