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

setuptools pip wheel failed with error code 1 #2887

Closed
tgdn opened this issue Apr 23, 2016 · 8 comments
Closed

setuptools pip wheel failed with error code 1 #2887

tgdn opened this issue Apr 23, 2016 · 8 comments

Comments

@tgdn
Copy link

tgdn commented Apr 23, 2016

I am following this guide from DigitalOcean on their servers on Ubuntu 14.04.
When trying to install the certificate with
./letsencrypt-auto certonly --webroot --webroot-path /usr/share/nginx/html -d mysite.com -d www.mysite.com

I get the following:

Bootstrapping dependencies for Debian-based OSes...
...
...
dialog is already the newest version.
gcc is already the newest version.
python is already the newest version.
python-dev is already the newest version.
augeas-lenses is already the newest version.
ca-certificates is already the newest version.
libaugeas0 is already the newest version.
libffi-dev is already the newest version.
libssl-dev is already the newest version.
python-virtualenv is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Checking for new version...
Creating virtual environment...
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 2316, in <module>
    main()
  File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 708, in main
    symlink=options.symlink)
  File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 941, in create_environment
    download=download,
  File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 897, in install_wheel
    call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=SCRIPT)
  File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 792, in call_subprocess
    % (cmd_desc, proc.returncode))
OSError: Command /home/tgdn/.local/sh...ncrypt/bin/python2.7 - setuptools pip wheel failed with error code 1

For more information:

$ python -V
Python 2.7.6

$ pip -V
pip 8.1.1 from /usr/local/lib/python2.7/dist-packages (python 2.7)

This issue is related to this one #2850.

@starchy
Copy link

starchy commented May 2, 2016

Confirmed this issue is present in Debian Jessie.

@thomasjonas
Copy link

Same problem here on Ubuntu 16.04... But with python 2.7.11+

@nyon
Copy link

nyon commented May 11, 2016

I had the same problem on Ubuntu 16.04.

locale-gen "en_US.UTF-8"
export LC_ALL="en_US.UTF-8"

fixed it.

@melroy89
Copy link

melroy89 commented Jun 1, 2016

Same issue with Debian Jessie. I could try the locale-gen above. But is this a workaround?

@bmw
Copy link
Member

bmw commented Jun 1, 2016

@Danger89, if you're on Debian Jessie, it is recommended to use the certbot packages from jessie-backports.

@melroy89
Copy link

melroy89 commented Jun 1, 2016

@bmw I know however this one was also broken ;). See issue #1080
And:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=825830

@yan12125
Copy link
Collaborator

yan12125 commented Apr 28, 2017

I've had some bad experiences with Python 2 + virtualenv + exotic locales. Once Python 3 is done (#4507), this issue may disappear as well.

EDIT: Notably, it's likely that UTF-8 is used everywhere in Python since 3.7, [1] so (hopefully) there won't be locale issues anymore.

[1] http://bugs.python.org/issue28180

@bmw
Copy link
Member

bmw commented Aug 15, 2018

I'm closing this as a duplicate of #2883 which has more comments.

@bmw bmw closed this as completed Aug 15, 2018
@bmw bmw added the duplicate label Aug 15, 2018
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

7 participants