I tried installing the client on OS X (El Capitan, 10.11.2) but encounter the following error:
Creating virtual environment…
./letsencrypt-auto: line 112: virtualenv: command not found
Line 112 of letsencrypt-auto says:
virtualenv --no-site-packages --python $LE_PYTHON $VENV_PATH > /dev/null
Running which virtualenv returns nothing.
However, there are virtualenv files in the following directories:
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/py2app/bootstrap/
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/py2app/recipes/
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/py2app/bootstrap/
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/py2app/recipes/
/usr/local/lib/python2.7/site-packages/ - what seems to be virtualenv-13.1.2
So, I’m not sure how to proceed.
I did try to install a ubuntu 15.04 virtual machine on the server but I kept getting errors in authenticating to the Mac server.
I would like to assist with getting the client running reliably on Mac OS X, so that’s the route I’d prefer to follow.
/letsencrypt-auto --debug
grep: /etc/os-release: No such file or directory
Bootstrapping dependencies for Mac OS X…
Warning: augeas-1.4.0 already installed
Warning: dialog-1.2-20150528 already installed
virtualenv Not Installed
Installing with pip
Requirement already satisfied (use --upgrade to upgrade): virtualenv in /usr/local/lib/python2.7/site-packages
Creating virtual environment…
./letsencrypt-auto: line 163: virtualenv: command not found
The confusion seems to be with determining whether virtualenv is installed or not. . . .
$ ./letsencrypt-auto --help grep: /etc/os-release: No such file or directory
WARNING: Mac OS X support is very experimental at present…
if you would like to work on improving it, please ensure you have backups
and then run this script again with the --debug flag!
$ sudo pip install -U virtualenv
Password:
The directory '/Users/admin/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/admin/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already up-to-date: virtualenv in /usr/local/lib/python2.7/site-packages
$ pip install -U virtualenv
Requirement already up-to-date: virtualenv in /usr/local/lib/python2.7/site-packages
I'm wondering if there is an issue with an environment variable. I have virtualenv.py and virtualenv.pyc in the site-packages directory referred to above.
It looks like virtualenv is installed, but your path does not include the directory where it was installed. I am not super familiar with OS X, Brew, or MacPorts, but there should be an executable file named exactly virtualenv somewhere (not virtualenv.py). You should modify your PATH to include the directory where that executable file lives.
You can also try a pip user install:
pip install --user virtualenv
This will put virtualenv in a directory inside your home directory. You will still have to modify your PATH to point at it.
The first command creates a symlink in /usr/local/bin which allows you to run virtualenv.py as virtualenv and the second command marks /usr/local/bin/virtualenv as executable.