Error when try to install on MacOS

Hi!

I`m trying to install on my MacOS X, using Beta Development Setup, and I got these error:

SUDO password:
[WARNING]: Host file not found: /etc/ansible/hosts

[WARNING]: provided hosts list is empty, only localhost is available

PLAY [localhost] ***************************************************************

TASK [setup] *******************************************************************
ok: [localhost]

PLAY [localhost] ***************************************************************

TASK [setup] *******************************************************************
ok: [localhost]

TASK [install prequisites] *****************************************************
ok: [localhost] => (item=cmake)
ok: [localhost] => (item=redis)
ok: [localhost] => (item=mariadb)
ok: [localhost] => (item=nodejs)

TASK [cask installs] ***********************************************************
ok: [localhost] => (item=wkhtmltopdf)

TASK [include] *****************************************************************
included: /usr/local/frappe/bench-repo/playbooks/develop/includes/setup_mariadb.yml for localhost

TASK [Install MySQLdb in global env] *******************************************
ok: [localhost]

TASK [Set root Password for Ubuntu] ********************************************
skipping: [localhost] => (item=localhost)
skipping: [localhost] => (item=127.0.0.1)
skipping: [localhost] => (item=::1)

TASK [Add configuration] *******************************************************
ok: [localhost]

TASK [restart mysql linux] *****************************************************
skipping: [localhost]

TASK [add launchagents folder mac] *********************************************
ok: [localhost]

TASK [add mysql to mac startup] ************************************************
ok: [localhost]

TASK [stop mysql mac] **********************************************************
changed: [localhost]

TASK [start mysql mac] *********************************************************
changed: [localhost]

TASK [include] *****************************************************************
included: /usr/local/frappe/bench-repo/playbooks/develop/includes/setup_bench.yml for localhost

TASK [Check if /tmp/.bench exists] *********************************************
ok: [localhost]

TASK [Check if bench_repo_path exists] *****************************************
ok: [localhost]

TASK [move /tmp/.bench if it exists] *******************************************
skipping: [localhost]

TASK [install bench] ***********************************************************
fatal: [localhost]: FAILED! => {“changed”: false, “cmd”: “/usr/local/bin/pip install -e /Users/fellipeh/.bench”, “failed”: true, “msg”: “\n:stderr: /Users/fellipeh/.bench should either be a path to a local project or a VCS url beginning with svn+, git+, hg+, or bzr+\nYou are using pip version 8.0.2, however version 8.1.2 is available.\nYou should consider upgrading via the ‘pip install --upgrade pip’ command.\n”}
to retry, use: --limit @develop/install.retry

PLAY RECAP *********************************************************************
localhost : ok=14 changed=2 unreachable=0 failed=1

Traceback (most recent call last):
File “install.py”, line 153, in
install_bench(args)
File “install.py”, line 58, in install_bench
run_playbook(‘develop/install.yml’, sudo=True)
File “install.py”, line 131, in run_playbook
success = subprocess.check_call(args, cwd=os.path.join(bench_repo, ‘playbooks’))
File “/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py”, line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[‘ansible-playbook’, ‘-c’, ‘local’, ‘develop/install.yml’, ‘-K’]’ returned non-zero exit status 2

When I try to do manual, I got these error:

$ sudo bash setup_frappe.sh --bench-branch develop
Password:
tr: Illegal byte sequence
tr: Illegal byte sequence
tr: Illegal byte sequence
Installing for amd64
In case you encounter an error, you can post on https://discuss.frappe.io

Unsupported Distribution

Any idea how can I install bench to start my development process?

Have you tried upgrading pip?

Yes!

$ pip install --upgrade pip
Requirement already up-to-date: pip in /usr/local/lib/python2.7/site-packages

Now I`m trying to install and get these error:

SUDO password:
[WARNING]: Host file not found: /etc/ansible/hosts

[WARNING]: provided hosts list is empty, only localhost is available

ERROR! Unexpected Exception: name ‘urllib2’ is not defined
to see the full traceback, use -vvv
Traceback (most recent call last):
File “install.py”, line 153, in
install_bench(args)
File “install.py”, line 58, in install_bench
run_playbook(‘develop/install.yml’, sudo=True)
File “install.py”, line 131, in run_playbook
success = subprocess.check_call(args, cwd=os.path.join(bench_repo, ‘playbooks’))
File “/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py”, line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[‘ansible-playbook’, ‘-c’, ‘local’, ‘develop/install.yml’, ‘-K’]’ returned non-zero exit status 250

Please check these threads:

The error is not about Ansible… is about the script using python3 instead python2…

ERROR! Unexpected Exception: name ‘urllib2’ is not defined

Here is the discussion on github:

1 Like