From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by sourceware.org (Postfix) with ESMTPS id 604753858434 for ; Fri, 25 Feb 2022 09:37:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 604753858434 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-x532.google.com with SMTP id h15so6554739edv.7 for ; Fri, 25 Feb 2022 01:37:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:in-reply-to:content-transfer-encoding; bh=Ir+mQQf3MTCKDDN7TiiwPGdwu0eqTACvpxNRPN4P54E=; b=enfX5/thqCNi520meSsUCV7M4962y5gSmYd/n/rnLfNlbBf8ExwA5+eqnNvAEzw34i ZQ4+GXp3IgVzUSaBSYbqeyI84PLUQQvx4Aw2lH1Ar4yyVLpLKFvUskez4KWH+G3Qs5Kz KPQhz9iJ38iF+wBAuMfeVNRP065ufn93KmqXtLL68i7K2iEf5Gtu6F+5ba9RPLuky7z+ iBhPqBg9batinDwqZy7IrWdohSDFQzCeYg5bU26Y0+Td4Q0D1vHbbyDpixUI5CRhI34r p+EsX+ppRXLzOcZWL/MRsun1IbHtVnZmYubZjPLNKhiNJmg+o+kJdmiD1VWBjXUBsYMA Tffg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=Ir+mQQf3MTCKDDN7TiiwPGdwu0eqTACvpxNRPN4P54E=; b=Tyt+lTmExtcoatyR5vxv+xQbcKGnGUmYe5F8j15mO4HyaNJnzhA218BdxdVuJfn9WE pDF/GR1Nj33IV7zfH03N3dle8I16Zsf9Y7Xi4hHG7y8hH+HivY9221fhXy3PC+lidI1b QSUPpgwT7UUJi1u8Zc/ukRFIKKOvPZAYAvh6GAjitAnqF4COcOXHGHZKsuK+qu1HeWLP /lzcbnwfbCse91K4zxxyc8GfZLAtz3b9HVL1LoBX3yilwf/2CXIZa1yHnphyoL3zfDeH iM+3X6rd/Rexv8WEvDavNnUeKX668SgPGeqzFYH/822miRVAT2a6lgOITSukVmPo5wWt uAEA== X-Gm-Message-State: AOAM531dGLZWET0KRlIRMXObHqVTUR+59NoDuEXtPaskqdXYLG8h166R 74Lf941pYOL/x/sP+4n/0qTX0OWtHtA= X-Google-Smtp-Source: ABdhPJz28TxXhHzxpVDkTLVRRI1ina00Em0GEU218PXN4UMcwbKdzePt1Yuz8ozmjfIpWh3uwQDgAg== X-Received: by 2002:aa7:ca04:0:b0:410:92a6:1a9e with SMTP id y4-20020aa7ca04000000b0041092a61a9emr6169140eds.411.1645781842042; Fri, 25 Feb 2022 01:37:22 -0800 (PST) Received: from ?IPV6:2003:cc:9f26:a343:cddf:fb6b:83db:1cf1? (p200300cc9f26a343cddffb6b83db1cf1.dip0.t-ipconnect.de. [2003:cc:9f26:a343:cddf:fb6b:83db:1cf1]) by smtp.gmail.com with ESMTPSA id bo14-20020a170906d04e00b006ce98d9c3e3sm783501ejb.194.2022.02.25.01.37.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 25 Feb 2022 01:37:21 -0800 (PST) Message-ID: Date: Fri, 25 Feb 2022 10:37:19 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: python37-requests package does depends on charset_normalizer or chardet Content-Language: it To: cygwin@cygwin.com, Adam Dinwoodie References: <20220223145721.7br2bxokvv4vyih4@lucy.dinwoodie.org> <20220225091109.vorjvluayswlpdc5@lucy.dinwoodie.org> From: Marco Atzeri In-Reply-To: <20220225091109.vorjvluayswlpdc5@lucy.dinwoodie.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Feb 2022 09:37:25 -0000 On 25.02.2022 10:11, Adam Dinwoodie wrote: > On Fri, Feb 25, 2022 at 04:40:01PM +0800, Sharuzzaman Ahmat Raslan wrote: >> On Wed, Feb 23, 2022 at 10:58 PM Adam Dinwoodie wrote: >>> >>> On Wed, Feb 23, 2022 at 06:56:46PM +0800, Sharuzzaman Ahmat Raslan wrote: >>>> On Wed, Feb 23, 2022 at 6:37 PM Sharuzzaman Ahmat Raslan >>>> wrote: >>>>> >>>>> Hi Cygwin package manager. >>>>> >>>>> I'm on my new laptop, and installing packages as necessary. >>>>> >>>>> After installing python37-requests, my program raised an exception like this: >>>>> >>>>> Traceback (most recent call last): >>>>> File "get_header.py", line 1, in >>>>> import requests >>>>> File "/usr/lib/python3.7/site-packages/requests/__init__.py", line >>>>> 100, in >>>>> check_compatibility(urllib3.__version__, chardet_version, >>>>> charset_normalizer_version) >>>>> File "/usr/lib/python3.7/site-packages/requests/__init__.py", line >>>>> 85, in check_compatibility >>>>> raise Exception("You need either charset_normalizer or chardet installed") >>>>> Exception: You need either charset_normalizer or chardet installed >>>>> >>>>> I did not see python37-requests depends or pulling in >>>>> charset_normalizer or chardet during installation. Is that >>>>> intentional? >>>>> >>>>> Thank you. >>>> > Ah, I've worked out what confused me: I was looking at the old > "requires" line in the setup.ini file, rather than the new "depends2" > line. The newer style of specifying dependencies, used by recent Cygwin > installers (including the one you were using) doesn't list > python37-chardet as a dependency. I suspect that's a bug, and it looks > like a bug that was introduced with the most recent python37-requests > package, as it's present for the previous 2.24.0-1 and 2.25.1-1 > releases. > > I think this is one for Marco Atzeri, as the python-requests package > maintainer... > > In the meantime, you've already found the workaround: just manually > install the relevant python-chardet package. > Noted. On the TODO list Regards MArco