Install-app of a custom app that requires erpnext fails in develop

Dear colleagues,

I have a custom app that requires erpnext. Therefore, requirements.txt looks like this:


Installing the app on a production system works without issues. When running

sudo bench get-app

on a development machine (which has frappe and erpnext installed and up to date), throws this error: woocommerceconnector
INFO:bench.utils:./env/bin/pip install -q  -e ./apps/woocommerceconnector --no-cache-dir
  Could not find a version that satisfies the requirement erpnext (from woocommerceconnector==1.0.0) (from versions: )
No matching distribution found for erpnext (from woocommerceconnector==1.0.0)
Traceback (most recent call last):
  File "/usr/local/bin/bench", line 11, in <module>
    load_entry_point('bench', 'console_scripts', 'bench')()
  File "/home/frappe/.bench/bench/", line 40, in cli
  File "/usr/local/lib/python2.7/dist-packages/click/", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/dist-packages/click/", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/dist-packages/click/", line 535, in invoke
    return callback(*args, **kwargs)
  File "/home/frappe/.bench/bench/commands/", line 40, in get_app
    get_app(git_url, branch=branch)
  File "/home/frappe/.bench/bench/", line 133, in get_app
    install_app(app=app_name, bench_path=bench_path, verbose=verbose)
  File "/home/frappe/.bench/bench/", line 164, in install_app
  File "/home/frappe/.bench/bench/", line 153, in exec_cmd
    raise CommandFailedError(cmd)
bench.utils.CommandFailedError: ./env/bin/pip install -q  -e ./apps/woocommerceconnector --no-cache-dir

Removing the requirement gets it to working, but is not good because the app does require erpnext… Anyone has an idea why the develop system does not find erpnext (Could not find a version that satisfies the requirement erpnext)? Any hints appreciated…

Resolved in Create new app failed with error Command "python egg_info" failed with error code 1

To resolve this, open the file and correct

install_requires ='


install_requires ='\n')