Skip to content
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

Errno 71 protocol error / pipenv failed to create virtual env #4136

Closed
Brettfodor opened this issue Feb 21, 2020 · 3 comments
Closed

Errno 71 protocol error / pipenv failed to create virtual env #4136

Brettfodor opened this issue Feb 21, 2020 · 3 comments
Labels
OS: Windows This issue affects the Windows Operating System. triage

Comments

@Brettfodor
Copy link

So I have installed a VM via Virtual Box / Vagrant on my Windows machine. I am attempting to create a virtual environment in one of the directories, and I have tried using venv, virtualenv and now pipenv and I am getting the same error for all. I have referred to 2084 and the thread preceding that to no avail. Can anyone help me discern why this error is populating?

`[root@rhel7 jms_ic_cms]# pipenv --three
Creating a virtualenv for this project…
Pipfile: /Smucker_Files/jms_ic_cms/Pipfile
Using /usr/local/bin/python3.7m (3.7.4) to create virtualenv…
⠸ Creating virtual environment...OSError: [Errno 71] Protocol error: '/usr/local/bin/python3.7m' -> '/Smucker_Files/jms_ic_cms/.venv/bin/python'

✘ Failed creating virtual environment
[pipenv.exceptions.VirtualenvCreationException]: File "/usr/local/lib/python3.7/site-packages/pipenv/vendor/click/decorators.py", line 17, in new_func
[pipenv.exceptions.VirtualenvCreationException]: return f(get_current_context(), *args, **kwargs)
[pipenv.exceptions.VirtualenvCreationException]: File "/usr/local/lib/python3.7/site-packages/pipenv/cli/command.py", line 208, in cli
[pipenv.exceptions.VirtualenvCreationException]: clear=state.clear,
[pipenv.exceptions.VirtualenvCreationException]: File "/usr/local/lib/python3.7/site-packages/pipenv/core.py", line 574, in ensure_project
[pipenv.exceptions.VirtualenvCreationException]: pypi_mirror=pypi_mirror,
[pipenv.exceptions.VirtualenvCreationException]: File "/usr/local/lib/python3.7/site-packages/pipenv/core.py", line 506, in ensure_virtualenv
[pipenv.exceptions.VirtualenvCreationException]: python=python, site_packages=site_packages, pypi_mirror=pypi_mirror
[pipenv.exceptions.VirtualenvCreationException]: File "/usr/local/lib/python3.7/site-packages/pipenv/core.py", line 935, in do_create_virtualenv
[pipenv.exceptions.VirtualenvCreationException]: extra=[crayons.blue("{0}".format(c.err)),]
[pipenv.exceptions.VirtualenvCreationException]:
Failed to create virtual environment.
`

@zachspar
Copy link

I am getting an issue I think may be related.

python pipenv Error: [Errno 71] Protocol error: 'lib' -> /vagrant/home/p1/env/lib64

I am trying to create a virtual environment on Ubuntu/bionic64 vagrant machine with the following command:
python3 -m venv env

Pip and python virtualenv have been installed.

Has this issue been looked at?

@oz123 oz123 added the OS: Windows This issue affects the Windows Operating System. label Jan 23, 2022
@JonathanRys
Copy link

JonathanRys commented May 26, 2022

I am also getting the following on Windows:

Error: [Errno 71] Protocol error: 'lib' -> '/vagrant/venv/lib64'

This works fine on my Mac, but when I run it on Windows venv doesn't install

I think this may be related: gratipay/gratipay.com#2327
and this: #2084

@kubac65
Copy link

kubac65 commented Aug 4, 2022

Windows file system doesn't support symbolic links, so if you're trying to create a virtual environment in a folder shared from the host machine, it's simply not going to work.

@matteius matteius closed this as completed Sep 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OS: Windows This issue affects the Windows Operating System. triage
Projects
None yet
Development

No branches or pull requests

6 participants