Frappe Lms Installation Error

I am trying to install frappe lms in my existing site.
I have one app used react in it @buildwithhussain
Right now trying to install lms in that site i am getting issues.

ERROR: pip’s dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
frappe 15.0.0.dev0 requires beautifulsoup4~=4.9.3, but you have beautifulsoup4 4.12.3 which is incompatible.
frappe 15.0.0.dev0 requires cairocffi==1.2.0, but you have cairocffi 1.6.1 which is incompatible.

Running build command for turiya_app
warning …/…/package.json: No license field
$ cd turiyaVue && yarn build
/bin/sh: 1: cd: can’t cd to turiyaVue
error Command failed with exit code 2.
info Visit yarn run | Yarn for documentation about this command.
Error: Command failed: yarn build
at checkExecSyncError (node:child_process:871:11)
at execSync (node:child_process:943:15)
at run_build_command_for_apps (/home/ubuntu/frappe-bench/apps/frappe/esbuild/esbuild.js:436:5)
at /home/ubuntu/frappe-bench/apps/frappe/esbuild/esbuild.js:89:35
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
status: 2,
signal: null,
output: [ null, null, null ],
pid: 30231,
stdout: null,
stderr: null
}
Done in 21.09s.

Can we install lms in that site? Or we need new bench to utilize that ?
if we install that app also how could we route and use. Currently in type generator settings i added /turiyapp/src. I will render my website /turiya.

Like that if i install lms also ? how to see that in website

Thankyou

This is the issue. Check if the path is correct and then try bench build again.

1 Like

Solved that one i am getting this sir

frappe-bench git:(main) ✗ bench --site turiyatree.in install-app lms

Installing lms…
An error occurred while installing lms: (‘Module Def’, ‘LMS’, IntegrityError(1062, “Duplicate entry ‘LMS’ for key ‘PRIMARY’”))
Traceback (most recent call last):
File “apps/frappe/frappe/model/base_document.py”, line 510, in db_insert
frappe.db.sql(
File “apps/frappe/frappe/database/database.py”, line 222, in sql
self._cursor.execute(query, values)
File “env/lib/python3.10/site-packages/pymysql/cursors.py”, line 158, in execute
result = self._query(query)
File “env/lib/python3.10/site-packages/pymysql/cursors.py”, line 325, in _query
conn.query(q)
File “env/lib/python3.10/site-packages/pymysql/connections.py”, line 549, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
File “env/lib/python3.10/site-packages/pymysql/connections.py”, line 779, in _read_query_result
result.read()
File “env/lib/python3.10/site-packages/pymysql/connections.py”, line 1157, in read
first_packet = self.connection._read_packet()
File “env/lib/python3.10/site-packages/pymysql/connections.py”, line 729, in _read_packet
packet.raise_for_error()
File “env/lib/python3.10/site-packages/pymysql/protocol.py”, line 221, in raise_for_error
err.raise_mysql_exception(self._data)
File “env/lib/python3.10/site-packages/pymysql/err.py”, line 143, in raise_mysql_exception
raise errorclass(errno, errval)
pymysql.err.IntegrityError: (1062, “Duplicate entry ‘LMS’ for key ‘PRIMARY’”)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “apps/frappe/frappe/commands/site.py”, line 463, in install_app
_install_app(app, verbose=context.verbose, force=force)
File “apps/frappe/frappe/installer.py”, line 291, in install_app
add_module_defs(name, ignore_if_duplicate=force)
File “apps/frappe/frappe/installer.py”, line 622, in add_module_defs
d.insert(ignore_permissions=True, ignore_if_duplicate=ignore_if_duplicate)
File “apps/frappe/frappe/model/document.py”, line 280, in insert
self.db_insert(ignore_if_duplicate=ignore_if_duplicate)
File “apps/frappe/frappe/model/base_document.py”, line 537, in db_insert
raise frappe.DuplicateEntryError(self.doctype, self.name, e)
frappe.exceptions.DuplicateEntryError: (‘Module Def’, ‘LMS’, IntegrityError(1062, “Duplicate entry ‘LMS’ for key ‘PRIMARY’”))

try
bench update

Check if the ‘LMS’ application is already installed in your app by running ‘bench --site your_site_name list-apps’. If ‘LMS’ is in the list, then uninstall it and reinstall it.

frappe-bench git:(main) ✗ bench --site turiyatree.in install-app lms

Installing lms…
Updating DocTypes for lms : [ ] 1%An error occurred while installing lms: Module import failed for LMS Quiz, the DocType you’re trying to open might be deleted.
Error: No module named ‘frappe.utils.telemetry’
Traceback (most recent call last):
File “apps/frappe/frappe/modules/utils.py”, line 241, in load_doctype_module
doctype_python_modules[key] = frappe.get_module(module_name)
File “apps/frappe/frappe/init.py”, line 1311, 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/lms/lms/lms/doctype/lms_quiz/lms_quiz.py”, line 9, in
from lms.lms.doctype.course_lesson.course_lesson import save_progress
File “apps/lms/lms/lms/doctype/course_lesson/course_lesson.py”, line 7, in
from frappe.utils.telemetry import capture
ModuleNotFoundError: No module named ‘frappe.utils.telemetry’

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

Traceback (most recent call last):
File “apps/frappe/frappe/commands/site.py”, line 463, in install_app
_install_app(app, verbose=context.verbose, force=force)
File “apps/frappe/frappe/installer.py”, line 293, in install_app
sync_for(name, force=force, reset_permissions=True)
File “apps/frappe/frappe/model/sync.py”, line 81, 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 292, in insert
self.run_post_save_methods()
File “apps/frappe/frappe/model/document.py”, line 1098, in run_post_save_methods
self.run_method(“on_update”)
File “apps/frappe/frappe/model/document.py”, line 926, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “apps/frappe/frappe/model/document.py”, line 1280, in composer
return composed(self, method, *args, **kwargs)
File “apps/frappe/frappe/model/document.py”, line 1262, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “apps/frappe/frappe/model/document.py”, line 923, in fn
return method_object(*args, **kwargs)
File “apps/frappe/frappe/core/doctype/doctype/doctype.py”, line 415, in on_update
self.run_module_method(“on_doctype_update”)
File “apps/frappe/frappe/core/doctype/doctype/doctype.py”, line 500, in run_module_method
module = load_doctype_module(self.name, self.module)
File “apps/frappe/frappe/modules/utils.py”, line 245, in load_doctype_module
raise ImportError(msg) from e
ImportError: Module import failed for LMS Quiz, the DocType you’re trying to open might be deleted.
Error: No module named ‘frappe.utils.telemetry’

I am getting this issue
My frappe framework version 15
bench -version 5.22

@buildwithhussain

Help me to sort this out.