When I run the following command of easy install: sudo python install.py --develop, I received the following error:
TASK [install bench] ************************************************************************************
fatal: [localhost]: FAILED! => {“changed”: false, “cmd”: “/usr/local/bin/pip3 install -e /home/erpnxt/.bench”, “failed”: true, “msg”: “stdout: Obtaining file:///home/erpnxt/.bench\nRequirement already satisfied: Click in /usr/local/lib/python3.5/dist-packages (from bench==4.1.0)\nRequirement already satisfied: jinja2 in /usr/local/lib/python3.5/dist-packages (from bench==4.1.0)\nRequirement already satisfied: virtualenv in /usr/local/lib/python3.5/dist-packages (from bench==4.1.0)\nRequirement already satisfied: requests in /usr/lib/python3/dist-packages (from bench==4.1.0)\nRequirement already satisfied: honcho in /usr/local/lib/python3.5/dist-packages (from bench==4.1.0)\nRequirement already satisfied: psutil in /usr/local/lib/python3.5/dist-packages (from bench==4.1.0)\nRequirement already satisfied: python-crontab in /usr/local/lib/python3.5/dist-packages (from bench==4.1.0)\nRequirement already satisfied: semantic_version in /usr/local/lib/python3.5/dist-packages (from bench==4.1.0)\nRequirement already satisfied: GitPython==0.3.2.rc1 in /usr/local/lib/python3.5/dist-packages (from bench==4.1.0)\nRequirement already satisfied: MarkupSafe>=0.23 in /usr/local/lib/python3.5/dist-packages (from jinja2->bench==4.1.0)\nRequirement already satisfied: python-dateutil in /usr/local/lib/python3.5/dist-packages (from python-crontab->bench==4.1.0)\nRequirement already satisfied: gitdb>=0.5.1 in /usr/local/lib/python3.5/dist-packages (from GitPython==0.3.2.rc1->bench==4.1.0)\nRequirement already satisfied: six>=1.5 in /usr/lib/python3/dist-packages (from python-dateutil->python-crontab->bench==4.1.0)\nRequirement already satisfied: smmap>=0.8.5 in /usr/local/lib/python3.5/dist-packages (from gitdb>=0.5.1->GitPython==0.3.2.rc1->bench==4.1.0)\nInstalling collected packages: bench\n Found existing installation: bench 4.1.0\n Can’t uninstall ‘bench’. No files were found to uninstall.\n Running setup.py develop for bench\n Complete output from command /usr/bin/python3 -c "import setuptools, tokenize;file=‘/home/erpnxt/.bench/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))" develop --no-deps:\n running develop\n error: can’t create or remove files in install directory\n \n The following error occurred while trying to add or remove files in the\n installation directory:\n \n [Errno 2] No such file or directory: ‘/usr/lib/python3.5/site-packages/test-easy-install-87966.write-test’\n \n The installation directory you specified (via --install-dir, --prefix, or\n the distutils default setting) was:\n \n /usr/lib/python3.5/site-packages/\n \n This directory does not currently exist. Please create it and try again, or\n choose a different installation directory (using the -d or --install-dir\n option).\n \n \n ----------------------------------------\n\n:stderr: Can’t roll back bench; was not uninstalled\nCommand "/usr/bin/python3 -c "import setuptools, tokenize;file=‘/home/erpnxt/.bench/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))" develop --no-deps" failed with error code 1 in /home/erpnxt/.bench/\n”}
to retry, use: --limit @/tmp/.bench/playbooks/develop/install.retry
PLAY RECAP **********************************************************************************************
localhost : ok=34 changed=3 unreachable=0 failed=1
Traceback (most recent call last):
File , line 388, in
install_bench(args)
File , line 111, in install_bench
run_playbook(‘develop/install.yml’, sudo=True, extra_vars=extra_vars)
File, line 326, in run_playbook
success = subprocess.check_call(args, cwd=os.path.join(cwd, ‘playbooks’))
File “/usr/lib/python2.7/subprocess.py”, line 541, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[‘ansible-playbook’, ‘-c’, ‘local’, ‘develop/install.yml’, ‘-e’, ‘@/tmp/extra_vars.json’, ‘–become’, ‘–become-user=erpnxt’]’ returned non-zero exit status 2