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

OSError: Command /root/.local/share/letsencrypt/bin/python2.7 - setuptools pkg_resources pip wheel failed with error code 2 #4062

Closed
zanjs opened this issue Jan 16, 2017 · 9 comments

Comments

@zanjs
Copy link

zanjs commented Jan 16, 2017

OS : Ubuntu 16.04

Reading package lists... Done                     
Reading package lists... Done
Building dependency tree       
Reading state information... Done
augeas-lenses is already the newest version (1.4.0-0ubuntu1).
ca-certificates is already the newest version (20160104ubuntu1).
gcc is already the newest version (4:5.3.1-1ubuntu1).
libaugeas0 is already the newest version (1.4.0-0ubuntu1).
libffi-dev is already the newest version (3.2.1-4).
python is already the newest version (2.7.11-1).
python-dev is already the newest version (2.7.11-1).
libssl-dev is already the newest version (1.0.2g-1ubuntu4.5).
openssl is already the newest version (1.0.2g-1ubuntu4.5).
python-virtualenv is already the newest version (15.0.1+ds-3ubuntu1).
virtualenv is already the newest version (15.0.1+ds-3ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Creating virtual environment...
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/virtualenv.py", line 2363, in <module>
    main()
  File "/usr/lib/python3/dist-packages/virtualenv.py", line 719, in main
    symlink=options.symlink)
  File "/usr/lib/python3/dist-packages/virtualenv.py", line 988, in create_environment
    download=download,
  File "/usr/lib/python3/dist-packages/virtualenv.py", line 918, in install_wheel
    call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=SCRIPT)
  File "/usr/lib/python3/dist-packages/virtualenv.py", line 812, in call_subprocess
    % (cmd_desc, proc.returncode))
OSError: Command /root/.local/share/letsencrypt/bin/python2.7 - setuptools pkg_resources pip wheel failed with error code 2

@joomlagate
Copy link

I met exactly the same issue today on Ubuntu 16.04.1 LTS.

Could you please improve this script to fix it?

Thank you.

@bmw
Copy link
Member

bmw commented Jan 17, 2017

This issue is very similar to #2883. Either install letsencrypt through apt (which is what we recommend on Ubuntu 16.04) or take a look at the other thread for issue. Many people seem to have had success by setting their locale.

@joomlagate
Copy link

Well, I finally solved this issue myself, the solution is:

interbrite/letsencrypt-vesta#46 (comment)

@zanjs
Copy link
Author

zanjs commented Jan 18, 2017

OK , sudo apt install letsencrypt

@zanjs zanjs closed this as completed Jan 18, 2017
@willin
Copy link

willin commented Mar 2, 2017

0.4.1 does not have nginx plugin included

@adrianoafonso
Copy link

adrianoafonso commented Jul 6, 2017

Same problem here:
Rasperry Pi v2
Server version: Apache/2.4.18 (Ubuntu)
Description: Ubuntu 16.04.2 LTS

@samazgor
Copy link

samazgor commented Jan 4, 2018

I solved the issue to my Ubuntu 16.04 x64...

  1. sudo apt-get install letsencrypt
  2. exoprt below
export LC_ALL="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"

@antrecu
Copy link

antrecu commented Oct 9, 2018

as of today the --no-bootstrap helped on an Ubuntu 16.04 install.

@hoozecn
Copy link

hoozecn commented Dec 18, 2018

Met the same prob in Ubuntu 16.04.2 LTS (Xenial Xerus), I believe it's caused by the python version of virtualenv.

File "/usr/lib/python3/dist-packages/virtualenv.py", line 812, in call_subprocess % (cmd_desc, proc.returncode))
OSError: Command /root/.local/share/letsencrypt/bin/python2.7 - setuptools pkg_resources pip wheel failed with error code 2

The letsencrypt takes python2.7 but it invokes virutalenv with python3 to create virtual environment.

Here is my fix:

pip2 install virtualenv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants