Attempting to run mysqldump with the subprocess module in Python on a chronjob
patrgl
PROOP

2 years ago

Hey guys, I am attempting to run what is mentioned above but i get the following error in the deploy log:
line 1: mysqldump: command not found

I do have PyMySQL installed, i have tried the solutions listed here: https://www.answeroverflow.com/m/1133956338867773470, including placing this:
[phases.setup]
aptPkgs = ["…", "libmysqlclient-dev"]
into a nixpackages.toml in my root directory to no avail.

4 Replies

patrgl
PROOP

2 years ago

e828cf35-b85e-4ca4-99e2-1f686f8e5e01


2 years ago

their issue was needed header files for the mysql client library, you simply need the mysqldump binary.

try adding this nixpacks.toml file to your build -

[phases.setup]
    nixPkgs = ['...', 'mysql']

patrgl
PROOP

2 years ago

It worked! Thank you so much!!


2 years ago

awsome!


Loading...