Skip to content

setuptools pkg_resources pip wheel failed with error code 1 #2883

Closed
@painhardcore

Description

@painhardcore
./letsencrypt-auto --help
python is already the newest version (2.7.11-1).
python-dev is already the newest version (2.7.11-1).
dialog is already the newest version (1.3-20160209-1).
python-virtualenv is already the newest version (15.0.1+ds-3).
virtualenv is already the newest version (15.0.1+ds-3).
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/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 /home/administrator/...ncrypt/bin/python2.7 - setuptools pkg_resources pip wheel failed with error code 1

OS Ubuntu 16.04 LTS
Clean os

Activity

vincentcox

vincentcox commented on Apr 23, 2016

@vincentcox

same issue!

vincentcox

vincentcox commented on Apr 23, 2016

@vincentcox

Some details: nginx installed and also php7.0 fpm, for the rest clean install

vincentcox

vincentcox commented on Apr 23, 2016

@vincentcox

I solved it: just use "apt-get install letsencrypt". Super lame, but it works now

joost-van-weenen

joost-van-weenen commented on Apr 30, 2016

@joost-van-weenen

Same issue on ubuntu 16.04 with the client from git

asibin

asibin commented on May 1, 2016

@asibin

I managed to get it working on Ubuntu 16.04 Server LTS. I deleted the apt-get installed setuptools, reinstalled with pip and it worked. If you get setuptools complaining about the locale, make sure you have locales set.

kfchoong

kfchoong commented on May 3, 2016

@kfchoong

I resolved the issue by setting the locale variables. Without these, the script seems to break.
export LC_ALL="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"

benbonnet

benbonnet commented on Jun 8, 2016

@benbonnet

For those who might have a look at it, and compared to other configuration tasks to be initially done on ubuntu, configuring locales seems opaque. Which guide could one recommend ?

evgenity

evgenity commented on Aug 5, 2016

@evgenity

This helped me:

> locale-gen en_US en_US.UTF-8
> dpkg-reconfigure locales
chani

chani commented on Nov 29, 2016

@chani

same issue, apt-get install letsencrypt does not help to resolve that. To resolve that issue I had to:

~ # apt-get install python-pip
~ # pip install setuptools
Traceback (most recent call last):
  File "/usr/bin/pip", line 11, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 215, in main
    locale.setlocale(locale.LC_ALL, '')
  File "/usr/lib/python2.7/locale.py", line 581, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting

then

~ # export LC_ALL="en_US.UTF-8"
-bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory
~ # export LC_CTYPE="en_US.UTF-8"
~ # pip install setuptools
Requirement already satisfied (use --upgrade to upgrade): setuptools in /usr/lib/python2.7/dist-packages
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

... then ...

~ # pip install --upgrade setuptools     
Collecting setuptools
  Downloading setuptools-29.0.1-py2.py3-none-any.whl (472kB)
    100% |████████████████████████████████| 481kB 3.0MB/s 
Installing collected packages: setuptools
  Found existing installation: setuptools 20.7.0
    Not uninstalling setuptools at /usr/lib/python2.7/dist-packages, outside environment /usr
Successfully installed setuptools-29.0.1
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

now it works. So I assume "setuptools" in Ubuntu 16.04 LTS are just too old.

StavrosNicolaou

StavrosNicolaou commented on Jan 27, 2017

@StavrosNicolaou

@chani thank you :)

31 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @benbonnet@neoedmund@kfchoong@chani@evgenity

        Issue actions

          setuptools pkg_resources pip wheel failed with error code 1 · Issue #2883 · certbot/certbot