random hangs
Robert Terzi
rct@r-t.org
Sat Jan 4 17:30:52 GMT 2025
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 "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/usr/lib/python3.12/ensurepip/__main__.py", line 5, in <module>
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
More information about the Cygwin
mailing list