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 /opt/eff.org/certbot/venv/bin/python2.7 - setuptools pkg_resources pip wheel failed with error code 2 #69

Closed
xyombo opened this issue Jan 10, 2019 · 12 comments
Labels

Comments

@xyombo
Copy link

xyombo commented Jan 10, 2019

when i run:

/certbot-auto renew  --no-self-upgrade --no-bootstrap

i got :

Requesting to rerun ./certbot-auto with root privileges...
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 /opt/eff.org/certbot/venv/bin/python2.7 - setuptools pkg_resources pip wheel failed with error code 2

i've tried all ways in certbot issue #2883. Such as

export LC_ALL="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"

, @chani 's answer and so on;

but ,they're didn't work for me

i guess it could be cause by using /opt/eff.org/certbot/venv/bin/python2.7, Could i change the default python2.7 path? Perhaps,there are other solutions ?

Thanks!

@astrakid
Copy link

i have the same problem.

@robertolopezlopez
Copy link

I can reproduce this problem as well

@astrakid
Copy link

The problem disappeared the next day for me.

@xyombo
Copy link
Author

xyombo commented Jan 29, 2019

The problem disappeared the next day for me.

@xyombo xyombo closed this as completed Jan 29, 2019
@robertolopezlopez
Copy link

I can reproduce this problem as well

I gave it a n-th try and also managed to get it working.

@xyombo xyombo reopened this Jan 29, 2019
@johnstef99
Copy link

johnstef99 commented Mar 2, 2019

solved this problem by changing the default pip version!

  1. check your pip and python version by typing pip --version and python --version.
  2. If both of them don't version 2.7 edit /.bashrc by typing nano ~/.bashrc and add:
    alias pip='pip2' alias python='python2'
    these 2 lines at the top of the file
  3. then type source ~/.bashrc
  4. try to run cerbot command again and if it's not working try step 5
  5. upgrade setuptools by typing pip install --upgrade setuptools --user

@bote100
Copy link

bote100 commented Aug 11, 2019

Step 5 doesn't helped!

@speedlight
Copy link

I had the same problem but in one run of the role everything start to wokr again :S wierd

@stale
Copy link

stale bot commented Mar 6, 2020

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

@stale stale bot added the stale label Mar 6, 2020
@stale
Copy link

stale bot commented Apr 5, 2020

This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.

@stale stale bot closed this as completed Apr 5, 2020
@nise
Copy link

nise commented Oct 11, 2020

Sorry,
I have the same problem. Some support for people not knowing python that much would be helpful.

@nise
Copy link

nise commented Oct 11, 2020

In my case pip was not installed. So I run sudo apt-get install python-pip, Then I tried to install wheel manually: pip install wheel. This failed because of missconfigured locals that could be fixed by the command export LC_ALL=C. After that I was able to run the certbot again.

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

No branches or pull requests

7 participants