Back

function execution error "no module appwrite found"

  • 0
  • Functions
  • Flutter
  • Web
antonio84
14 Oct, 2023, 16:37

Hello, I have deployed a python3.9 function manually. The compressed file contains the main.py and the requirements.txt. When I execute the function form the admin panel I get "ModuleNotFoundError: No module named 'appwrite'". How to fix it?

TL;DR
The user is experiencing a "No module named 'appwrite'" error when executing a Python function on the Appwrite platform. The solution is to add the following line to the appwrite.json config file: "commands": "pip install -r requirements.txt". For more information, refer to this post: https://discord.com/channels/564160730845151244/1162729467777646642.
Drake
14 Oct, 2023, 22:52

Did you add the build command to install dependencies?

antonio84
15 Oct, 2023, 06:31

No what Is the command?

Legomaenchen
15 Oct, 2023, 11:42
Legomaenchen
15 Oct, 2023, 11:43

You basically have to add this line to your function in the appwrite.json config file: "commands": "pip install -r requirements.txt"

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