Why am I getting an error installing the DCOS CLI?

If you run the install-dcos-cli.sh script more than once, you might get an error if the first attempt didn’t complete successfully. For example:

$ sudo bash install-dcos-cli.sh 3XPSCDED52PZ ~/dcos-cli dcos-flo-elasticl-gmwxysjitzlg-1673855043.us-west-2.elb.amazonaws.com
Password:
Installing DCOS CLI from wheel...

Traceback (most recent call last):
  File "/usr/local/bin/virtualenv", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/site-packages/virtualenv.py", line 825, in main
    symlink=options.symlink)
  File "/usr/local/lib/python2.7/site-packages/virtualenv.py", line 985, in create_environment
    site_packages=site_packages, clear=clear, symlink=symlink))
  File "/usr/local/lib/python2.7/site-packages/virtualenv.py", line 1179, in install_python
    copyfile(join(stdlib_dir, fn), join(lib_dir, fn), symlink)
  File "/usr/local/lib/python2.7/site-packages/virtualenv.py", line 479, in copyfile
    copyfileordir(src, dest, symlink)
  File "/usr/local/lib/python2.7/site-packages/virtualenv.py", line 454, in copyfileordir
    shutil.copytree(src, dest, symlink)
  File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 177, in copytree
    os.makedirs(dst)
  File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 17] File exists: '/Users/florian/dcos-cli/lib/python2.7/config'

To fix this issue, remove the first installation. This is as easy as removing the directory you installed it in:

$ rm -rf <install-dir>

Once complete, follow the installation instructions again.

Have more questions? Submit a request

Comments

Powered by Zendesk