ModuleNotFoundError: No module named 'psycopg2'

has-n
HOBBY

18 days ago

I'm trying to deploy the containers from this compose file individually https://github.com/Skyvern-AI/skyvern/blob/main/Dockerfile

For the skyvern image, I'm running into the titled error. I tried adding a pip install psycopg2-binary pre-deploy command but that didn't help.

Short of forking & building my own image, is there a quick fix in Railway for this?

Solved

1 Replies

18 days ago

You can't do a pip install in the pre-deploy, you will need to make sure that your dependencies are installed in the Dockerfile of the root of your file.


Status changed to Awaiting User Response railway[bot] 18 days ago


Status changed to Solved has-n 18 days ago


ModuleNotFoundError: No module named 'psycopg2' - Railway Help Station