Skip to content

--user option broken? (when using relative path for PYTHONUSERBASE) #1153

Closed
@gdamjan

Description

@gdamjan

PYTHONUSERBASE=py-env pip install --user Flask fails with:

Exception:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/pip/basecommand.py", line 134, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/site-packages/pip/commands/install.py", line 241, in run
    requirement_set.install(install_options, global_options, root=options.root_path)
  File "/usr/lib/python2.7/site-packages/pip/req.py", line 1298, in install
    requirement.install(install_options, global_options, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/pip/req.py", line 663, in install
    f = open(os.path.join(egg_info_dir, 'installed-files.txt'), 'w')
IOError: [Errno 2] No such file or directory: 'py-env/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg-info/installed-files.txt'

py-env/lib/python2.7/site-packages/ is empty so normally it can't create installed-files.txt when it didn't even create the .egg-info directory yet.

Versions are:

$ pip --version
pip 1.4.1 from /usr/lib/python2.7/site-packages (python 2.7)

$ python -c 'import setuptools; print setuptools.__version__'
0.9.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: user schemeHandling of packages in user-specific directoriesauto-lockedOutdated issues that have been locked by automationtype: bugA confirmed bug or unintended behavior

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions