
build is getting fail as I am trying to install opencv-python. Is there any way to solve this error?

Have you added all the packages inside requirement.txt
file?

Seems like the version of python you're using isn't compatible
Open your .env
file and update _APP_FUNCTIONS_RUNTIMES
You can use python-3.8
or python-3.9
After update it, run docker compose restart
where your docker-compose.yml
file is located

Can I do it in appwrite?

Are you using appwrite cloud?

yes

we are using appwrite cloud for this

are you using CLI?

cli for deploying the function?

yes

we did use the cli

The first time when you run appwrite init function
you can select your runtime, as you already create your function, try updating appwrite.json
to change the runtime

our python runtime is 3.9

this is what confused me coz. I remeber that you could only choose 3.9 as a runtime version for python

opencv-python requires numpy which doesn't work in Appwrite Functions. You might want to 👍🏼 this issue: https://github.com/appwrite/appwrite/issues/1037
we plan to introduce a specifc runtime that has support for numpy in the future

Okkey, that's the function is not able to build

ohh thanks for your support.

[SOLVED] Fail to build deployment
Recommended threads
- Queries Length Error.
Hi All, I am having a issues across my app with how i am getting data, and just wanted to check if this was an issues with the new changes on appwrite over the...
- My projects archived. Did not see the up...
Kindly restore project for me: 67680a26001bdf36beb8 You can delete: 678c96ba00305f78bb13 675d05040004853fb43f
- My projects archived. Did not see the up...
Kindly restore these two projects for me 66d6f4270037aafe3c39 and 663fdf520017d2d0f4e8 You can delete 66887997000e2c5b7e49
