Failed with the same error.
" main()",
" File \"/home/adliyaph/frappe-bench/apps/frappe/frappe/utils/bench_helper.py\", line 18, in main",
" click.Group(commands=commands)(prog_name='bench')",
" File \"/home/adliyaph/frappe-bench/env/lib/python3.8/site-packages/click/core.py\", line 764, in __call__",
" return self.main(*args, **kwargs)",
" File \"/home/adliyaph/frappe-bench/env/lib/python3.8/site-packages/click/core.py\", line 717, in main",
" rv = self.invoke(ctx)",
" File \"/home/adliyaph/frappe-bench/env/lib/python3.8/site-packages/click/core.py\", line 1137, in invoke",
" return _process_result(sub_ctx.command.invoke(sub_ctx))",
" File \"/home/adliyaph/frappe-bench/env/lib/python3.8/site-packages/click/core.py\", line 1137, in invoke",
" return _process_result(sub_ctx.command.invoke(sub_ctx))",
" File \"/home/adliyaph/frappe-bench/env/lib/python3.8/site-packages/click/core.py\", line 956, in invoke",
" return ctx.invoke(self.callback, **ctx.params)",
" File \"/home/adliyaph/frappe-bench/env/lib/python3.8/site-packages/click/core.py\", line 555, in invoke",
" return callback(*args, **kwargs)",
" File \"/home/adliyaph/frappe-bench/apps/frappe/frappe/commands/site.py\", line 41, in new_site",
" frappe.init(site=site, new_site=True)",
" File \"/home/adliyaph/frappe-bench/apps/frappe/frappe/__init__.py\", line 175, in init",
" setup_module_map()",
" File \"/home/adliyaph/frappe-bench/apps/frappe/frappe/__init__.py\", line 1019, in setup_module_map",
" for module in get_module_list(app):",
" File \"/home/adliyaph/frappe-bench/apps/frappe/frappe/__init__.py\", line 882, in get_module_list",
" return get_file_items(os.path.join(os.path.dirname(get_module(app_name).__file__), \"modules.txt\"))",
" File \"/home/adliyaph/frappe-bench/apps/frappe/frappe/__init__.py\", line 840, in get_module",
" return importlib.import_module(modulename)",
" File \"/usr/lib/python3.8/importlib/__init__.py\", line 127, in import_module",
" return _bootstrap._gcd_import(name[level:], package, level)",
" File \"<frozen importlib._bootstrap>\", line 1014, in _gcd_import",
" File \"<frozen importlib._bootstrap>\", line 991, in _find_and_load",
" File \"<frozen importlib._bootstrap>\", line 973, in _find_and_load_unlocked",
"ModuleNotFoundError: No module named 'erpnext'"
],
"stdout": "",
"stdout_lines": []
}
PLAY RECAP *********************************************************************
localhost : ok=80 changed=46 unreachable=0 failed=1 skipped=61 rescued=0 ignored=0
Update:
I installed python3.6 and switch bench env to it and then installed all requirements for erpnext.
even did
pip install cython
as it was missing still getting the same error
Error Log