Download and Install ERPnext

When I tried to run this “bench get-app erpnext” on my macBook terminal to install ERPNext. I get this outcome on my terminal: ModuleNotFoundError: No module named ‘erpnext’ and below is the whole outcome from above command line: I am wondering what caused this issue (ModuleNotFoundError: No module named ‘erpnext’ ) ? Thank you and looking forward to your help!

INFO:bench.app:installing erpnext
$ ./env/bin/pip install -q -U -e ./apps/erpnext
$ bench build --app erpnext
Traceback (most recent call last):
File “/Users/ismailahmadi/Dev/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 66, in get_app_commands
app_command_module = importlib.import_module(app + ‘.commands’)
File “/Users/ismailahmadi/Dev/frappe/frappe-bench/env/lib/python3.7/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1006, in _gcd_import
File “”, line 983, in _find_and_load
File “”, line 953, in _find_and_load_unlocked
File “”, line 219, in _call_with_frames_removed
File “”, line 1006, in _gcd_import
File “”, line 983, in _find_and_load
File “”, line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named ‘erpnext’
Traceback (most recent call last):
File “/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py”, line 193, in _run_module_as_main
main”, mod_spec)
File “/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py”, line 85, in _run_code
exec(code, run_globals)
File “/Users/ismailahmadi/Dev/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 97, in
main()
File “/Users/ismailahmadi/Dev/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/Users/ismailahmadi/Dev/frappe/frappe-bench/env/lib/python3.7/site-packages/click/core.py”, line 764, in call
return self.main(*args, **kwargs)
File “/Users/ismailahmadi/Dev/frappe/frappe-bench/env/lib/python3.7/site-packages/click/core.py”, line 717, in main
rv = self.invoke(ctx)
File “/Users/ismailahmadi/Dev/frappe/frappe-bench/env/lib/python3.7/site-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/Users/ismailahmadi/Dev/frappe/frappe-bench/env/lib/python3.7/site-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/Users/ismailahmadi/Dev/frappe/frappe-bench/env/lib/python3.7/site-packages/click/core.py”, line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/Users/ismailahmadi/Dev/frappe/frappe-bench/env/lib/python3.7/site-packages/click/core.py”, line 555, in invoke
return callback(*args, **kwargs)
File “/Users/ismailahmadi/Dev/frappe/frappe-bench/apps/frappe/frappe/commands/utils.py”, line 25, in build
frappe.init(‘’)
File “/Users/ismailahmadi/Dev/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 173, in init
setup_module_map()
File “/Users/ismailahmadi/Dev/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 1012, in setup_module_map
for module in get_module_list(app):
File “/Users/ismailahmadi/Dev/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 881, in get_module_list
return get_file_items(os.path.join(os.path.dirname(get_module(app_name).file), “modules.txt”))
File “/Users/ismailahmadi/Dev/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 839, in get_module
return importlib.import_module(modulename)
File “/Users/ismailahmadi/Dev/frappe/frappe-bench/env/lib/python3.7/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1006, in _gcd_import
File “”, line 983, in _find_and_load
File “”, line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named ‘erpnext’

Can you run the commands manually to debug the issue?

  1. git clone https://github.com/frappe/erpnext ./apps/erpnext (but this step might already be complete so ignore)
  2. ./env/bin/pip install -U -e ./apps/erpnext (this is the key step as the error has come up from pip saying it can’t find erpnext)
  3. bench build --app erpnext (to build assets if all goes well in the previous step)