Frappe Installation Error

Hi All,
While installing frappe setup , following error occurred while executing this command -
bench init frappe-bench && cd frappe-bench

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-EJhmek-build/
Traceback (most recent call last):
 File "/home/indictrans/Documents/jayram_erp/bin/bench", line 9, in <module>
   load_entry_point('bench==0.0.0', 'console_scripts', 'bench')()
 File "/home/indictrans/Documents/jayram_erp/bench-repo/bench/cli.py", line 60, in cli
   bench()
 File "/home/indictrans/Documents/jayram_erp/local/lib/python2.7/site-packages/click/core.py", line 716, in __call__
   return self.main(*args, **kwargs)
 File "/home/indictrans/Documents/jayram_erp/local/lib/python2.7/site-packages/click/core.py", line 696, in main
   rv = self.invoke(ctx)
 File "/home/indictrans/Documents/jayram_erp/local/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
   return _process_result(sub_ctx.command.invoke(sub_ctx))
 File "/home/indictrans/Documents/jayram_erp/local/lib/python2.7/site-packages/click/core.py", line 889, in invoke
   return ctx.invoke(self.callback, **ctx.params)
 File "/home/indictrans/Documents/jayram_erp/local/lib/python2.7/site-packages/click/core.py", line 534, in invoke
   return callback(*args, **kwargs)
 File "/home/indictrans/Documents/jayram_erp/bench-repo/bench/cli.py", line 166, in init
   no_auto_update=no_auto_update, frappe_path=frappe_path, frappe_branch=frappe_branch, verbose=verbose)
 File "/home/indictrans/Documents/jayram_erp/bench-repo/bench/utils.py", line 64, in init
   setup_env(bench=path)
 File "/home/indictrans/Documents/jayram_erp/bench-repo/bench/utils.py", line 111, in setup_env
   exec_cmd('./env/bin/pip -q install https://github.com/frappe/MySQLdb1/archive/MySQLdb-1.2.5-patched.tar.gz', cwd=bench)
 File "/home/indictrans/Documents/jayram_erp/bench-repo/bench/utils.py", line 105, in exec_cmd
   raise CommandFailedError(cmd)
bench.utils.CommandFailedError: ./env/bin/pip -q install https://github.com/frappe/MySQLdb1/archive/MySQLdb-1.2.5-patched.tar.gz

Thanks Priya

You seem to have missed installing dependencies before invoking bench command.

@priya_s

Try with sudo apt-get install libmariadbclient-dev

then create new setup

1 Like

@saurabh6790 , @yashodhan Thanks for the reply… I have tried with above command and it worked.