frappe / gameplan

Delightful, open-source, work communication tool for remote teams
GNU Affero General Public License v3.0
286 stars 116 forks source link

Install failure redis.command #229

Closed bigerx closed 1 year ago

bigerx commented 1 year ago

Installing gameplan... Updating DocTypes for gameplan : [= ] 4%An error occurred while installing gameplan: Module import failed for GP Page, the DocType you're trying to open might be deleted.
Error: No module named 'redis.commands' Traceback (most recent call last): File "apps/frappe/frappe/modules/utils.py", line 245, in load_doctype_module doctype_python_modules[key] = frappe.get_module(module_name) File "apps/frappe/frappe/init.py", line 1328, in get_module return importlib.import_module(modulename) File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line 688, in _load_unlocked File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "apps/gameplan/gameplan/gameplan/doctype/gp_page/gp_page.py", line 7, in from gameplan.search import GameplanSearch File "apps/gameplan/gameplan/search.py", line 6, in from gameplan.utils.search import Search File "apps/gameplan/gameplan/utils/search.py", line 7, in from redis.commands.search.field import TextField ModuleNotFoundError: No module named 'redis.commands'

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "apps/frappe/frappe/commands/site.py", line 416, in install_app _install_app(app, verbose=context.verbose, force=force) File "apps/frappe/frappe/installer.py", line 294, in install_app sync_for(name, force=force, reset_permissions=True) File "apps/frappe/frappe/model/sync.py", line 109, in sync_for import_file_by_path( File "apps/frappe/frappe/modules/import_file.py", line 145, in import_file_by_path import_doc( File "apps/frappe/frappe/modules/import_file.py", line 242, in import_doc doc.insert() File "apps/frappe/frappe/model/document.py", line 285, in insert self.run_post_save_methods() File "apps/frappe/frappe/model/document.py", line 1082, in run_post_save_methods self.run_method("on_update") File "apps/frappe/frappe/model/document.py", line 914, in run_method out = Document.hook(fn)(self, *args, kwargs) File "apps/frappe/frappe/model/document.py", line 1264, in composer return composed(self, method, *args, *kwargs) File "apps/frappe/frappe/model/document.py", line 1246, in runner add_to_return_value(self, fn(self, args, kwargs)) File "apps/frappe/frappe/model/document.py", line 911, in fn return method_object(*args, **kwargs) File "apps/frappe/frappe/core/doctype/doctype/doctype.py", line 409, in on_update self.run_module_method("on_doctype_update") File "apps/frappe/frappe/core/doctype/doctype/doctype.py", line 494, in run_module_method module = load_doctype_module(self.name, self.module) File "apps/frappe/frappe/modules/utils.py", line 249, in load_doctype_module raise ImportError(msg) from e ImportError: Module import failed for GP Page, the DocType you're trying to open might be deleted.
Error: No module named 'redis.commands'

ankush commented 1 year ago

https://github.com/frappe/gameplan/issues/137