Traceback (most recent call last):
11:48:48 watch.1 | File “”, line 198, in _run_module_as_main
11:48:48 watch.1 | File “”, line 88, in _run_code
11:48:48 watch.1 | File “/home/test/night-bench/apps/frappe/frappe/utils/bench_helper.py”, line 114, in
11:48:48 watch.1 | main()
11:48:48 watch.1 | File “/home/test/night-bench/apps/frappe/frappe/utils/bench_helper.py”, line 20, in main
11:48:48 watch.1 | click.Group(commands=commands)(prog_name=“bench”)
11:48:48 watch.1 | File “/home/test/night-bench/env/lib/python3.12/site-packages/click/core.py”, line 1161, in call
11:48:48 watch.1 | return self.main(*args, **kwargs)
11:48:48 watch.1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
11:48:48 watch.1 | File “/home/test/night-bench/env/lib/python3.12/site-packages/click/core.py”, line 1082, in main
11:48:48 watch.1 | rv = self.invoke(ctx)
11:48:48 watch.1 | ^^^^^^^^^^^^^^^^
11:48:48 watch.1 | File “/home/test/night-bench/env/lib/python3.12/site-packages/click/core.py”, line 1697, in invoke
11:48:48 watch.1 | return _process_result(sub_ctx.command.invoke(sub_ctx))
11:48:48 watch.1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11:48:48 watch.1 | File “/home/test/night-bench/env/lib/python3.12/site-packages/click/core.py”, line 1697, in invoke
11:48:48 watch.1 | return _process_result(sub_ctx.command.invoke(sub_ctx))
11:48:48 watch.1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11:48:48 watch.1 | File “/home/test/night-bench/env/lib/python3.12/site-packages/click/core.py”, line 1443, in invoke
11:48:48 watch.1 | return ctx.invoke(self.callback, **ctx.params)
11:48:48 watch.1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11:48:48 watch.1 | File “/home/test/night-bench/env/lib/python3.12/site-packages/click/core.py”, line 788, in invoke
11:48:48 watch.1 | return __callback(*args, **kwargs)
11:48:48 watch.1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
11:48:48 watch.1 | File “/home/test/night-bench/apps/frappe/frappe/commands/utils.py”, line 104, in watch
11:48:48 watch.1 | watch(apps)
11:48:48 watch.1 | File “/home/test/night-bench/apps/frappe/frappe/build.py”, line 262, in watch
11:48:48 watch.1 | setup()
11:48:48 watch.1 | File “/home/test/night-bench/apps/frappe/frappe/build.py”, line 218, in setup
11:48:48 watch.1 | app_paths = [os.path.dirname(pymodule.file) for pymodule in pymodules]
11:48:48 watch.1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11:48:48 watch.1 | File “”, line 181, in dirname
11:48:48 watch.1 | TypeError: expected str, bytes or os.PathLike object, not NoneType
Check whether you have __init.py inside app.module folder ( like app/myapp/myapp/mymodule/__init.py ) . If not
touch init.py