Skip to content

infinite loop after pip install on Android API 24 #5322

Closed
@xdegaye

Description

@xdegaye
  • Pip version: 9.0.1
  • Python version: 3.8 (current master branch)
  • Operating system: Android 7.0 (API 24)

Description:

After a successfull install of a first package (pygeodesy) pip never exits and must be interrupted with ^C.

What I've run:

$ python -m ensurepip --upgrade --default-pip
$ pip install pygeodesy
^CTraceback (most recent call last):
  File "/data/data/com.termux/files/usr/local/lib/python3.8/site-packages/pip/_vendor/lockfile/linklockfile.py", line 31, in acquire
    os.link(self.unique_name, self.lock_file)
PermissionError: [Errno 13] Permission denied: '/data/data/com.termux/files/home/.cache/pip/localhost-7f1b3a98.201375002993129885618981' -> '/data/data/com.termux/files/home/.cache/pip/selfcheck.json.lock'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/data/data/com.termux/files/usr/local/bin/pip", line 11, in <module>
    sys.exit(main())
  File "/data/data/com.termux/files/usr/local/lib/python3.8/site-packages/pip/__init__.py", line 233, in main
    return command.main(cmd_args)
  File "/data/data/com.termux/files/usr/local/lib/python3.8/site-packages/pip/basecommand.py", line 252, in main
    pip_version_check(session)
  File "/data/data/com.termux/files/usr/local/lib/python3.8/site-packages/pip/utils/outdated.py", line 138, in pip_version_check
    state.save(pypi_version, current_time)
  File "/data/data/com.termux/files/usr/local/lib/python3.8/site-packages/pip/utils/outdated.py", line 71, in save
    with lockfile.LockFile(self.statefile_path):
  File "/data/data/com.termux/files/usr/local/lib/python3.8/site-packages/pip/_vendor/lockfile/__init__.py", line 197, in __enter__
    self.acquire()
  File "/data/data/com.termux/files/usr/local/lib/python3.8/site-packages/pip/_vendor/lockfile/linklockfile.py", line 50, in acquire
    time.sleep(timeout is not None and timeout / 10 or 0.1)
KeyboardInterrupt

Metadata

Metadata

Assignees

No one assigned

    Labels

    auto-lockedOutdated issues that have been locked by automationproject: vendored dependencyRelated to a vendored dependencytype: bugA confirmed bug or unintended behavior

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions