Skip to content
Back

Python Function Not Running Locally in Appwrite

  • 0
  • Functions
Zaeem
29 Oct, 2024, 07:42

Hello Team Appwrite,

I have tried running Python functions locally using the bare minimum starter code provided by Appwrite, but it is neither working nor giving any error. I have tested it in both Python 3.9 and 3.11 environments. If I push the function to production via the command appwrite push function, it successfully deploys and works as expected.

Could you please help me, as I am stuck and can't think of a way forward?

Please see the attached file.

Thank you.

TL;DR
Python function not running locally in Appwrite due to openRuntimesVersion being set to 'v4'. Changing it to 'v3' resolved the issue. To resolve the problem, update V4-> V3 in the utils.js of your Appwrite CLI directory.
darShan
29 Oct, 2024, 07:49

assuming you have docker desktop installed, can you check the container if it has recorded any logs or such?

Zaeem
29 Oct, 2024, 12:26

@darShan Yes docker desktop is installed, container is up and no logs are recorded in container

Mojo
30 Oct, 2024, 22:52

Hey @Zaeem , I was also having this issue. I just put a bug report in here: https://github.com/appwrite/appwrite/issues/8902

If you update V4-> V3 in your utils.js of your appwrite CLI directory, you should be up and running

Zaeem
31 Oct, 2024, 16:39

Thanks @Mojo , its works after changing openRuntimesVersion from 'v4' to 'v3' 🙌

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