When i install my custom app form github
i see this error :
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 11, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/home/iferas93/.bench/bench/cli.py”, line 40, in cli
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 722, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 697, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 1066, in invoke
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 535, in invoke
return callback(*args, **kwargs)
File “/home/iferas93/.bench/bench/commands/make.py”, line 30, in get_app
File “/home/iferas93/.bench/bench/app.py”, line 73, in get_app
os.rename(os.path.join(apps_path, repo_name), os.path.join(apps_path, app_name))
OSError: [Errno 39] Directory not empty
@iFeras93 : just rename the new application in the source code of it, in the respective github repo. Any text editor / Python IDE will work for it. Then submit your changes to the github repo and try installing the app once again.
@iFeras93: just for clarity, did you customize the core ERPNext code directly as you built your TrustedERP ? or does TrustedERP deliver some capability on top of core functionality of ERPNext code?
If the first case is true, then you actually did a fork of ERPNext (rather then a true custom app in definition of Frappe - http://frappe.github.io/frappe/user/en/ ). This might introduce a clash as bench sees your application as another ERPNext instance (and it could be the reason of the error, too … )
If this is the case, you will need to leverage all of your customization changes into a true custom app (without modifying any of the core files of ERPNext itself). By doing so, not only you will fix the current problem, you will also ensure your changes sustain and easily migrate/integrate with the newest releases of Frappe and ERPNext to go.
If it is not the case, please try to elaborate on exact set of actions that you do, before you get the error on bench get-app trustedERP [my app link] command.