Try ERPNext Buy Support Partners Foundation

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 https://github.com/frappe/erpnext --branch version-12

but facing this error message:

└─[$]> bench get-app https://github.com/frappe/erpnext --branch version-12                                                                           
/home/tri/frappe-bench/env/bin/python: Error while finding module specification for 'frappe.utils.bench_helper' (ModuleNotFoundError: No module named
 'frappe')                                                                                                                                           
                                                                                                                                                     
A directory for the application "erpnext" already exists.                                                                                            
Do you want to continue and overwrite it? [y/N]: y                                                                                                   
INFO:bench.app:Getting app erpnext                                                                                                                   
$ git clone https://github.com/frappe/erpnext --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.
INFO:bench.app:installing 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/cli.py", line 41, in cli
    bench_command()
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/tri/.bench/bench/commands/make.py", line 62, in get_app
    get_app(git_url, branch=branch, skip_assets=skip_assets, overwrite=overwrite)
  File "/home/tri/.bench/bench/app.py", 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/app.py", line 181, in install_app
    quiet=quiet_flag, app=app_path, no_cache=cache_flag))
  File "/home/tri/.bench/bench/utils.py", line 270, in exec_cmd
    return subprocess.call(cmd, cwd=cwd, universal_newlines=True)
  File "/usr/lib/python3.6/subprocess.py", line 287, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/lib/python3.6/subprocess.py", line 729, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.6/subprocess.py", 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