Frappe easy install error

i am trying to install frappe via easy install method but getting following error again and again… plaese anybody help me.

TASK [download wkthmltox linux] ************************************************
fatal: [localhost]: FAILED! => {"changed": false, "dest": "/tmp/wkhtmltox.tar.xz", "failed": true, "msg": "Request failed", "response": "Request failed: <urlopen error timed out>", "state": "absent", "status_code": -1, "url": "http://download.gna.org/wkhtmltopdf/0.12/0.12.3/wkhtmltox-0.12.3_linux-generic-amd64.tar.xz"}
    to retry, use: --limit @develop/install.retry

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

Traceback (most recent call last):
  File "install.py", line 351, in <module>
    install_bench(args)
  File "install.py", line 108, in install_bench
    run_playbook('develop/install.yml', sudo=True, extra_vars=extra_vars)
  File "install.py", line 301, 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=bilal']' returned non-zero exit status 2

Try installing wkhtmltopdf manually and then try again.

pre { direction: ltr; color: rgb(0, 0, 0); }pre.western { font-family: “Liberation Mono”,“Courier New”,monospace; }pre.cjk { font-family: “Droid Sans Fallback”,monospace; }pre.ctl { font-family: “Liberation Mono”,“Courier New”,monospace; }p { margin-bottom: 0.1in; direction: ltr; color: rgb(0, 0, 0); line-height: 120%; }p.western { font-family: “Liberation Serif”,“Times New Roman”,serif; font-size: 12pt; }p.cjk { font-family: “Droid Sans Fallback”; font-size: 12pt; }p.ctl { font-family: “FreeSans”; font-size: 12pt; }code.western { font-family: “Liberation Mono”,“Courier New”,monospace; }code.cjk { font-family: “Droid Sans Fallback”,monospace; }code.ctl { font-family: “Liberation Mono”,“Courier New”,monospace; }

Change linux-(trusty-amd64).deb

wget
http://download.gna.org/wkhtmltopdf/0.12/0.12.2.1/wkhtmltox-0.12.2.1_linux-trusty-amd64.deb
sudo apt-get update
sudo apt-get install wkhtmltox
sudo apt-get -f install
sudo dpkg -i wkhtmltox-0.12.2.1_linux-trusty-amd64.deb
wkhtmltopdf -V
o/p:
wkhtmltopdf
0.12.2.1 (with patched qt)

Hope this helps

1 Like

thanks a lot…!!

getting following error on
bench init frappe bench

`Already using interpreter /usr/bin/python
Traceback (most recent call last):
File “/usr/local/bin/virtualenv”, line 11, in
load_entry_point(‘virtualenv==15.1.0’, ‘console_scripts’, ‘virtualenv’)()
File “/usr/local/lib/python2.7/dist-packages/virtualenv.py”, line 713, in main
symlink=options.symlink)
File “/usr/local/lib/python2.7/dist-packages/virtualenv.py”, line 945, in create_environment
download=download,
File “/usr/local/lib/python2.7/dist-packages/virtualenv.py”, line 901, in install_wheel
call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=SCRIPT)
File “/usr/local/lib/python2.7/dist-packages/virtualenv.py”, line 797, in call_subprocess
% (cmd_desc, proc.returncode))
OSError: Command /home/bilal/frappe-bench/env/bin/python - setuptools pip wheel failed with error code 2
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 11, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/home/bilal/bench-repo/bench/cli.py”, line 40, in cli
bench_command()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 722, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 697, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 535, in invoke
return callback(*args, **kwargs)
File “/home/bilal/bench-repo/bench/commands/make.py”, line 19, in init
verbose=verbose, clone_from=clone_from)
File “/home/bilal/bench-repo/bench/utils.py”, line 46, in init
setup_env(bench_path=path)
File “/home/bilal/bench-repo/bench/utils.py”, line 130, in setup_env
exec_cmd(‘virtualenv -q {} -p {}’.format(‘env’, sys.executable), cwd=bench_path)
File “/home/bilal/bench-repo/bench/utils.py”, line 127, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: virtualenv -q env -p /usr/bin/python

`

Try installing python manually

sudo apt-get install -y git build-essential python-setuptools python-dev libffi-dev libssl-dev
sudo apt-get install -y python2.7
sudo pip install --upgrade setuptools pip

And then try bench init && cd frappe-bench

oops, same error :frowning:

delete the frappe-bench folder and try from the start.
It should work.