Back

[SOLVED] Appwrite does not install the packages from requirements.txt

  • 0
  • Cloud
Legomaenchen
14 Oct, 2023, 12:31

Hello all,

my Appwrite Cloud Functions, are no longer deploying correctly. About a month ago everything worked, but now the packages (e.g. appwrite) from the requirements.txt are no longer installed.

What do I do: I create a function on my machine with: appwrite init funtion

Afterwards I deploy this function with: appwrite deploy funtion

You can find the logs of the deployment and the error of the execution attached. In older deployments the appwrite package gets installed. Did anything change during the last month?

TL;DR
The user is experiencing issues with Appwrite not installing packages from requirements.txt when deploying functions. They are unsure if anything has changed in the last month. The solution is to specify the build command as `"commands": "pip install -r requirements.txt"` in the appwrite cli.
Drake
14 Oct, 2023, 14:17

In 1.4, you just specify the build command (pip install -r requirements.txt)

Legomaenchen
14 Oct, 2023, 14:34

I am deploying the function to my cloud Project using the appwrite cli ... In older deployments the packages were installed automatically by using the "appwrite deploy function" command (after selecting the right function in the command line. How am I supposed to install these packages now?

darShan
14 Oct, 2023, 14:34

"commands": "pip install -r requirements.txt" if I am not wrong.

Legomaenchen
14 Oct, 2023, 14:40

Thank you! It worked with that. This is new, isn't it? I don't remember having to use that before ....

Drake
14 Oct, 2023, 14:40

Yes, the flexibility now allows you to do other things you may need like install OS level dependencies needed for some python packages

Legomaenchen
14 Oct, 2023, 14:45

All right, thanks for your help!

Legomaenchen
14 Oct, 2023, 14:46

{SOLVED] Appwrite does not install the packages from requirements.txt

Legomaenchen
14 Oct, 2023, 14:46

[SOLVED] Appwrite does not install the packages from 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