Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--trim error #303

Open
2 tasks done
Jletallec opened this issue Sep 5, 2024 · 3 comments
Open
2 tasks done

--trim error #303

Jletallec opened this issue Sep 5, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@Jletallec
Copy link

Bug report

Checklist

  • I have searched for similar bugs in the issues.
  • I will add the bug label to this issue.

Version Info

  • Ytmdl version: 2024.08.15.1
  • Youtube-dl version: ???

How Ytmdl was installed?

I did "pip install ytmdl" and "pip install "ytmdl[noise-clean]". I even did "pip3 install --upgrade --force-reinstall "ytmdl[noise-clean]".

Console Log

josselin@iMac-de-Josselin ~ % ytmdl "Lose Yourself" -t --level DEBUG                       
 ==> Logger running in DEBUG mode 
 ==> Passed args: Namespace(SONG_NAME=['Lose Yourself'], quiet=False, output_dir=None, song=None, choice=None, artist=None, album=None, disable_metaadd=False, skip_meta=False, manual_meta=False, itunes_id=None, spotify_id=None, disable_sort=False, ask_meta_name=False, on_meta_error=None, proxy=None, url=None, list=None, nolocal=False, format='mp3', trim=True, get_opts=False, keep_chapter_name=False, download_archive=None, ignore_chapters=False, ytdl_config=None, dont_transcode=False, filename=None, pl_start=None, pl_end=None, pl_items=None, ignore_errors=False, title_as_name=False, level='DEBUG', disable_file=False, list_level=False) 
 ==> on_meta_error before:  None
 ==> on_meta_error after:  exit
 ==> itunes_country: US
 ==> ['Lose Yourself'] 
 ==> verify title:  False
 ==> Lose Yourself 
 ==> None 
 ==> Searching to see if already present in /Users/josselin/Music/Automatically Add to Music.localized 
 ==> proxy passed: None 
 ==> Passed format: mp3 
 ==> Searching Youtube for Lose Yourself 
 ==> Query used:  Lose Yourself
 ==> Choose One (One with [M] is verified music) 
 [1] Eminem - Lose Yourself by EminemMusic with dur 5:28
 [2] Eminem - Lose Yourself [HD] by msvogue23 with dur 5:24
 [3] Eminem - Lose Yourself (Lyrics) by 7clouds with dur 5:21
 [4] Eminem - Lose Yourself • LIVE • The 92nd Academy Awards • Oscars 2020 by Просто канал with dur 4:07
 [5] Eminem déclenche une standing ovation en interprétant la chanson "Lose Yourself" - Oscars 2020 by CANAL+ with dur 3:35
 [0] More results
 ==> Enter Choice (11): 1
 ==> 1 
 ==> Downloading Eminem - Lose Yourself in 320kbps 
 ==> Saving the files to: /Users/josselin/.cache/ytmdl 
 ==> /Users/josselin/.cache/ytmdl/Eminem#-#Lose#Yourself.mp3 
 ==> Enabling progress hook. 
 ==> Passed value for no_progress: False 
 ==> args passed:  {'quiet': False, 'no_warnings': False, 'nocheckcertificate': True, 'source_address': '0.0.0.0', 'outtmpl': '/Users/josselin/.cache/ytmdl/Eminem#-#Lose#Yourself.mp3', 'format': 'bestaudio/best', 'progress_hooks': [<function progress_handler at 0x1040f0dc0>]}
[youtube] Extracting URL: https://youtube.com/watch?v=xFYQQPAOz7Y
[youtube] xFYQQPAOz7Y: Downloading webpage
[youtube] xFYQQPAOz7Y: Downloading ios player API JSON
[youtube] xFYQQPAOz7Y: Downloading web creator player API JSON
[youtube] xFYQQPAOz7Y: Downloading m3u8 information
[info] xFYQQPAOz7Y: Downloading 1 format(s): 251
[download] Destination: /Users/josselin/.cache/ytmdl/Eminem#-#Lose#Yourself.mp3
[download] 100% of    5.18MiB in 00:00:00 at 26.07MiB/s
 ==> Downloaded! 
[youtube] Extracting URL: https://youtube.com/watch?v=xFYQQPAOz7Y
[youtube] xFYQQPAOz7Y: Downloading webpage
[youtube] xFYQQPAOz7Y: Downloading ios player API JSON
[youtube] xFYQQPAOz7Y: Downloading web creator player API JSON
[youtube] xFYQQPAOz7Y: Downloading m3u8 information
 ==> songs to download:  [{'title': 'Lose Yourself', 'is_original': True}]
 ==> is original:  True
 ==> Has the attribute 
 ==> song_name:  Lose Yourself  song_meta:  Lose Yourself
 ==> None 
 ==> None:None 
File '/Users/josselin/.cache/ytmdl/Eminem#-#Lose#Yourself.mp3_new.mp3' already exists. Overwrite? [y/N] y
 ==> Need to trim the song, importing the trim module. 
 ==> Passing the song to get trimmed. 
 ==> Error occurred:  arrays to stack must be passed as a "sequence" type such as list or tuple. . Exiting. Pass `--ignore-errors` if you want errorslike this to be ignored
josselin@iMac-de-Josselin ~ % 

Description

I want to use the --trim command but it doesn't work.

Capture d’écran 2024-09-05 à 10 21 02
@Jletallec Jletallec added the bug Something isn't working label Sep 5, 2024
@Jletallec
Copy link
Author

I saw an error with PIP at the end:

josselin@iMac-de-Josselin ~ % pip3 install --upgrade --force-reinstall "ytmdl[noise-clean]"
Collecting ytmdl[noise-clean]
  Using cached ytmdl-2024.8.15.1-py3-none-any.whl (59 kB)
Collecting beautifulsoup4
  Using cached beautifulsoup4-4.12.3-py3-none-any.whl (147 kB)
Collecting rich
  Using cached rich-13.8.0-py3-none-any.whl (241 kB)
Collecting spotipy
  Using cached spotipy-2.24.0-py3-none-any.whl (30 kB)
Collecting urllib3
  Using cached urllib3-2.2.2-py3-none-any.whl (121 kB)
Collecting youtube-search-python
  Using cached youtube_search_python-1.6.6-py3-none-any.whl (89 kB)
Collecting colorama
  Using cached colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Collecting mutagen
  Using cached mutagen-1.47.0-py3-none-any.whl (194 kB)
Collecting simber==0.2.6
  Using cached simber-0.2.6-py3-none-any.whl (12 kB)
Collecting pyDes
  Using cached pyDes-2.0.1-py2.py3-none-any.whl
Collecting yt-dlp>=2024.4.9
  Using cached yt_dlp-2024.8.6-py3-none-any.whl (3.1 MB)
Collecting downloader-cli>=0.3.4
  Using cached downloader_cli-0.3.4-py3-none-any.whl (12 kB)
Collecting pysocks
  Using cached PySocks-1.7.1-py3-none-any.whl (16 kB)
Collecting ytmusicapi
  Using cached ytmusicapi-1.8.1-py3-none-any.whl (87 kB)
Collecting ffmpeg-python
  Using cached ffmpeg_python-0.2.0-py3-none-any.whl (25 kB)
Collecting requests
  Using cached requests-2.32.3-py3-none-any.whl (64 kB)
Collecting pyxdg
  Using cached pyxdg-0.28-py2.py3-none-any.whl (49 kB)
Collecting itunespy
  Using cached itunespy-1.6.1-py3-none-any.whl (15 kB)
Collecting unidecode
  Using cached Unidecode-1.3.8-py3-none-any.whl (235 kB)
Collecting musicbrainzngs
  Using cached musicbrainzngs-0.7.1-py2.py3-none-any.whl (25 kB)
Collecting inaSpeechSegmenter
  Using cached inaSpeechSegmenter-0.7.10-py3-none-any.whl (38 kB)
Collecting tensorflow
  Using cached tensorflow-2.17.0-cp310-cp310-macosx_12_0_arm64.whl (236.1 MB)
Collecting pycryptodomex
  Using cached pycryptodomex-3.20.0-cp35-abi3-macosx_10_9_universal2.whl (2.4 MB)
Collecting certifi
  Using cached certifi-2024.8.30-py3-none-any.whl (167 kB)
Collecting websockets>=12.0
  Using cached websockets-13.0.1-cp310-cp310-macosx_11_0_arm64.whl (148 kB)
Collecting brotli
  Using cached Brotli-1.1.0-cp310-cp310-macosx_10_9_universal2.whl (873 kB)
Collecting idna<4,>=2.5
  Using cached idna-3.8-py3-none-any.whl (66 kB)
Collecting charset-normalizer<4,>=2
  Using cached charset_normalizer-3.3.2-cp310-cp310-macosx_11_0_arm64.whl (120 kB)
Collecting soupsieve>1.2
  Using cached soupsieve-2.6-py3-none-any.whl (36 kB)
Collecting future
  Using cached future-1.0.0-py3-none-any.whl (491 kB)
Collecting inaSpeechSegmenter
  Using cached inaSpeechSegmenter-0.7.9-py3-none-any.whl (38 kB)
  Using cached inaSpeechSegmenter-0.7.8-py3-none-any.whl (38 kB)
  Using cached inaSpeechSegmenter-0.7.7-py3-none-any.whl (38 kB)
  Using cached inaSpeechSegmenter-0.7.6-py3-none-any.whl (26 kB)
Collecting matplotlib
  Using cached matplotlib-3.9.2-cp310-cp310-macosx_11_0_arm64.whl (7.8 MB)
Collecting soundfile
  Using cached soundfile-0.12.1-py2.py3-none-macosx_11_0_arm64.whl (1.1 MB)
Collecting scikit-image
  Using cached scikit_image-0.24.0-cp310-cp310-macosx_12_0_arm64.whl (13.4 MB)
Collecting pyannote.algorithms
  Using cached pyannote.algorithms-0.8-py3-none-any.whl (78 kB)
Collecting Pyro4
  Using cached Pyro4-4.82-py2.py3-none-any.whl (89 kB)
Collecting pyannote.core
  Using cached pyannote.core-5.0.0-py3-none-any.whl (58 kB)
Collecting pytextgrid
  Using cached pytextgrid-0.1.4-py3-none-any.whl (9.1 kB)
Collecting pyannote.parser
  Using cached pyannote.parser-0.8-py3-none-any.whl (24 kB)
Collecting pandas
  Using cached pandas-2.2.2-cp310-cp310-macosx_11_0_arm64.whl (11.3 MB)
Collecting numpy
  Using cached numpy-2.1.1-cp310-cp310-macosx_14_0_arm64.whl (5.4 MB)
Collecting pycountry>=19.8
  Using cached pycountry-24.6.1-py3-none-any.whl (6.3 MB)
Collecting markdown-it-py>=2.2.0
  Using cached markdown_it_py-3.0.0-py3-none-any.whl (87 kB)
Collecting pygments<3.0.0,>=2.13.0
  Using cached pygments-2.18.0-py3-none-any.whl (1.2 MB)
Collecting redis>=3.5.3
  Using cached redis-5.0.8-py3-none-any.whl (255 kB)
Collecting termcolor>=1.1.0
  Using cached termcolor-2.4.0-py3-none-any.whl (7.7 kB)
Collecting gast!=0.5.0,!=0.5.1,!=0.5.2,>=0.2.1
  Using cached gast-0.6.0-py3-none-any.whl (21 kB)
Collecting tensorboard<2.18,>=2.17
  Using cached tensorboard-2.17.1-py3-none-any.whl (5.5 MB)
Collecting flatbuffers>=24.3.25
  Using cached flatbuffers-24.3.25-py2.py3-none-any.whl (26 kB)
Collecting keras>=3.2.0
  Using cached keras-3.5.0-py3-none-any.whl (1.1 MB)
Collecting astunparse>=1.6.0
  Using cached astunparse-1.6.3-py2.py3-none-any.whl (12 kB)
Collecting tensorflow-io-gcs-filesystem>=0.23.1
  Using cached tensorflow_io_gcs_filesystem-0.37.1-cp310-cp310-macosx_12_0_arm64.whl (3.5 MB)
Collecting libclang>=13.0.0
  Using cached libclang-18.1.1-1-py2.py3-none-macosx_11_0_arm64.whl (25.8 MB)
Collecting six>=1.12.0
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting absl-py>=1.0.0
  Using cached absl_py-2.1.0-py3-none-any.whl (133 kB)
Collecting protobuf!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<5.0.0dev,>=3.20.3
  Using cached protobuf-4.25.4-cp37-abi3-macosx_10_9_universal2.whl (394 kB)
Collecting typing-extensions>=3.6.6
  Using cached typing_extensions-4.12.2-py3-none-any.whl (37 kB)
Collecting wrapt>=1.11.0
  Using cached wrapt-1.16.0-cp310-cp310-macosx_11_0_arm64.whl (38 kB)
Collecting setuptools
  Using cached setuptools-74.1.2-py3-none-any.whl (1.3 MB)
Collecting opt-einsum>=2.3.2
  Using cached opt_einsum-3.3.0-py3-none-any.whl (65 kB)
Collecting numpy
  Using cached numpy-1.26.4-cp310-cp310-macosx_11_0_arm64.whl (14.0 MB)
Collecting packaging
  Using cached packaging-24.1-py3-none-any.whl (53 kB)
Collecting google-pasta>=0.1.1
  Using cached google_pasta-0.2.0-py3-none-any.whl (57 kB)
Collecting h5py>=3.10.0
  Using cached h5py-3.11.0-cp310-cp310-macosx_11_0_arm64.whl (2.9 MB)
Collecting grpcio<2.0,>=1.24.3
  Using cached grpcio-1.66.1-cp310-cp310-macosx_12_0_universal2.whl (10.6 MB)
Collecting ml-dtypes<0.5.0,>=0.3.1
  Using cached ml_dtypes-0.4.0-cp310-cp310-macosx_10_9_universal2.whl (390 kB)
Collecting httpx>=0.14.2
  Using cached httpx-0.27.2-py3-none-any.whl (76 kB)
Collecting wheel<1.0,>=0.23.0
  Using cached wheel-0.44.0-py3-none-any.whl (67 kB)
Collecting anyio
  Using cached anyio-4.4.0-py3-none-any.whl (86 kB)
Collecting sniffio
  Using cached sniffio-1.3.1-py3-none-any.whl (10 kB)
Collecting httpcore==1.*
  Using cached httpcore-1.0.5-py3-none-any.whl (77 kB)
Collecting h11<0.15,>=0.13
  Using cached h11-0.14.0-py3-none-any.whl (58 kB)
Collecting namex
  Using cached namex-0.0.8-py3-none-any.whl (5.8 kB)
Collecting optree
  Using cached optree-0.12.1-cp310-cp310-macosx_11_0_arm64.whl (282 kB)
Collecting mdurl~=0.1
  Using cached mdurl-0.1.2-py3-none-any.whl (10.0 kB)
Collecting async-timeout>=4.0.3
  Using cached async_timeout-4.0.3-py3-none-any.whl (5.7 kB)
Collecting tensorboard-data-server<0.8.0,>=0.7.0
  Using cached tensorboard_data_server-0.7.2-py3-none-any.whl (2.4 kB)
Collecting markdown>=2.6.8
  Using cached Markdown-3.7-py3-none-any.whl (106 kB)
Collecting werkzeug>=1.0.1
  Using cached werkzeug-3.0.4-py3-none-any.whl (227 kB)
Collecting cycler>=0.10
  Using cached cycler-0.12.1-py3-none-any.whl (8.3 kB)
Collecting pillow>=8
  Using cached pillow-10.4.0-cp310-cp310-macosx_11_0_arm64.whl (3.4 MB)
Collecting kiwisolver>=1.3.1
  Using cached kiwisolver-1.4.7-cp310-cp310-macosx_11_0_arm64.whl (64 kB)
Collecting contourpy>=1.0.1
  Using cached contourpy-1.3.0-cp310-cp310-macosx_11_0_arm64.whl (249 kB)
Collecting pyparsing>=2.3.1
  Using cached pyparsing-3.1.4-py3-none-any.whl (104 kB)
Collecting fonttools>=4.22.0
  Using cached fonttools-4.53.1-cp310-cp310-macosx_11_0_arm64.whl (2.2 MB)
Collecting python-dateutil>=2.7
  Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
Collecting tzdata>=2022.7
  Using cached tzdata-2024.1-py2.py3-none-any.whl (345 kB)
Collecting pytz>=2020.1
  Using cached pytz-2024.1-py2.py3-none-any.whl (505 kB)
Collecting networkx>=2.1
  Using cached networkx-3.3-py3-none-any.whl (1.7 MB)
Collecting munkres>=1.0.7
  Using cached munkres-1.1.4-py2.py3-none-any.whl (7.0 kB)
Collecting scikit-learn>=0.17
  Using cached scikit_learn-1.5.1-cp310-cp310-macosx_12_0_arm64.whl (11.0 MB)
Collecting scipy>=0.17.0
  Using cached scipy-1.14.1-cp310-cp310-macosx_14_0_arm64.whl (23.1 MB)
Collecting xarray>=0.8.2
  Using cached xarray-2024.7.0-py3-none-any.whl (1.2 MB)
Collecting docopt>=0.6.2
  Using cached docopt-0.6.2-py2.py3-none-any.whl
Collecting joblib>=0.9.4
  Using cached joblib-1.4.2-py3-none-any.whl (301 kB)
Collecting sortedcollections>=1.0.1
  Using cached sortedcollections-2.1.0-py3-none-any.whl (9.5 kB)
Collecting sortedcontainers>=2.0.4
  Using cached sortedcontainers-2.4.0-py2.py3-none-any.whl (29 kB)
Collecting serpent>=1.27
  Using cached serpent-1.41-py3-none-any.whl (9.6 kB)
Collecting lazy-loader>=0.4
  Using cached lazy_loader-0.4-py3-none-any.whl (12 kB)
Collecting tifffile>=2022.8.12
  Using cached tifffile-2024.8.30-py3-none-any.whl (227 kB)
Collecting imageio>=2.33
  Using cached imageio-2.35.1-py3-none-any.whl (315 kB)
Collecting cffi>=1.0
  Using cached cffi-1.17.1-cp310-cp310-macosx_11_0_arm64.whl (178 kB)
Collecting pycparser
  Using cached pycparser-2.22-py3-none-any.whl (117 kB)
Collecting threadpoolctl>=3.1.0
  Using cached threadpoolctl-3.5.0-py3-none-any.whl (18 kB)
Collecting MarkupSafe>=2.1.1
  Using cached MarkupSafe-2.1.5-cp310-cp310-macosx_10_9_universal2.whl (18 kB)
Collecting exceptiongroup>=1.0.2
  Using cached exceptiongroup-1.2.2-py3-none-any.whl (16 kB)
Installing collected packages: sortedcontainers, pyxdg, pytz, pytextgrid, pyDes, namex, munkres, libclang, flatbuffers, docopt, brotli, wrapt, wheel, websockets, urllib3, unidecode, tzdata, typing-extensions, threadpoolctl, termcolor, tensorflow-io-gcs-filesystem, tensorboard-data-server, soupsieve, sortedcollections, sniffio, six, setuptools, serpent, pysocks, pyparsing, pygments, pycryptodomex, pycparser, pycountry, protobuf, pillow, packaging, numpy, networkx, mutagen, musicbrainzngs, mdurl, MarkupSafe, markdown, kiwisolver, joblib, idna, h11, grpcio, gast, future, fonttools, exceptiongroup, cycler, colorama, charset-normalizer, certifi, async-timeout, absl-py, werkzeug, tifffile, simber, scipy, requests, redis, python-dateutil, Pyro4, optree, opt-einsum, ml-dtypes, markdown-it-py, lazy-loader, imageio, httpcore, h5py, google-pasta, ffmpeg-python, downloader-cli, contourpy, cffi, beautifulsoup4, astunparse, anyio, ytmusicapi, yt-dlp, tensorboard, spotipy, soundfile, scikit-learn, scikit-image, rich, pyannote.core, pandas, matplotlib, itunespy, httpx, youtube-search-python, xarray, pyannote.parser, keras, ytmdl, tensorflow, pyannote.algorithms, inaSpeechSegmenter
  Attempting uninstall: sortedcontainers
    Found existing installation: sortedcontainers 2.4.0
    Uninstalling sortedcontainers-2.4.0:
      Successfully uninstalled sortedcontainers-2.4.0
  Attempting uninstall: pyxdg
    Found existing installation: pyxdg 0.28
    Uninstalling pyxdg-0.28:
      Successfully uninstalled pyxdg-0.28
  Attempting uninstall: pytz
    Found existing installation: pytz 2024.1
    Uninstalling pytz-2024.1:
      Successfully uninstalled pytz-2024.1
  Attempting uninstall: pytextgrid
    Found existing installation: pytextgrid 0.1.4
    Uninstalling pytextgrid-0.1.4:
      Successfully uninstalled pytextgrid-0.1.4
  Attempting uninstall: pyDes
    Found existing installation: pyDes 2.0.1
    Uninstalling pyDes-2.0.1:
      Successfully uninstalled pyDes-2.0.1
  Attempting uninstall: namex
    Found existing installation: namex 0.0.8
    Uninstalling namex-0.0.8:
      Successfully uninstalled namex-0.0.8
  Attempting uninstall: munkres
    Found existing installation: munkres 1.1.4
    Uninstalling munkres-1.1.4:
      Successfully uninstalled munkres-1.1.4
  Attempting uninstall: libclang
    Found existing installation: libclang 18.1.1
    Uninstalling libclang-18.1.1:
      Successfully uninstalled libclang-18.1.1
  Attempting uninstall: flatbuffers
    Found existing installation: flatbuffers 24.3.25
    Uninstalling flatbuffers-24.3.25:
      Successfully uninstalled flatbuffers-24.3.25
  Attempting uninstall: docopt
    Found existing installation: docopt 0.6.2
    Uninstalling docopt-0.6.2:
      Successfully uninstalled docopt-0.6.2
  Attempting uninstall: brotli
    Found existing installation: Brotli 1.1.0
    Uninstalling Brotli-1.1.0:
      Successfully uninstalled Brotli-1.1.0
  Attempting uninstall: wrapt
    Found existing installation: wrapt 1.16.0
    Uninstalling wrapt-1.16.0:
      Successfully uninstalled wrapt-1.16.0
  Attempting uninstall: wheel
    Found existing installation: wheel 0.44.0
    Uninstalling wheel-0.44.0:
      Successfully uninstalled wheel-0.44.0
  Attempting uninstall: websockets
    Found existing installation: websockets 13.0.1
    Uninstalling websockets-13.0.1:
      Successfully uninstalled websockets-13.0.1
  Attempting uninstall: urllib3
    Found existing installation: urllib3 2.2.2
    Uninstalling urllib3-2.2.2:
      Successfully uninstalled urllib3-2.2.2
  Attempting uninstall: unidecode
    Found existing installation: Unidecode 1.3.8
    Uninstalling Unidecode-1.3.8:
      Successfully uninstalled Unidecode-1.3.8
  Attempting uninstall: tzdata
    Found existing installation: tzdata 2024.1
    Uninstalling tzdata-2024.1:
      Successfully uninstalled tzdata-2024.1
  Attempting uninstall: typing-extensions
    Found existing installation: typing_extensions 4.12.2
    Uninstalling typing_extensions-4.12.2:
      Successfully uninstalled typing_extensions-4.12.2
  Attempting uninstall: threadpoolctl
    Found existing installation: threadpoolctl 3.5.0
    Uninstalling threadpoolctl-3.5.0:
      Successfully uninstalled threadpoolctl-3.5.0
  Attempting uninstall: termcolor
    Found existing installation: termcolor 2.4.0
    Uninstalling termcolor-2.4.0:
      Successfully uninstalled termcolor-2.4.0
  Attempting uninstall: tensorflow-io-gcs-filesystem
    Found existing installation: tensorflow-io-gcs-filesystem 0.37.1
    Uninstalling tensorflow-io-gcs-filesystem-0.37.1:
      Successfully uninstalled tensorflow-io-gcs-filesystem-0.37.1
  Attempting uninstall: tensorboard-data-server
    Found existing installation: tensorboard-data-server 0.7.2
    Uninstalling tensorboard-data-server-0.7.2:
      Successfully uninstalled tensorboard-data-server-0.7.2
  Attempting uninstall: soupsieve
    Found existing installation: soupsieve 2.6
    Uninstalling soupsieve-2.6:
      Successfully uninstalled soupsieve-2.6
  Attempting uninstall: sortedcollections
    Found existing installation: sortedcollections 2.1.0
    Uninstalling sortedcollections-2.1.0:
      Successfully uninstalled sortedcollections-2.1.0
  Attempting uninstall: sniffio
    Found existing installation: sniffio 1.3.1
    Uninstalling sniffio-1.3.1:
      Successfully uninstalled sniffio-1.3.1
  Attempting uninstall: six
    Found existing installation: six 1.16.0
    Uninstalling six-1.16.0:
      Successfully uninstalled six-1.16.0
  Attempting uninstall: setuptools
    Found existing installation: setuptools 74.1.2
    Uninstalling setuptools-74.1.2:
      Successfully uninstalled setuptools-74.1.2
  Attempting uninstall: serpent
    Found existing installation: serpent 1.41
    Uninstalling serpent-1.41:
      Successfully uninstalled serpent-1.41
  Attempting uninstall: pysocks
    Found existing installation: PySocks 1.7.1
    Uninstalling PySocks-1.7.1:
      Successfully uninstalled PySocks-1.7.1
  Attempting uninstall: pyparsing
    Found existing installation: pyparsing 3.1.4
    Uninstalling pyparsing-3.1.4:
      Successfully uninstalled pyparsing-3.1.4
  Attempting uninstall: pygments
    Found existing installation: Pygments 2.18.0
    Uninstalling Pygments-2.18.0:
      Successfully uninstalled Pygments-2.18.0
  Attempting uninstall: pycryptodomex
    Found existing installation: pycryptodomex 3.20.0
    Uninstalling pycryptodomex-3.20.0:
      Successfully uninstalled pycryptodomex-3.20.0
  Attempting uninstall: pycparser
    Found existing installation: pycparser 2.22
    Uninstalling pycparser-2.22:
      Successfully uninstalled pycparser-2.22
  Attempting uninstall: pycountry
    Found existing installation: pycountry 24.6.1
    Uninstalling pycountry-24.6.1:
      Successfully uninstalled pycountry-24.6.1
  Attempting uninstall: protobuf
    Found existing installation: protobuf 4.25.4
    Uninstalling protobuf-4.25.4:
      Successfully uninstalled protobuf-4.25.4
  Attempting uninstall: pillow
    Found existing installation: pillow 10.4.0
    Uninstalling pillow-10.4.0:
      Successfully uninstalled pillow-10.4.0
  Attempting uninstall: packaging
    Found existing installation: packaging 24.1
    Uninstalling packaging-24.1:
      Successfully uninstalled packaging-24.1
  Attempting uninstall: numpy
    Found existing installation: numpy 1.26.4
    Uninstalling numpy-1.26.4:
      Successfully uninstalled numpy-1.26.4
  Attempting uninstall: networkx
    Found existing installation: networkx 3.3
    Uninstalling networkx-3.3:
      Successfully uninstalled networkx-3.3
  Attempting uninstall: mutagen
    Found existing installation: mutagen 1.47.0
    Uninstalling mutagen-1.47.0:
      Successfully uninstalled mutagen-1.47.0
  Attempting uninstall: musicbrainzngs
    Found existing installation: musicbrainzngs 0.7.1
    Uninstalling musicbrainzngs-0.7.1:
      Successfully uninstalled musicbrainzngs-0.7.1
  Attempting uninstall: mdurl
    Found existing installation: mdurl 0.1.2
    Uninstalling mdurl-0.1.2:
      Successfully uninstalled mdurl-0.1.2
  Attempting uninstall: MarkupSafe
    Found existing installation: MarkupSafe 2.1.5
    Uninstalling MarkupSafe-2.1.5:
      Successfully uninstalled MarkupSafe-2.1.5
  Attempting uninstall: markdown
    Found existing installation: Markdown 3.7
    Uninstalling Markdown-3.7:
      Successfully uninstalled Markdown-3.7
  Attempting uninstall: kiwisolver
    Found existing installation: kiwisolver 1.4.7
    Uninstalling kiwisolver-1.4.7:
      Successfully uninstalled kiwisolver-1.4.7
  Attempting uninstall: joblib
    Found existing installation: joblib 1.4.2
    Uninstalling joblib-1.4.2:
      Successfully uninstalled joblib-1.4.2
  Attempting uninstall: idna
    Found existing installation: idna 3.8
    Uninstalling idna-3.8:
      Successfully uninstalled idna-3.8
  Attempting uninstall: h11
    Found existing installation: h11 0.14.0
    Uninstalling h11-0.14.0:
      Successfully uninstalled h11-0.14.0
  Attempting uninstall: grpcio
    Found existing installation: grpcio 1.66.1
    Uninstalling grpcio-1.66.1:
      Successfully uninstalled grpcio-1.66.1
  Attempting uninstall: gast
    Found existing installation: gast 0.6.0
    Uninstalling gast-0.6.0:
      Successfully uninstalled gast-0.6.0
  Attempting uninstall: future
    Found existing installation: future 1.0.0
    Uninstalling future-1.0.0:
      Successfully uninstalled future-1.0.0
  Attempting uninstall: fonttools
    Found existing installation: fonttools 4.53.1
    Uninstalling fonttools-4.53.1:
      Successfully uninstalled fonttools-4.53.1
  Attempting uninstall: exceptiongroup
    Found existing installation: exceptiongroup 1.2.2
    Uninstalling exceptiongroup-1.2.2:
      Successfully uninstalled exceptiongroup-1.2.2
  Attempting uninstall: cycler
    Found existing installation: cycler 0.12.1
    Uninstalling cycler-0.12.1:
      Successfully uninstalled cycler-0.12.1
  Attempting uninstall: colorama
    Found existing installation: colorama 0.4.6
    Uninstalling colorama-0.4.6:
      Successfully uninstalled colorama-0.4.6
  Attempting uninstall: charset-normalizer
    Found existing installation: charset-normalizer 3.3.2
    Uninstalling charset-normalizer-3.3.2:
      Successfully uninstalled charset-normalizer-3.3.2
  Attempting uninstall: certifi
    Found existing installation: certifi 2024.8.30
    Uninstalling certifi-2024.8.30:
      Successfully uninstalled certifi-2024.8.30
  Attempting uninstall: async-timeout
    Found existing installation: async-timeout 4.0.3
    Uninstalling async-timeout-4.0.3:
      Successfully uninstalled async-timeout-4.0.3
  Attempting uninstall: absl-py
    Found existing installation: absl-py 2.1.0
    Uninstalling absl-py-2.1.0:
      Successfully uninstalled absl-py-2.1.0
  Attempting uninstall: werkzeug
    Found existing installation: Werkzeug 3.0.4
    Uninstalling Werkzeug-3.0.4:
      Successfully uninstalled Werkzeug-3.0.4
  Attempting uninstall: tifffile
    Found existing installation: tifffile 2024.8.30
    Uninstalling tifffile-2024.8.30:
      Successfully uninstalled tifffile-2024.8.30
  Attempting uninstall: simber
    Found existing installation: simber 0.2.6
    Uninstalling simber-0.2.6:
      Successfully uninstalled simber-0.2.6
  Attempting uninstall: scipy
    Found existing installation: scipy 1.14.1
    Uninstalling scipy-1.14.1:
      Successfully uninstalled scipy-1.14.1
  Attempting uninstall: requests
    Found existing installation: requests 2.32.3
    Uninstalling requests-2.32.3:
      Successfully uninstalled requests-2.32.3
  Attempting uninstall: redis
    Found existing installation: redis 5.0.8
    Uninstalling redis-5.0.8:
      Successfully uninstalled redis-5.0.8
  Attempting uninstall: python-dateutil
    Found existing installation: python-dateutil 2.9.0.post0
    Uninstalling python-dateutil-2.9.0.post0:
      Successfully uninstalled python-dateutil-2.9.0.post0
  Attempting uninstall: Pyro4
    Found existing installation: Pyro4 4.82
    Uninstalling Pyro4-4.82:
      Successfully uninstalled Pyro4-4.82
  Attempting uninstall: optree
    Found existing installation: optree 0.12.1
    Uninstalling optree-0.12.1:
      Successfully uninstalled optree-0.12.1
  Attempting uninstall: opt-einsum
    Found existing installation: opt-einsum 3.3.0
    Uninstalling opt-einsum-3.3.0:
      Successfully uninstalled opt-einsum-3.3.0
  Attempting uninstall: ml-dtypes
    Found existing installation: ml-dtypes 0.4.0
    Uninstalling ml-dtypes-0.4.0:
      Successfully uninstalled ml-dtypes-0.4.0
  Attempting uninstall: markdown-it-py
    Found existing installation: markdown-it-py 3.0.0
    Uninstalling markdown-it-py-3.0.0:
      Successfully uninstalled markdown-it-py-3.0.0
  Attempting uninstall: lazy-loader
    Found existing installation: lazy_loader 0.4
    Uninstalling lazy_loader-0.4:
      Successfully uninstalled lazy_loader-0.4
  Attempting uninstall: imageio
    Found existing installation: imageio 2.35.1
    Uninstalling imageio-2.35.1:
      Successfully uninstalled imageio-2.35.1
  Attempting uninstall: httpcore
    Found existing installation: httpcore 1.0.5
    Uninstalling httpcore-1.0.5:
      Successfully uninstalled httpcore-1.0.5
  Attempting uninstall: h5py
    Found existing installation: h5py 3.11.0
    Uninstalling h5py-3.11.0:
      Successfully uninstalled h5py-3.11.0
  Attempting uninstall: google-pasta
    Found existing installation: google-pasta 0.2.0
    Uninstalling google-pasta-0.2.0:
      Successfully uninstalled google-pasta-0.2.0
  Attempting uninstall: ffmpeg-python
    Found existing installation: ffmpeg-python 0.2.0
    Uninstalling ffmpeg-python-0.2.0:
      Successfully uninstalled ffmpeg-python-0.2.0
  Attempting uninstall: downloader-cli
    Found existing installation: downloader-cli 0.3.4
    Uninstalling downloader-cli-0.3.4:
      Successfully uninstalled downloader-cli-0.3.4
  Attempting uninstall: contourpy
    Found existing installation: contourpy 1.3.0
    Uninstalling contourpy-1.3.0:
      Successfully uninstalled contourpy-1.3.0
  Attempting uninstall: cffi
    Found existing installation: cffi 1.17.1
    Uninstalling cffi-1.17.1:
      Successfully uninstalled cffi-1.17.1
  Attempting uninstall: beautifulsoup4
    Found existing installation: beautifulsoup4 4.12.3
    Uninstalling beautifulsoup4-4.12.3:
      Successfully uninstalled beautifulsoup4-4.12.3
  Attempting uninstall: astunparse
    Found existing installation: astunparse 1.6.3
    Uninstalling astunparse-1.6.3:
      Successfully uninstalled astunparse-1.6.3
  Attempting uninstall: anyio
    Found existing installation: anyio 4.4.0
    Uninstalling anyio-4.4.0:
      Successfully uninstalled anyio-4.4.0
  Attempting uninstall: ytmusicapi
    Found existing installation: ytmusicapi 1.8.1
    Uninstalling ytmusicapi-1.8.1:
      Successfully uninstalled ytmusicapi-1.8.1
  Attempting uninstall: yt-dlp
    Found existing installation: yt-dlp 2024.8.6
    Uninstalling yt-dlp-2024.8.6:
      Successfully uninstalled yt-dlp-2024.8.6
  Attempting uninstall: tensorboard
    Found existing installation: tensorboard 2.17.1
    Uninstalling tensorboard-2.17.1:
      Successfully uninstalled tensorboard-2.17.1
  Attempting uninstall: spotipy
    Found existing installation: spotipy 2.24.0
    Uninstalling spotipy-2.24.0:
      Successfully uninstalled spotipy-2.24.0
  Attempting uninstall: soundfile
    Found existing installation: soundfile 0.12.1
    Uninstalling soundfile-0.12.1:
      Successfully uninstalled soundfile-0.12.1
  Attempting uninstall: scikit-learn
    Found existing installation: scikit-learn 1.5.1
    Uninstalling scikit-learn-1.5.1:
      Successfully uninstalled scikit-learn-1.5.1
  Attempting uninstall: scikit-image
    Found existing installation: scikit-image 0.24.0
    Uninstalling scikit-image-0.24.0:
      Successfully uninstalled scikit-image-0.24.0
  Attempting uninstall: rich
    Found existing installation: rich 13.8.0
    Uninstalling rich-13.8.0:
      Successfully uninstalled rich-13.8.0
  Attempting uninstall: pyannote.core
    Found existing installation: pyannote.core 5.0.0
    Uninstalling pyannote.core-5.0.0:
      Successfully uninstalled pyannote.core-5.0.0
  Attempting uninstall: pandas
    Found existing installation: pandas 2.2.2
    Uninstalling pandas-2.2.2:
      Successfully uninstalled pandas-2.2.2
  Attempting uninstall: matplotlib
    Found existing installation: matplotlib 3.9.2
    Uninstalling matplotlib-3.9.2:
      Successfully uninstalled matplotlib-3.9.2
  Attempting uninstall: itunespy
    Found existing installation: itunespy 1.6.1
    Uninstalling itunespy-1.6.1:
      Successfully uninstalled itunespy-1.6.1
  Attempting uninstall: httpx
    Found existing installation: httpx 0.27.2
    Uninstalling httpx-0.27.2:
      Successfully uninstalled httpx-0.27.2
  Attempting uninstall: youtube-search-python
    Found existing installation: youtube-search-python 1.6.6
    Uninstalling youtube-search-python-1.6.6:
      Successfully uninstalled youtube-search-python-1.6.6
  Attempting uninstall: xarray
    Found existing installation: xarray 2024.7.0
    Uninstalling xarray-2024.7.0:
      Successfully uninstalled xarray-2024.7.0
  Attempting uninstall: pyannote.parser
    Found existing installation: pyannote.parser 0.8
    Uninstalling pyannote.parser-0.8:
      Successfully uninstalled pyannote.parser-0.8
  Attempting uninstall: keras
    Found existing installation: keras 3.5.0
    Uninstalling keras-3.5.0:
      Successfully uninstalled keras-3.5.0
  Attempting uninstall: ytmdl
    Found existing installation: ytmdl 2024.8.15.1
    Uninstalling ytmdl-2024.8.15.1:
      Successfully uninstalled ytmdl-2024.8.15.1
  Attempting uninstall: tensorflow
    Found existing installation: tensorflow 2.17.0
    Uninstalling tensorflow-2.17.0:
      Successfully uninstalled tensorflow-2.17.0
  Attempting uninstall: pyannote.algorithms
    Found existing installation: pyannote.algorithms 0.8
    Uninstalling pyannote.algorithms-0.8:
      Successfully uninstalled pyannote.algorithms-0.8
  Attempting uninstall: inaSpeechSegmenter
    Found existing installation: inaSpeechSegmenter 0.7.6
    Uninstalling inaSpeechSegmenter-0.7.6:
      Successfully uninstalled inaSpeechSegmenter-0.7.6
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
fastapi 0.103.2 requires anyio<4.0.0,>=3.7.1, but you have anyio 4.4.0 which is incompatible.
Successfully installed MarkupSafe-2.1.5 Pyro4-4.82 absl-py-2.1.0 anyio-4.4.0 astunparse-1.6.3 async-timeout-4.0.3 beautifulsoup4-4.12.3 brotli-1.1.0 certifi-2024.8.30 cffi-1.17.1 charset-normalizer-3.3.2 colorama-0.4.6 contourpy-1.3.0 cycler-0.12.1 docopt-0.6.2 downloader-cli-0.3.4 exceptiongroup-1.2.2 ffmpeg-python-0.2.0 flatbuffers-24.3.25 fonttools-4.53.1 future-1.0.0 gast-0.6.0 google-pasta-0.2.0 grpcio-1.66.1 h11-0.14.0 h5py-3.11.0 httpcore-1.0.5 httpx-0.27.2 idna-3.8 imageio-2.35.1 inaSpeechSegmenter-0.7.6 itunespy-1.6.1 joblib-1.4.2 keras-3.5.0 kiwisolver-1.4.7 lazy-loader-0.4 libclang-18.1.1 markdown-3.7 markdown-it-py-3.0.0 matplotlib-3.9.2 mdurl-0.1.2 ml-dtypes-0.4.0 munkres-1.1.4 musicbrainzngs-0.7.1 mutagen-1.47.0 namex-0.0.8 networkx-3.3 numpy-1.26.4 opt-einsum-3.3.0 optree-0.12.1 packaging-24.1 pandas-2.2.2 pillow-10.4.0 protobuf-4.25.4 pyDes-2.0.1 pyannote.algorithms-0.8 pyannote.core-5.0.0 pyannote.parser-0.8 pycountry-24.6.1 pycparser-2.22 pycryptodomex-3.20.0 pygments-2.18.0 pyparsing-3.1.4 pysocks-1.7.1 pytextgrid-0.1.4 python-dateutil-2.9.0.post0 pytz-2024.1 pyxdg-0.28 redis-5.0.8 requests-2.32.3 rich-13.8.0 scikit-image-0.24.0 scikit-learn-1.5.1 scipy-1.14.1 serpent-1.41 setuptools-74.1.2 simber-0.2.6 six-1.16.0 sniffio-1.3.1 sortedcollections-2.1.0 sortedcontainers-2.4.0 soundfile-0.12.1 soupsieve-2.6 spotipy-2.24.0 tensorboard-2.17.1 tensorboard-data-server-0.7.2 tensorflow-2.17.0 tensorflow-io-gcs-filesystem-0.37.1 termcolor-2.4.0 threadpoolctl-3.5.0 tifffile-2024.8.30 typing-extensions-4.12.2 tzdata-2024.1 unidecode-1.3.8 urllib3-2.2.2 websockets-13.0.1 werkzeug-3.0.4 wheel-0.44.0 wrapt-1.16.0 xarray-2024.7.0 youtube-search-python-1.6.6 yt-dlp-2024.8.6 ytmdl-2024.8.15.1 ytmusicapi-1.8.1

[notice] A new release of pip is available: 23.0.1 -> 24.2
[notice] To update, run: pip install --upgrade pip
josselin@iMac-de-Josselin ~ % 

@Jletallec
Copy link
Author

To solve the problem with the Anyio package I tried to do this:

josselin@iMac-de-Josselin ~ % pip uninstall anyio
Found existing installation: anyio 4.4.0
Uninstalling anyio-4.4.0:
  Would remove:
    /Users/josselin/.pyenv/versions/3.10.12/lib/python3.10/site-packages/anyio-4.4.0.dist-info/*
    /Users/josselin/.pyenv/versions/3.10.12/lib/python3.10/site-packages/anyio/*
Proceed (Y/n)? y
  Successfully uninstalled anyio-4.4.0
josselin@iMac-de-Josselin ~ % pip install anyio==3.7.1
Collecting anyio==3.7.1
  Downloading anyio-3.7.1-py3-none-any.whl (80 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 80.9/80.9 kB 2.6 MB/s eta 0:00:00
Requirement already satisfied: exceptiongroup in ./.pyenv/versions/3.10.12/lib/python3.10/site-packages (from anyio==3.7.1) (1.2.2)
Requirement already satisfied: idna>=2.8 in ./.pyenv/versions/3.10.12/lib/python3.10/site-packages (from anyio==3.7.1) (3.8)
Requirement already satisfied: sniffio>=1.1 in ./.pyenv/versions/3.10.12/lib/python3.10/site-packages (from anyio==3.7.1) (1.3.1)
Installing collected packages: anyio
Successfully installed anyio-3.7.1

[notice] A new release of pip is available: 23.0.1 -> 24.2
[notice] To update, run: pip install --upgrade pip
josselin@iMac-de-Josselin ~ % ytmdl "Lose Yourself" -t
 ==> Searching to see if already present in /Users/josselin/Music/Automatically Add to Music.localized 
 ==> Searching Youtube for Lose Yourself 
 ==> Choose One (One with [M] is verified music) 
 [1] Eminem - Lose Yourself by EminemMusic with dur 5:28
 [2] Eminem - Lose Yourself [HD] by msvogue23 with dur 5:24
 [3] Eminem - Lose Yourself (Lyrics) by 7clouds with dur 5:21
 [4] Eminem - Lose Yourself • LIVE • The 92nd Academy Awards • Oscars 2020 by Просто канал with dur 4:07
 [5] Eminem déclenche une standing ovation en interprétant la chanson "Lose Yourself" - Oscars 2020 by CANAL+ with dur 3:35
 [0] More results
 ==> Enter Choice (11): 1
 ==> Downloading Eminem - Lose Yourself in 320kbps 
 ==> Saving the files to: /Users/josselin/.cache/ytmdl 
 ==> Downloaded! 
File '/Users/josselin/.cache/ytmdl/Eminem#-#Lose#Yourself.mp3_new.mp3' already exists. Overwrite? [y/N] y
 ==> Passing the song to get trimmed. 
 ==> Error occurred:  arrays to stack must be passed as a "sequence" type such as list or tuple. . Exiting. Pass `--ignore-errors` if you want errorslike this to be ignored
josselin@iMac-de-Josselin ~ % 

@Muxutruk2
Copy link

@Jletallec I am unable to recreate this error
When downloading a song with -t this error shows up
==> Dependencies needed for trim are not installed. Please use the [noise-clean] specifier when installing ytmdl. The script will continue without trimming.

Perhaps you should try reinstalling ytmdl with noise-clean specifier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants