While installing Frappe CRM in Localhost Showing /crm not a valid url

Hi,
I am installing the Frappe and CRM in my Local Device. While installing the CRM to site its showing this error. What is the mistake that i have did here.

I have logged into frappe and i can access frappe in browser. Also I have configured the Postgres Database for this Site
help on this Pls.

1 Like

did you find the solution i am facing the same issue

Try running this commands in bench directory while bench is running

bench --site sitename uninstall-app crm --force
bench remove-from-installed-apps crm
bench remove-app crm --force

then reinstall it with below commands

bench get-app crm --branch main
bench --site sitename install-app crm
1 Like

Hi @nilpatel42

Thanks for your reply and it’s worked.

1 Like

@nilpatel42 Hi , I am having an similar issue here but i have successfully installed the frappe-crm in my site but when I try to access the portal page is giving me an traceback error and I can’t access my frappe-crm portal page, Can you please assist me with this issue ??

Error:

Traceback (most recent call last):
File “apps/frappe/frappe/website/serve.py”, line 20, in get_response
response = renderer_instance.render()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File “apps/frappe/frappe/website/page_renderers/template_page.py”, line 84, in render
html = self.get_html()
^^^^^^^^^^^^^^^
File “apps/frappe/frappe/website/utils.py”, line 530, in cache_html_decorator
html = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File “apps/frappe/frappe/website/page_renderers/template_page.py”, line 95, in get_html
self.update_context()
File “apps/frappe/frappe/website/page_renderers/template_page.py”, line 160, in update_context
self.pymodule = frappe.get_module(self.pymodule_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “apps/frappe/frappe/init.py”, line 1433, in get_module
return importlib.import_module(modulename)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.12/importlib/init.py”, line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “”, line 1387, in _gcd_import
File “”, line 1360, in _find_and_load
File “”, line 1331, in _find_and_load_unlocked
File “”, line 935, in _load_unlocked
File “”, line 995, in exec_module
File “”, line 488, in _call_with_frames_removed
File “apps/crm/crm/www/crm.py”, line 9, in
from frappe.locale import (
ImportError: cannot import name ‘get_date_format’ from ‘frappe.locale’ (unknown location)

may you develop something and you call get_date_fromat in your code check it before

Make sure you have the latest Frappe and CRM apps. Most of the time, these kinds of issues arise because of a version mismatch. Update your Frappe and CRM apps.
also, try these commands

bench --site site_name migrate
bench restart