Skip to content
Back

No module named 'function.'

  • 0
  • Cloud
projectbilal
31 Jul, 2025, 16:33

I can't figure out why my funciton works when testing locally using appwrite run functions and not when deployed in the cloud. I searched for this issue but doesn't seem to be a response.

This is the error I get when deployed and I execute the funciton. No module named 'function.'

The root directory is functions/invokeNotification

I'm running a very very simple function. The code is here.

This is my entry point: ./src/main.py The root directory is set as functions/invokeNotification

the full error is in the main.py on github

TL;DR
Issue: Developer is facing an error 'No module named 'function.' when deploying the function in the cloud, even though it works locally. Solution: The file structure and naming conventions need to be double-checked. Ensure that the function name and directories are correctly set up.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more