question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] PIP3 Install hangs indefinitely

See original GitHub issue

setuptools version

setuptools==58.0.2

Python version

Python 3.7

OS

CentOS Linux 7 (in Docker)

Additional environment information

Running code in gitlab ci/cd docker runner. Gitlab version 14.0.1.

Description

We run pip3 install --upgrade setuptools pip and after that pip3 install -r requirements-dev.txt with following content:

mock
coverage
flake8
mypy
pytest
apache-airflow==1.10.11
types-PyYAML
types-requests

Until yesterday this step finished in under 2 minutes with setuptools==58.0.0. Today newer version of setuptools has been pulled which made step timeout after 1hr. The job is stuck on pip3 install step with croniter package being consistently the last one (stuck for ~55 minutes) before timeout happens.

Expected behavior

pip3 install -r requirements-dev.txt finishes ok

How to Reproduce

run pip3 install --upgrade setuptools pip and after that pip3 install -r requirements-dev.txt with following content:

mock
coverage
flake8
mypy
pytest
apache-airflow==1.10.11
types-PyYAML
types-requests

Output

  Downloading https://xxx/artifactory/api/pypi/ISP-PyPI/packages/packages/28/27/f2c883373aa58fe77ecfc09a984f1ae52bc05790c0eee66b87f65d14cbfe/croniter-0.3.23.tar.gz (18 kB)
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. If you want to abort this run, you can press Ctrl + C to do so. To improve how pip performs, tell us what happened here: https://pip.pypa.io/surveys/backtracking
  Downloading https://xxx/artifactory/api/pypi/ISP-PyPI/packages/packages/79/f1/3d9dac6f43a1f789ad79c1dc2589e7389fc4f0c4753a451485ecb326c357/croniter-0.3.22.tar.gz (18 kB)
  Downloading https://xxx/artifactory/api/pypi/ISP-PyPI/packages/packages/69/84/1a839fdb454929b2f5f34dfc0f6ae9c393193e4c088fa62b37ec318c0df4/croniter-0.3.20.tar.gz (18 kB)
ERROR: Job failed: execution took longer than 1h0m0s seconds

Code of Conduct

  • I agree to follow the PSF Code of Conduct

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jaracocommented, Sep 8, 2021

Oh, interesting. pyhash has very little Python and running lib2to3 on it produces a very small diff:

pyhash master $ python -m lib2to3 --write *.py
RefactoringTool: Skipping optional fixer: buffer
RefactoringTool: Skipping optional fixer: idioms
RefactoringTool: Skipping optional fixer: set_literal
RefactoringTool: Skipping optional fixer: ws_comma
--- __init__.py (original)
+++ __init__.py (refactored)
@@ -1,6 +1,6 @@
 #!/usr/bin/env python
 # -*- coding: utf-8 -*-
-from __future__ import unicode_literals
+
 
 import sys
 import inspect
RefactoringTool: Refactored __init__.py
RefactoringTool: Files that were modified:
RefactoringTool: __init__.py

The easiest fix for this would be for pyhash to release a Python 3 wheel in PyPI of the latest release. It should also consider dropping use of 2to3 as it’s not meaningful in that project.

0reactions
mgorsk1commented, Sep 9, 2021

Thanks @potiuk for info, indeed we will just bump airflow dep as we are at 2.1.3 anyways and looks like we just forgot to update unit tests deps 😅

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pip Install hangs - python - Stack Overflow
I'm trying to install a Python package using the command "pip install" but as soon as I hit enter nothing happens. The action...
Read more >
pip install hangs : Forums - PythonAnywhere
pip install hangs. In a fresh Bash console, I am trying to use the command. pip install --user Django==3.1.9. This results in.
Read more >
pip install hangs with interactive setup.py setups · Issue #2732
Try: pip install egenix-pyopenssl with Python 2.7 to see what I mean. ... setup.py like this just fails immediately instead of hang forever....
Read more >
pip hangs on `Loading macOS` when installing a package
When installing anything with pip , it hangs indefinitely, for example (running pip install geoclue2 -v ):
Read more >
Changelog - pip documentation v22.3.1
pip freeze will now always fallback to reporting the editable project location when it encounters a VCS error while analyzing an editable requirement....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found