Skip to content

virtualenv shouldn't fatal if lock directory isn't writable #1640

Closed

Description

@legoktm

Traceback/reproduction steps:
https://gist.github.com/legoktm/533669e450d0f5f41838a4e9b858d774

By default the lock directory seems to be ~/.local/share/..., but this is problematic in our setup, where our home directory is set to /nonexistent.

Wouldn't it be better to store temporary lock files in a temporary directory aka /tmp (and its equivalents on other OS's)?

Also, I don't expect the lack of a writable directory to fail so hard. You can't even get virtualenv --help to work:

nobody@4b70ed23eebd:/src/apt-browser$ /src/apt-browser/.tox/.tox/bin/python -m virtualenv --help
FileNotFoundError: [Errno 2] No such file or directory: '/nonexistent/.local/share/virtualenv/py-info/20.0.4/2d7075eda06572014a3dfd447e6915f0dadc794767f53ba9bc4e3ed19eeb098d.lock'

Activity

  1. gaborbernat commented on Feb 16, 2020

    @gaborbernat
    Contributor

    This would make sense 👍 I'll add it as an enhancement request.

  2. gaborbernat commented on Feb 26, 2020

    @gaborbernat
    Contributor

    Hello, a fix for this issue has been released via virtualenv 20.0.6; see https://pypi.org/project/virtualenv/20.0.6/ (https://virtualenv.pypa.io/en/latest/changelog.html#v20-0-6-2020-02-26) . Please give a try and report back if your issue has not been addressed; if not, please comment here, and we'll reopen the ticket. We want to apologize for the inconvenience this has caused you and say thanks for having patience while we resolve the unexpected bugs with this new major release.
    thanks

  3. locked and limited conversation to collaborators on Jan 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions