DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 504HVs5u1877502 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 504HVs5u1877502 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=SHhXPG/b X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9B6DC3858C3A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1736011912; bh=tc/qO7oEvXVSh5MMY0JrKUSuvft/JZScidkTqNFvEn4=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=SHhXPG/bu/f/XQJVjgGrMuexJYXO2m1L9s0O62fDEq+gDPu+BLqw3tgp/BYPx7XuE THQ9+j2b27idcZUd4ECOsYz1QAg6BoPiteqGrNL3sPEpA9dOCoU7sulUedmkXH+Cpn 2ZIV7KL8l6cKZVHshaaMRgR7JHUNjqwNTe1hohcQ= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 476323858D20 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 476323858D20 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1736011854; cv=none; b=eRIxMB8gyVv91ZlCZO75jJKR5KDgbN3Fi69eAbrVFCtJ3xTakbe/Oc335VWLTzFk44SwnDwIaU7P+yaAH6CXeSFVAAexFRMDMa0+4l0kupPYQTDyIY2egM8+jQawMTLko/AMD8QJ3hbFACi5EqjWbzRi3M3oXVtGTznMrp1atN8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1736011854; c=relaxed/simple; bh=UFCLp4a4lzRsV5EqDnYL8WE4RCFkBqguJXRrfosWOw0=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=VbStALYYwUElN1tGEJHgP2UEc+svHHoa0NROz5Y3K5PonznSkB8daxtcqLLfG0AZ7WPTYuAPV80RLIVv07LnXNJEIIRFAsfCiMVwHTp5cbI0GVtOoTgRYbFX+I+vi5jDvgASoWkBQ5PgjhvMI1KMSuE949qC+6Tjq9MQR836kPA= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 476323858D20 DKIM-Filter: OpenDKIM Filter v2.11.0 rctfw2.r-t.org E365C1816642 Message-ID: <5adee72a-02b0-41e3-a7a5-895e18dfcc86@r-t.org> Date: Sat, 4 Jan 2025 12:30:52 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: random hangs To: Marco Atzeri , cygwin AT cygwin DOT com References: <6aa017e0-b333-4c0e-affa-78c8777372a5 AT gmail DOT com> <1b894ce0-ee20-4408-95ec-54202d0721bc AT r-t DOT org> <7cdf5283-5507-4d35-aec6-a4bbab33ad48 AT r-t DOT org> <5b617762-38fd-4897-afff-219b92915b9f AT r-t DOT org> <66233ccc-7074-4c95-bb19-6c6c5092f94f AT gmail DOT com> <933a5502-c0c4-f149-70ba-89421ae893a7 AT jdrake DOT com> <3c9b96d5-b45f-49f5-a836-07812e34bbb2 AT gmail DOT com> Content-Language: en-US In-Reply-To: <3c9b96d5-b45f-49f5-a836-07812e34bbb2@gmail.com> 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: Robert Terzi via Cygwin Reply-To: Robert Terzi 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 504HVs5u1877502 On 1/4/2025 12:35 AM, Marco Atzeri wrote: > On 03/01/2025 21:47, Robert Terzi via Cygwin wrote: >> On 1/3/2025 2:45 PM, Jeremy Drake via Cygwin wrote: [...] >> >> I'm seeing reproducible (for me) hangs with the test Python 3.12 packages under Cygwin 3.5.4. >> > >> First, I see a hang doing `python312 -m pip install ipython` in a venv. > > ipython is a too large package with too many dependencies. > Not a good test case. > I will build some more 3.12 modules for that scoepe I agree IPython is a complex package with a lot of dependencies, though the hang with IPython doesn't take much to reproduce. So yes, lets focus on the simpler problems. > > >> The hang occurs during downloading. If the package is already downloaded >> it doesn't hang. So I'm doing a `pip cache purge` to get it to reoccur. >> >> It usually hangs on downloading Jedi which is a large-ish module. >> >>    Downloading jedi-0.19.2-py2.py3-none-any.whl (1.6 MB) >>       ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.0/1.6 MB ? eta -:--:-- > > 1.6 Mb does not seem a large load No it doesn't. But I see hangs on both Jedi and Pygments during IPython install. If I install them individually there is no hang. > > >> >> Steps I'm taking are: >> # clean up from previous runs >> rm -rf /srv/pyvenvs/py312 >> pip3 cache purge >> >> >> # Create a venv in an empty directory >> python3.12 -m venv --system-site-packages --without-pip /srv/pyvenvs/py312 >> >> (The --without-pip is needed because it fails without it running `-m ensurepip` >> It is looking for the pip wheel but not finding it.) > > $ python3.9 -m ensurepip --version > pip 19.2.3 > > $ python3.12 -m ensurepip --version > pip 24.3.1 > > $ python3.12 -m pip --version > pip 24.3.1 from /usr/lib/python3.12/site-packages/pip (python 3.12) > > what is coming from your system ? > > Looks like my versions appear to match yours. Note I haven't installed the newer (test) 3.9 packages, cygcheck shows: python39 3.9.16-1                       OK python39-pip 24.0-1                         OK $ python3.9 -m ensurepip --version pip 19.2.3 $   python3.12 -m ensurepip --version pip 24.3.1 $ python3.12 -m pip --version pip 24.3.1 from /usr/lib/python3.12/site-packages/pip (python 3.12) Also, the error I see with venv is that something you see as well or is it just me? $ python3.12 -m venv /srv/pyvenvs/test312 Error: Command '['/srv/pyvenvs/test312/bin/python3.12', '-m', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1. $ python3.12 -m ensurepip Traceback (most recent call last):   File "", line 198, in _run_module_as_main   File "", line 88, in _run_code   File "/usr/lib/python3.12/ensurepip/__main__.py", line 5, in     sys.exit(ensurepip._main())              ^^^^^^^^^^^^^^^^^   File "/usr/lib/python3.12/ensurepip/__init__.py", line 284, in _main     return _bootstrap(            ^^^^^^^^^^^   File "/usr/lib/python3.12/ensurepip/__init__.py", line 176, in _bootstrap     whl = wheel_path.read_bytes()           ^^^^^^^^^^^^^^^^^^^^^^^   File "/usr/lib/python3.12/pathlib.py", line 1019, in read_bytes     with self.open(mode='rb') as f:          ^^^^^^^^^^^^^^^^^^^^   File "/usr/lib/python3.12/pathlib.py", line 1013, in open     return io.open(self, mode, buffering, encoding, errors, newline) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3.12/ensurepip/_bundled/pip-24.3.1-py3-none-any.whl' Thank you for your help on this and all your work as a Cygwin maintainer. --Rob -- 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