-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creating environment fails with OSError: [Errno 5] Input/output error #1584
Comments
Workaround in
|
Can you please also post a creation output of virtualenv with -vvv --with-traceback? |
|
Eh dockers doesn't like hard links? |
Is it docker/for-mac#3553? |
Please confirm if you're using docker from Mac and if so what version 🤔 thanks |
yes, it's docker on MacOS
$ uname -a
|
I've also faced this on macOS 10.13.2 and Docker for Mac 2.2.0.0 while preparing reproducible app for another issue on failing tox and coverage in gitlab-runner. In that issue some unwanted symlinks from setuptools package get into coverage report and fail project stats. |
Another option is temporarily preinstall 'virtualenv<20' before running tox |
While I think this is a docker bug; I think it's reasonable to fallback to symlink here https://github.com/pypa/virtualenv/blob/master/src/virtualenv/create/via_global_ref/builtin/ref.py#L121 if the hard link fails. If anyone can create a PR for it that would be great. |
Same issue in |
Should be resolved via #1596 |
Hello, a fix for this issue has been released via virtualenv 20.0.4; see https://pypi.org/project/virtualenv/20.0.4/ (https://virtualenv.pypa.io/en/latest/changelog.html#v20-0-4-2020-02-14). 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. |
To create a a virtual environment tox runs
/usr/local/bin/python -m virtualenv --no-download --python /usr/local/bin/python py37
. The command fails with an errorApparently it believes a symlink isn't created. Here's an strace output:
It is worth noting
tox
fails only in a container (from a public imagepython:3.7
) and runs fine on a host MacOS machine.All virtualenv 20.* versions are affected. Version 16.7.9 works fine.
The text was updated successfully, but these errors were encountered: