2

I am new to python and Frappe framework. I followed the steps provided in the following link to install Frappe framework on my Mac OS Sierra.

Frappe Bench Github

After successfully installing Python, MariaDB, Node JS, Redis and wkhtmltopdf (with patched qt) I created new folder named "FrappeSample" and run the following commands in it:

git clone https://github.com/frappe/bench bench-repo

pip install --user -e bench-repo

Now when I try to run the following command to install frappe bench

bench init frappe-bench && cd frappe-bench

I get the error which says:

-bash: bench: command not found

Can anyone please guide me what I did wrong or is there any extra configuration needed which was not properly mentioned in the documentation ?

phd
  • 69,888
  • 11
  • 97
  • 133
Zain SMJ
  • 1,252
  • 5
  • 18
  • 30

3 Answers3

2

In my case the bench command is found here:

  frappe@ubuntu:~/frappe-bench$ whereis bench
  bench: /usr/local/bin/bench

with /usr/local/bin on my PATH:

frappe@ubuntu:~/frappe-bench$ echo $PATH
/home/frappe/bin:/home/frappe/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

To add /usr/local/bin (in the case where it is missing from PATH) just add it your .bashrc file:

PATH=$PATH:~/usr/local/bin/

Then restart the shell using exec bash

Note that bench commands must be run from the frappe-bench directory (that you specified)

clarkej
  • 21
  • 2
0

It can be the PATH issue. While installing, in logs it used to give some location that needs to bhi included in PATH. Please check the installation logs.

Rohit Jindal
  • 607
  • 5
  • 12
0
export PATH=$PATH:~/.local/bin

worked for me after following the The Hitchhiker's Guide to Installing Frappe on Linux. I started getting the error when I logged back several days after successful installation.

dh762
  • 2,099
  • 2
  • 21
  • 42