Error after bench update


i got this error when running bench update
Running latest for

Traceback (most recent call last):
File “/home/sigma/frappe-bench/env/bin/frappe”, line 9, in
load_entry_point(‘frappe==4.1.0’, ‘console_scripts’, ‘frappe’)()
File “/home/sigma/frappe-bench/apps/frappe/frappe/”, line 40, in main
ret = run(fn, args)
File “/home/sigma/frappe-bench/apps/frappe/frappe/”, line 84, in run
out = globals().get(fn)(**args)
File “/home/sigma/frappe-bench/apps/frappe/frappe/”, line 68, in new_fn
return fn(*args, **new_kwargs)
File “/home/sigma/frappe-bench/apps/frappe/frappe/”, line 432, in latest
File “/home/sigma/frappe-bench/apps/frappe/frappe/modules/”, line 23, in run_all
for patch in get_all_patches():
File “/home/sigma/frappe-bench/apps/frappe/frappe/modules/”, line 35, in get_all_patches
patches.extend(frappe.get_file_items(frappe.get_pymodule_path(app, “patches.txt”)))
File “/home/sigma/frappe-bench/apps/frappe/frappe/”, line 399, in get_pymodule_path
return os.path.join(os.path.dirname(get_module(scrub(modulename)).file), *joins)
File “/home/sigma/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 manufacture_costing
Error: None
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/home/sigma/bench-repo/bench/”, line 38, in cli
return bench()
File “/usr/local/lib/python2.7/dist-packages/click/”, line 610, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/”, line 590, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/”, line 936, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/”, line 782, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/”, line 416, in invoke
return callback(*args, **kwargs)
File “/home/sigma/bench-repo/bench/”, line 170, in update
File “/home/sigma/bench-repo/bench/”, line 91, in patch_sites
exec_cmd(“{frappe} --latest all”.format(frappe=get_frappe(bench=bench)), cwd=os.path.join(bench, ‘sites’))
File “/home/sigma/bench-repo/bench/”, line 61, in exec_cmd
subprocess.check_call(cmd, cwd=cwd, shell=True)
File “/usr/lib/python2.7/”, line 540, in check_call
raise CalledProcessError(retcode, cmd)

i think that error comes because the module that im created is not in erpnext right?
but the program now becomes Internal server error

please help


Have you edited the patchlist?

patchlist ?
i dunno what did you mean…what file is that?

OKay, manufacture_costing doesn’t seem to be a file in erpnext / frappe repo. Did you write a custom app?

Yes, right… that was my custom app…
i dunno what was the problem but i think i need to exclude my custom app for being updated, but i dont know how

Can you share the repository of your custom app? Maybe something is wrong with it.

sure , i can even share the ssh password, but can i just PM you for that ?

How was this issue resolved? I am in exactly same problem now. :frowning:

Make another post with all details and traceback