[Help] Frappe Cloud, Python method not called

Good day!

I have some problems in Frappe Cloud.

This error keeps popping up:
I don’t know why this pops up but I have already installed my custom app.
Also this error does not show up in my Ubuntu VM but in Frappe Cloud it does.
Idk why it does not get the method command.
image

Here are the installed apps:

image

Here is my python code that this error tries to get: (course.py)

@frappe.whitelist()
def get_college_departments(college):
	departments = frappe.db.sql(f"""
		SELECT
		department
		FROM
		`tabDepartment`
		WHERE
		parent = '{college}'
	""", as_dict=True)

	return departments

@frappe.whitelist()
def get_course_schedule(course_title):
	schedule = frappe.db.sql(f"""
		SELECT
		section,
		day_time,
		room
		FROM
		`tabCourse Schedule`
		WHERE
		parent = '{course_title}'
	""", as_dict=True)

	return schedule

Here is my file path:
frappe-bench/apps/course_syllabus_builder/course_syllabus_builder/course_syllabus_builder/doctype/course/course.py

Any reason why this is happening?

Thank you so much :slight_smile:

hello, few things to check:

  • check if the app appear in Help/About or Module Def doctype
  • if not then try to remove and reinstall the app then clear site cache and migrate

if not then open support ticket they will help you :slight_smile: