Skip to content

setting PIP_NO_CACHE_DIR=yes causes pip to crash #5385

@njsmith

Description

@njsmith
~$ pip --version
pip 10.0.1 from /home/njs/.user-python3.5-64bit/local/lib/python3.5/site-packages/pip (python 3.5)

~$ PIP_NO_CACHE_DIR=yes pip install
Exception:
Traceback (most recent call last):
  File "/home/njs/.user-python3.5-64bit/local/lib/python3.5/site-packages/pip/_internal/basecommand.py", line 228, in main
    status = self.run(options, args)
  File "/home/njs/.user-python3.5-64bit/local/lib/python3.5/site-packages/pip/_internal/commands/install.py", line 241, in run
    with self._build_session(options) as session:
  File "/home/njs/.user-python3.5-64bit/local/lib/python3.5/site-packages/pip/_internal/basecommand.py", line 78, in _build_session
    if options.cache_dir else None
  File "/home/njs/.user-python3.5-64bit/lib/python3.5/posixpath.py", line 89, in join
    genericpath._check_arg_types('join', a, *p)
  File "/home/njs/.user-python3.5-64bit/lib/python3.5/genericpath.py", line 143, in _check_arg_types
    (funcname, s.__class__.__name__)) from None
TypeError: join() argument must be str or bytes, not 'int'

(Actually, it printed the exception twice: once in red text, and once in regular text.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: cacheDealing with cache and files in itC: configurationConfiguration management and loadingauto-lockedOutdated issues that have been locked by automationkind: crashFor situations where pip crashestype: bugA confirmed bug or unintended behavior

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions