X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 05EE53857011 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1704218981; bh=fMXkGYcXraC9bFMvpYL/6RILEVqF+20SWD2OoeZDR7U=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=XrBG0s90kfnxLRLjql/UGz+xaHJ2oDQ2qCVQ2dioBWzJv73Wk8VnfJ32Gj3xZEqV3 chu3laERZZaHb24rvyJg3AEUMHB/o7A/w7kSAWLImujV2mVDdHJHpZetlJp2sGTVSK BI7pLpr2MaD98DTTXI8viS9xisjU+RFa2cS2i6Tk= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2CB4F3858284 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2CB4F3858284 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704218922; cv=none; b=Yvqwk0HKT3TpRfmnRUozXVl0xf4zWnqlYtH6ETXefRArrvzXnVKWphsMin8sYHvc5pLs5TVHXQ0D6ea6p8SmEXD/orFKMIwZVyG2GChdbC1GtZFChV5HHKPuZF7QslChEOClV9G8tnzhMCaiMq/+ZelNtBmPy7uZsH5ctr2hw8U= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704218922; c=relaxed/simple; bh=KtmJs065wDCE3FzrtJzhcE/J9Si3Wsz9wROhTESJiyA=; h=Message-ID:Date:MIME-Version:Subject:To:From; b=UngUdKOpcyP6/j0k5YT+WjyyIkCr9x60pT60G1dPIeu3pYrs401W6yfYYH5nJu+tYxblJJ9LGUgNnn/gpoMdVdHAplpeNe84BDjGycv0MNyoeP0RmLiijkVpQTwt2J3boreKkz7jgYESHGZp7dewDGO4jEpAn9AgsH8cYkcG4dc= ARC-Authentication-Results: i=1; server2.sourceware.org Message-ID: Date: Tue, 2 Jan 2024 11:08:38 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Package request: ytdl-org/youtube-dl Content-Language: en-CA To: cygwin AT cygwin DOT com References: <65d69c48-2d99-4f28-afcc-ea4af2288d1b AT oskog97 DOT com> Organization: Systematic Software In-Reply-To: <65d69c48-2d99-4f28-afcc-ea4af2288d1b@oskog97.com> X-Rspamd-Queue-Id: 53DAF32 X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_00, BODY_8BITS, KAM_DMARC_STATUS, KAM_LOTSOFHASH, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Rspamd-Server: rspamout06 X-Stat-Signature: zwm9zczfmjjrw11ibkajy1oc1sq56otk X-Session-Marker: 427269616E2E496E676C69734053797374656D6174696353572E61622E6361 X-Session-ID: U2FsdGVkX19iuwIRugddyKxCU0WgDlgJkBDa+DNuR0k= X-HE-Tag: 1704218919-630226 X-HE-Meta: U2FsdGVkX1+vk7E1ACaFkF2XxJieA0N+5NH46+AGRcCf1bE7GKepF1j5UeeEHlPwIGLXfHfEPmxX54zwJlmsIzRkc2TRERf8BjASYrJi3PFP/A1x4JmhJ+ZTQPehHQD1ey8qUI+CecVU2+W3t3FrH+jJl9jSD1rSO3Nt7stglwOq7uDL4TX6O8dDdRCyUMoXxYOGeSo1IZxh3ag3EA4fW2Lc250cT8Q/RsobpjwHpE1wTnU6JF9+fh+ruF0uNkWU9uWbjRBwpGmSMVLWsvH3AtpIpf2+cTWjqPWheI/q3CWpK1bZ5s0DvUNzMj/bI1OIrxHvjBsx3hAE+2RKlA36Va++7lF0AUzA X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Brian Inglis via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Brian Inglis Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 402I9fIU032077 On 2024-01-02 03:26, Oskar Skog via Cygwin wrote: > On 2024-01-02 08:40, Cedric Blancher via Cygwin wrote: >> Good morning! >> I'd like to request https://github.com/ytdl-org/youtube-dl as a Cygwin >> package, so we can mirror training videos locally. >> Also, it is a cool demo to show the power of Cygwin, to show that it >> can download youtube videos without paying for "Youtube Premium" =:-) > I think yt-dlp might be better.  I had to switch to it a while ago when > youtube-dl took too long to fix an issue with downloading from Youtube. > You also don't need to package it, you should be able to install it with pip. > python3 -m ensurepip > pip3 install yt-dlp Cygwin ensurepip fails as it is bundled in python39 but install yt_dlp works. Got a command line test script? $ python3 -m ensurepip Traceback (most recent call last): File "/usr/lib/python3.9/runpy.py", line 188, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error) File "/usr/lib/python3.9/runpy.py", line 147, in _get_module_details return _get_module_details(pkg_main_name, error) File "/usr/lib/python3.9/runpy.py", line 111, in _get_module_details __import__(pkg_name) File "/usr/lib/python3.9/ensurepip/__init__.py", line 30, in _SETUPTOOLS_VERSION = _get_most_recent_wheel_version("setuptools") File "/usr/lib/python3.9/ensurepip/__init__.py", line 27, in _get_most_recent_wheel_version return str(max(_wheels[pkg], key=distutils.version.LooseVersion)) ValueError: max() arg is an empty sequence $ pip3 install yt-dlp Collecting yt-dlp Downloading yt_dlp-2023.12.30-py2.py3-none-any.whl.metadata (160 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 160.7/160.7 kB 1.1 MB/s eta 0:00:00 Collecting mutagen (from yt-dlp) Downloading mutagen-1.47.0-py3-none-any.whl.metadata (1.7 kB) Collecting pycryptodomex (from yt-dlp) Downloading pycryptodomex-3.19.1.tar.gz (4.8 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.8/4.8 MB 17.4 MB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... done Requirement already satisfied: certifi in /usr/local/lib/python3.9/site-packages (from yt-dlp) (2023.7.22) Requirement already satisfied: requests<3,>=2.31.0 in /usr/lib/python3.9/site-packages (from yt-dlp) (2.31.0) Collecting urllib3<3,>=1.26.17 (from yt-dlp) Downloading urllib3-2.1.0-py3-none-any.whl.metadata (6.4 kB) Collecting websockets>=12.0 (from yt-dlp) Downloading websockets-12.0-py3-none-any.whl.metadata (6.6 kB) Collecting brotli (from yt-dlp) Downloading Brotli-1.1.0.tar.gz (7.4 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.4/7.4 MB 18.7 MB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... done Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.9/site-packages (from requests<3,>=2.31.0->yt-dlp) (2.1.0) Requirement already satisfied: idna<4,>=2.5 in /usr/lib/python3.9/site-packages (from requests<3,>=2.31.0->yt-dlp) (3.3) Downloading yt_dlp-2023.12.30-py2.py3-none-any.whl (3.0 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.0/3.0 MB 3.4 MB/s eta 0:00:00 Downloading urllib3-2.1.0-py3-none-any.whl (104 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 104.6/104.6 kB 1.1 MB/s eta 0:00:00 Downloading websockets-12.0-py3-none-any.whl (118 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 118.4/118.4 kB 1.2 MB/s eta 0:00:00 Downloading mutagen-1.47.0-py3-none-any.whl (194 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 194.4/194.4 kB 2.6 MB/s eta 0:00:00 Building wheels for collected packages: brotli, pycryptodomex Building wheel for brotli (pyproject.toml) ... done Created wheel for brotli: filename=Brotli-1.1.0-cp39-cp39-cygwin_3_4_10_x86_64.whl size=2906244 sha256=d3fc69d3cc5076fffeff0104327d0a2fbdce52083a3ad89ed97bdc0c0446a457 Stored in directory: /mnt/c/Users/bwi/.cache/pip/wheels/e3/c7/48/21d8f0b69bca52c19804d681cf8c428c0e7b211b7da1a1b1f9 Building wheel for pycryptodomex (pyproject.toml) ... done Created wheel for pycryptodomex: filename=pycryptodomex-3.19.1-cp35-abi3-cygwin_3_4_10_x86_64.whl size=2736435 sha256=6b6ee7d34fb59369418b2c88d1743072f4c6f8d038e2cc77b9722af63c29b0af Stored in directory: /mnt/c/Users/bwi/.cache/pip/wheels/32/52/9c/c1698f7da3d204f335431681bb20b885a4c56e49fb8dad0adf Successfully built brotli pycryptodomex Installing collected packages: brotli, websockets, urllib3, pycryptodomex, mutagen, yt-dlp Attempting uninstall: urllib3 Found existing installation: urllib3 1.26.7 Uninstalling urllib3-1.26.7: Successfully uninstalled urllib3-1.26.7 Successfully installed brotli-1.1.0 mutagen-1.47.0 pycryptodomex-3.19.1 urllib3-2.1.0 websockets-12.0 yt-dlp-2023.12.30 -- Take care. Thanks, Brian Inglis Calgary, Alberta, Canada La perfection est atteinte Perfection is achieved non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut -- Antoine de Saint-Exupéry -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple