ERPNext module cannot be found even it is installed in the site already

I installed frappe in a remote server and when I tried accessing it in the browser I am getting this error. Is there anyone had encountered and solved this issue?

When I run bench --site all list-apps erpnext doesn appear but when I run bench --site mynewsite.local install-app erpnext it says “App erpnext already installed”.

Does anyone have any idea how to solve this?

Stop the bench, again start the bench, migrate the site, and check it.

If not work then uninstall the erpnext, again install it and migrate it.

1 Like

When I tried bench migrate the erpnext app appears already when I run bench list-apps. The problem is that ModuleNotFoundError: No module named 'erpnext' still appears when I’m trying to access it in the browser.

bench --site sitename clear-cache
bench build --force

Otherwise, create a new site and check it.

Thank You!

Is there any other way except creating a new site?

1 Like

Update the site and check it.

bench update --reset

If not work then create a new site and check it.

Thank You!

Hi it seemed to be working up until this error came up.

I am having that error since I installed the frappe-bench. Is this because python3.12 is being used for the site-packages?

Hi @Rabie_Moses_Santill1,

For ERPNext versions 14 and 15, the minimum required Python version is 3.10.

Please check the post.

Thank You!

It is been a year to this post, but I don’t see a clear answer except creating new site… I have the same situation… I could get back my erpnext but still the webshop module is not found even if it is installed. Strange thing, I could access it once from my erpnext app. but after a while again shows me “webshop” not found. Any suggestion would be appreciated, who have solved this problem. Thank you very much !!

I ran into Simillar issues, i found removing the locks from sites/frontend/locks and then sites/apps.txt remove the erpnext from the list. you should be able to run

  • “bench --site frontend install-app erpnext” (if it doesn’t let you do this check if its in the /apps directory) if its not run “bench get erpnext” and retry.
  • “bench --site frontend migrate”
  • “bench restart”
    **if its still a problem if this is a fresh install you can do “bench --site frontend reinstall” this will erase everything in the database and rebuild it.

if this is from the standard docker compose with frappe_docker erpnext should be in every container by default.

if you are using docker you have to make sure all your relevant containers have the bench get App-name or github http address here --branch “version thats needed”
that needs to be ran on each of the 5 containers.

I explain it better here
Cannot view contact in CRM app - Not permitted Internal Server Error - #3 by craftsmanglazing