www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2025/04/17/18:05:38

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 53HM5c4g2845874
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 53HM5c4g2845874
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=Dc9NyE9p
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9ACDF385703B
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1744927536;
bh=aKGeVYenQCAeRV2XrbzRKV0crnTBRJf/BzET16D07sw=;
h=References:In-Reply-To:Date:Subject:To:Cc:List-Id:
List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
From:Reply-To:From;
b=Dc9NyE9pw8oUqAtfhoejNQjMrThTdorwqe7tkwe0MDYNvbMHj4AkMAaf2jMDDzihO
sVjQb7+HUjrTZRmnz2BxvRVpBkYV5Voj+Am+/JZE750+m/+pXgA0kCj1kLZ7btLFjr
lSMBA7/r1zxO5jno381SXjkdzICXqiLoYw/16utQ=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1F62C3858C41
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 1F62C3858C41
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1744927510; cv=none;
b=XvMuT4j6nbY5JwTYv3snbq1CSRTg+WXmHKQiS3HnFcAycgbEh+jQs04UCeajVsNoPQXHh/72hu0tgBxXCI8QdIGkSbvxCznNfSEJSIN0e6HrbrMls0FVYj3vHm0qlH8V3qzSdRQxoEBHmlE1M6Zd8wRuDoiiNbH62NJVOn5IF4w=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1744927510; c=relaxed/simple;
bh=KwKj1t1OHkMBc0Pxz4kekYy2HAgS5C3E24Ody3+TgyA=;
h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To;
b=OhqJNVfDW4S0zWFE5vq30ihpNKIfOpP9mPFBJZrjaxSHwjtoFmk8y3ELQHOaZLBUaWyle0gsSqJPvEQ+EErEP2aprRxke6fasRXD5phlksKgPFc8flw5q1x2MAcmCx1qcxdqlggqF2jbplQslinkHzc8/ayEhJcbWHgzQ6dZX4s=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1F62C3858C41
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1744927509; x=1745532309;
h=cc:to:subject:message-id:date:from:in-reply-to:references
:mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
:reply-to;
bh=ellGkNjPisKXhUTpa/HzhMhI+KnltVXjpVgWULdjO2I=;
b=I8pyO+zIdY+7pdTvoc6c82/qBg23qxiE9eK0QYi77bEFj9QkY5b0nBOaRg0AhCPlno
GzsWYq++HLEyebEin+O0+ASmcPMFs2ch3v3EWto6uhPpoD0DAA11ulqvsPbdTyfOzLLe
gIFEN2w2MupqPkuZX7r6YVQ51LWvG+BvbX5o0H07G1icYX1yneh17txBpIj1WQNARDSL
VAhFau27Db5ohTiDRBdOBK/60ET3HU1PmGrXJhqyj4Yx8GixaoKhlqacfjNlhWly0SK4
wm9zKVqj1RQ3PLeYa3xBl+v8QZAYqJiM+SoPe0ETe75HmpK4nASVSGDV6xLsrcvCTiFs
iD0w==
X-Gm-Message-State: AOJu0YxF6FYOTN10Xn78iFnDkZyc1hYcBStO1Jl/sd3KKnOPzd7EFVvy
YqL/hbHMsfm6wjNDZJb0sxgAdcw+/IwZs7iFiwzGMtHAnN/QCFQ7fdgqVEWSrKPoCpqkO7U0oXx
ddg5ysro2DPiR2iADUGManF6xmPNbF3zjydw=
X-Gm-Gg: ASbGncsR7jdhn2PDn2t7UgU/Ks0UJTAQ6p+L5dfTKjvVblUQn9Us1EBtbkIPVzPtrrz
ZeTq7nl/9YAehhZ8yDVGwJyBC+rFWpnWbjVmyN0gORAE/KRqi/xHUDzCJsoe++qm2SFSvxGVtL0
Av4YG1G2WtDnHDphB6JWpYzw==
X-Google-Smtp-Source: AGHT+IElkOKRezU/PY+pOVRojc51QDryoQcqaZHdM0l9Cjt5q5DHYVu+but4Iq/4dCMUiSrwcLAtP6bmkduEqwYlINE=
X-Received: by 2002:a17:90b:5188:b0:2f9:c144:9d13 with SMTP id
98e67ed59e1d1-3087bbb7157mr806659a91.24.1744927508872; Thu, 17 Apr 2025
15:05:08 -0700 (PDT)
MIME-Version: 1.0
References: <82d1952c-5550-4316-9891-1c137e4f6b2e AT prover DOT com>
In-Reply-To: <82d1952c-5550-4316-9891-1c137e4f6b2e@prover.com>
Date: Thu, 17 Apr 2025 15:04:56 -0700
X-Gm-Features: ATxdqUERSz4Th-DbiVsvVlfC95aSIvluq4I4t1vK8BnrO4BhFofCOyeD-KiiUyw
Message-ID: <CAJtSMgsXGmRff2etdoVOST1d+OZbV1EpkEt0_qpDFcO_Z6_Dag@mail.gmail.com>
Subject: Re: Packages needed to create a virtual environment in Python 3.9
To: Daniel Abrahamsson <daniel DOT abrahamsson AT prover DOT com>
Cc: cygwin AT cygwin DOT com
X-Content-Filtered-By: Mailman/MimeDel 2.1.30
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: David Dyck via Cygwin <cygwin AT cygwin DOT com>
Reply-To: David Dyck <david DOT dyck AT gmail DOT com>
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 53HM5c4g2845874

I ran into this error today
 ( I was trying to use https://github.com/raulgotor/linkerscope.git )

but even with an empty folder  I get error message
even after I install  " python-pip-wheel" from setup

$ mkdir /tmp/pip-test ; cd /tmp/pip-test ; python3.9 -m venv venv
mkdir /tmp/pip-test ; cd /tmp/pip-test ; python3.9 -m venv venv
Error: Command '['/tmp/pip-test/venv/bin/python3.9.exe', '-Im',
'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.

I also get errors from the AI suggested test of

$  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 <module>
    _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


chatgpt did suggest that cygwin had issues with ensurepip




On Wed, Mar 5, 2025 at 2:29 AM Daniel Abrahamsson via Cygwin <
cygwin AT cygwin DOT com> wrote:

> Hi,
>
> I have installed the following Python packages:
>
> * python39
> * python39-devel
> * python39-pip
>
> Then I've run `python3.9 -m venv venv`, which results in:
>
>  > Error: Command
> '['/home/daab/build-essentials/venv/bin/python3.9.exe', '-Im',
> 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status
> 1.
>
> Installing the package "python-pip-wheel" solves the error. I am
> wondering if the "venv" module ought to work out of the box, or if
> manually adding this additional package is what you are supposed to do?
> It was not very obvious to me, and I have failed to find any
> documentation on it. Is it just poor search skills on my side? Should
> perhaps python-pip-wheel be a dependency of python39-pip?
>
> Regards,
> Daniel
>
>
> --
> 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
>

-- 
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019