From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from re-prd-fep-045.btinternet.com (mailomta18-re.btinternet.com [213.120.69.111]) by sourceware.org (Postfix) with ESMTPS id DD3C23858C36 for ; Fri, 10 Nov 2023 14:35:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DD3C23858C36 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=dronecode.org.uk Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=dronecode.org.uk ARC-Filter: OpenARC Filter v1.0.0 sourceware.org DD3C23858C36 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=213.120.69.111 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699626921; cv=none; b=ca2JHyZmfCcRBVU9gaZ44Dys7PkgS4ntYDKe/ZF/cnnxO5Sz8vhbcr7yYcEyQsv+LiFdt5v1Qkcr2KKSfEawIyTooTHpsMYBoO24kvmB+jZ/z0jhU5Crf+0Ywg+pEL5mPRDTM375zlA3QOtxen1wA32De57lMRypXSMNEdKGoyY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699626921; c=relaxed/simple; bh=3QRGVMUjQIcDpLlP3yuB6VmmH9gIzbqQ3tf9wBrATGw=; h=Message-ID:Date:MIME-Version:Subject:To:From; b=b+pH6evEs1nMSXrvQfbCLNiDkz/Ms9r1FRC28FpzQciyRfar5sZpkc6tyVeztBUz1Ty/7T14eb0bzi5Rgw3H7AwIjb4Aj3YhA/nWUcAh/OxCDqF7D0+ZbrY+wPTIPcPr3JNZNi90KPs+a0zuopCLYxSuHkLPSVKSAJ0d4CxbkUg= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from re-prd-rgout-004.btmx-prd.synchronoss.net ([10.2.54.7]) by re-prd-fep-045.btinternet.com with ESMTP id <20231110143517.GEJC21611.re-prd-fep-045.btinternet.com@re-prd-rgout-004.btmx-prd.synchronoss.net>; Fri, 10 Nov 2023 14:35:17 +0000 Authentication-Results: btinternet.com; auth=pass (PLAIN) smtp.auth=jonturney@btinternet.com; bimi=skipped X-SNCR-Rigid: 64D17367098169BA X-Originating-IP: [81.153.98.243] X-OWM-Source-IP: 81.153.98.243 (GB) X-OWM-Env-Sender: jon.turney@dronecode.org.uk X-VadeSecure-score: verdict=clean score=0/300, class=clean X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgedvkedruddvfedgieegucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuueftkffvkffujffvgffngfevqffopdfqfgfvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpeflohhnucfvuhhrnhgvhicuoehjohhnrdhtuhhrnhgvhiesughrohhnvggtohguvgdrohhrghdruhhkqeenucggtffrrghtthgvrhhnpedvvdeuheffuedvtdfhveekieefvdfhfeetffdvudehkeeigeetvdetjeetieeileenucfkphepkedurdduheefrdelkedrvdegfeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhephhgvlhhopegludelvddrudeikedruddruddtjegnpdhinhgvthepkedurdduheefrdelkedrvdegfedpmhgrihhlfhhrohhmpehjohhnrdhtuhhrnhgvhiesughrohhnvggtohguvgdrohhrghdruhhkpdhnsggprhgtphhtthhopedvpdhrtghpthhtoheprggurghmseguihhnfihoohguihgvrdhorhhgpdhrtghpthhtoheptgihghifihhnsegthihgfihinhdrtghomhdprhgvvhfkrfephhhoshhtkeduqdduheefqdelkedqvdegfedrrhgrnhhgvgekuddqudehfedrsghttggvnhhtrhgrlhhplhhushdrtghomhdprghuthhhpghushgvrhepjhhonhhtuhhrnhgvhiessghtihhnthgvrhhnvghtrdgtohhmpdhgvghokffr pefiuedpoffvtefjohhstheprhgvqdhprhguqdhrghhouhhtqddttdeg X-RazorGate-Vade-Verdict: clean 0 X-RazorGate-Vade-Classification: clean Received: from [192.168.1.107] (81.153.98.243) by re-prd-rgout-004.btmx-prd.synchronoss.net (5.8.814.02) (authenticated as jonturney@btinternet.com) id 64D17367098169BA; Fri, 10 Nov 2023 14:35:17 +0000 Message-ID: <45e21c6e-98a4-443b-bfbd-d3475c3452c0@dronecode.org.uk> Date: Fri, 10 Nov 2023 14:35:16 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Missing Python dependencies for venv standard library module Content-Language: en-GB To: Adam Dinwoodie , The Cygwin Mailing List References: <20231108161743.fhr7sum3k445ag67@lucy.dinwoodie.org> From: Jon Turney In-Reply-To: <20231108161743.fhr7sum3k445ag67@lucy.dinwoodie.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 08/11/2023 16:17, Adam Dinwoodie via Cygwin wrote: > Hullo, > > It looks like the python39 package is missing dependencies on > python-setuptools-wheel and python-pip-wheel. I've not checked, but I > suspect earlier Python versions are missing the same dependencies. > Without these, the Python built-in venv module doesn't work: > > $ python3 -m venv v > Error: Command '['/home/WDAGUtilityAccount/v/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1. > > Compare when the both python-setuptools-wheel and python-pip-wheel are > installed: > > $ python3 -m venv v > $ . v/bin/activate > (v) $ python3 -c 'import sys; print(sys.path)' > ['', '/usr/lib/python39.zip', '/usr/lib/python3.9', '/usr/lib/python3.9/lib-dynload', '/home/WDAGUtilityAccount/v/lib/python3.9/site-packages'] > (v) $ deactivate > > I've attached cygcheck files from sandbox VMs for both the broken and > working cases. I'm not sure what the correct fix is here -- possibly > adding dependencies, possibly changing how things are packaged -- but > I'd expect Python standard library modules to either work or to give an > error message that makes it clearer what additional packages are > required to make them work. Yeah. I have a vague recollection there was some other case recently where one these being missing was causing some confusion. I think the easiest way to convince me that this is a historical oversight would be to look how other distros do this: If they have python depend on python-setuptools and python-wheel, then we probably should as well...