R
Railway17mo ago
bW9ubwo

Package installation of cffi (python) fails because libffi-dev is missing

As the title says, installing cffi fails with an error. I think this is because the package libffi-dev is missing on the host. Here is the full error log:
11 Replies
Percy
Percy17mo ago
Project ID: N/A
bW9ubwo
bW9ubwoOP17mo ago
N/A One other issuer. My Teams plan is not recognized here.
root
root17mo ago
Try adding a nixpacks.toml to your project:
[phases.setup]
nixPkgs = ['...', 'libffi']
nixLibs = ['...', 'libffi']
[phases.setup]
nixPkgs = ['...', 'libffi']
nixLibs = ['...', 'libffi']
bW9ubwo
bW9ubwoOP17mo ago
Nice tip, but it doesn't solve it. Anyway, I solved the problem by switching to another lib.
Brody
Brody17mo ago
what did you end up using? for any future people who may come along with this same issue
bW9ubwo
bW9ubwoOP17mo ago
I moved from the argon2-cffi package to passlib.
bW9ubwo
bW9ubwoOP17mo ago
Sorry to come back to this topic. But it seems that passlib needs also the argon2-cffi package. So, I try your solution again and also update the argon2 package. And what should I say, it works now.
lionel
lionel15mo ago
how did you implement this?
Brody
Brody15mo ago
read up in the thread lol
lionel
lionel15mo ago
how did he switch libs?
Want results from more Discord servers?
Add your server