How To Install an ERPNext Stack on Ubuntu 18.04 | DigitalOcean

I’m on Step-7 in this tutorial,
and try this command:
bench get-app erpnext GitHub - frappe/erpnext: Free and Open Source Enterprise Resource Planning (ERP) --branch version-12

but facing this error message:

└─[$]> bench get-app --branch version-12                                                                           
/home/tri/frappe-bench/env/bin/python: Error while finding module specification for 'frappe.utils.bench_helper' (ModuleNotFoundError: No module named
A directory for the application "erpnext" already exists.                                                                                            
Do you want to continue and overwrite it? [y/N]: y                                                                                           app erpnext                                                                                                                   
$ git clone --branch version-12 --depth 1 --origin upstream                                                        
Cloning into 'erpnext'...                                                                                                                            
remote: Enumerating objects: 6118, done.                                                                                                             
remote: Counting objects: 100% (6118/6118), done.                                                                                                    
remote: Compressing objects: 100% (4951/4951), done.                                                                                                 
remote: Total 6118 (delta 1732), reused 2724 (delta 1042), pack-reused 0                                                                             
Receiving objects: 100% (6118/6118), 17.65 MiB | 97.00 KiB/s, done.
Resolving deltas: 100% (1732/1732), done. erpnext
$ ./env/bin/pip install -q -U -e ./apps/erpnext 

$ ./env/bin/pip install -q -U -e ./apps/erpnext 
Traceback (most recent call last):
  File "/usr/local/bin/bench", line 11, in <module>
    load_entry_point('bench', 'console_scripts', 'bench')()
  File "/home/tri/.bench/bench/", line 41, in cli
  File "/usr/local/lib/python3.6/dist-packages/click/", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/click/", line 717, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.6/dist-packages/click/", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.6/dist-packages/click/", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.6/dist-packages/click/", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/tri/.bench/bench/commands/", line 62, in get_app
    get_app(git_url, branch=branch, skip_assets=skip_assets, overwrite=overwrite)
  File "/home/tri/.bench/bench/", line 143, in get_app
    install_app(app=app_name, bench_path=bench_path, verbose=verbose, skip_assets=skip_assets)
  File "/home/tri/.bench/bench/", line 181, in install_app
    quiet=quiet_flag, app=app_path, no_cache=cache_flag))
  File "/home/tri/.bench/bench/", line 270, in exec_cmd
    return, cwd=cwd, universal_newlines=True)
  File "/usr/lib/python3.6/", line 287, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/lib/python3.6/", line 729, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.6/", line 1364, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: './env/bin/pip': './env/bin/pip'

I have try to reinstall pip3, but still got that error.

Please, any help, or tutorial or source to solve this would be very appreciated, thanks :slight_smile: )

are you in the frappe-bench subdir when you run this command?

1 Like