Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'webshop.patches.after_install' #38

Open
sharad740 opened this issue Nov 28, 2023 · 2 comments
Open

Comments

@sharad740
Copy link

┌──(jarvis㉿kali)-[/frappe_new/frappe-15]
└─$ bench install-app webshop
App payments already installed
App erpnext already installed

Installing webshop...
An error occurred while installing webshop: No module named 'webshop.patches.after_install'
Traceback (most recent call last):
File "apps/frappe/frappe/commands/site.py", line 462, in install_app
_install_app(app, verbose=context.verbose, force=force)
File "apps/frappe/frappe/installer.py", line 306, in install_app
frappe.get_attr(after_install)()
File "apps/webshop/webshop/setup/install.py", line 9, in after_install
run_patches()
File "apps/webshop/webshop/setup/install.py", line 236, in run_patches
frappe.get_attr(f"webshop.patches.after_install.{patch}.execute")()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/init.py", line 1679, in get_attr
return getattr(get_module(modulename), methodname)
^^^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/init.py", line 1415, in get_module
return importlib.import_module(modulename)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1126, in _find_and_load_unlocked
File "", line 241, in _call_with_frames_removed
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1140, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'webshop.patches.after_install'

@Nicolas-Che
Copy link

+1, I have the same issue. Do you have any solution?

@legolas108
Copy link

Had the same problem. Tried bench --site <sitename> install-app --force webshop and it finished without error. Not sure though it's all good under the hood. Need to test now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants