How do we export new apps to personal github?


I was wondering how to upload to my new app (for erpnext) to my personal github, so that I can redistribute it later?

I try using the git command but it isn’t working. Is there a guide somewhere I can use?



Please refer this link, it will be helpful.

Shraddha Ranjane
New Indictrans Technologies Pvt. Ltd.

Thank you I’ll read it right now :wink:

Hi again I finish reading the doc you send me. I just got one little question we have to put on github the app under frappe-bench/app/test, if my new module is call test?

This could be an example of what you want to?

I’ve create test_app2 module and it’s working :

Now, I’m trying to export it to a new ERP_Next installation. So I upload it to GITHUB

But I’m unable to make work on the other side. Anybody know why???

I’ve use this command to get the new app : bench get-app test_app2

This is the error message I got :


ImportError: No module named test_app2.hooks

Traceback (most recent call last)
File “/home/aptitude/frappe-bench/apps/frappe/frappe/”, line 15, in call
return super(StaticDataMiddleware, self).call(environ, start_response)
File “/home/aptitude/frappe-bench/env/lib/python2.7/site-packages/werkzeug/”, line 588, in call
return, start_response)
File “/home/aptitude/frappe-bench/env/lib/python2.7/site-packages/werkzeug/”, line 588, in call
return, start_response)
File “/home/aptitude/frappe-bench/env/lib/python2.7/site-packages/werkzeug/”, line 224, in application
return ClosingIterator(app(environ, start_response), self.cleanup)
File “/home/aptitude/frappe-bench/env/lib/python2.7/site-packages/werkzeug/”, line 286, in application
return f(*args[:-2] + (request,))(*args[-2:])
File “/home/aptitude/frappe-bench/apps/frappe/frappe/”, line 79, in application
response =“message”, http_status_code=http_status_code)
File “/home/aptitude/frappe-bench/apps/frappe/frappe/website/”, line 47, in render
data = render_page(path)
File “/home/aptitude/frappe-bench/apps/frappe/frappe/website/”, line 105, in render_page
return build(path)
File “/home/aptitude/frappe-bench/apps/frappe/frappe/website/”, line 114, in build
return build_method(path)
File “/home/aptitude/frappe-bench/apps/frappe/frappe/website/”, line 127, in build_page
context = get_context(path)
File “/home/aptitude/frappe-bench/apps/frappe/frappe/website/”, line 36, in get_context
context = build_context(context)
File “/home/aptitude/frappe-bench/apps/frappe/frappe/website/”, line 81, in build_context = render_blocks(context)
File “/home/aptitude/frappe-bench/apps/frappe/frappe/website/”, line 18, in render_blocks
env = frappe.get_jenv()
File “/home/aptitude/frappe-bench/apps/frappe/frappe/utils/”, line 14, in get_jenv
File “/home/aptitude/frappe-bench/apps/frappe/frappe/utils/”, line 104, in set_filters
for jenv_filter in (frappe.get_hooks(app_name=app).jenv_filter or []):
File “/home/aptitude/frappe-bench/apps/frappe/frappe/”, line 462, in get_hooks
hooks = _dict(load_app_hooks(app_name))
File “/home/aptitude/frappe-bench/apps/frappe/frappe/”, line 441, in load_app_hooks
app_hooks = get_module(app + “.hooks”)
File “/home/aptitude/frappe-bench/apps/frappe/frappe/”, line 379, in get_module
return importlib.import_module(modulename)
File “/usr/lib/python2.7/importlib/”, line 37, in import_module
ImportError: No module named test_app2.hooks

Hi Chafor,

I have also similar issue. I did following steps.

  1. remove test_app2 from module.txt
  2. bench frappe --latest
  3. restart the server

This works for me.



Thank you kolate_sambhaji, it did remove test_app2 but what I’m trying do to is install test_app2.

Any idea?

Thank you.

Ok when I put back test_app2 in the app.txt in site/ I manage to install it correctly!

Thank you!

1 Like