From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lucy.dinwoodie.org (b.8.0.0.8.9.b.0.2.f.0.9.2.a.d.b.d.a.0.2.5.1.e.d.0.b.8.0.1.0.0.2.ip6.arpa [IPv6:2001:8b0:de15:20ad:bda2:90f2:b98:8b]) by sourceware.org (Postfix) with ESMTPS id 8EA663948A63 for ; Wed, 23 Feb 2022 14:57:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8EA663948A63 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=dinwoodie.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=dinwoodie.org Received: from adam by lucy.dinwoodie.org with local (Exim 4.94.2) (envelope-from ) id 1nMt4z-005EFw-LD for cygwin@cygwin.com; Wed, 23 Feb 2022 14:57:21 +0000 Date: Wed, 23 Feb 2022 14:57:21 +0000 From: Adam Dinwoodie To: cygwin@cygwin.com Subject: Re: python37-requests package does depends on charset_normalizer or chardet Message-ID: <20220223145721.7br2bxokvv4vyih4@lucy.dinwoodie.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, PDS_RDNS_DYNAMIC_FP, RDNS_DYNAMIC, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no 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: Wed, 23 Feb 2022 14:57:26 -0000 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. > > > Installing python37-chardet manually clears the exception, but not > solving the initial issue. It looks to me as though python37-requests correctly lists a dependency on python37-chardet in Cygwin's setup.ini. Can you please provide the setup.log.full file from when you installed python37-requests, as well as the cygcheck output per the link below? > Problem reports: https://cygwin.com/problems.html