-
-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BinaryNotFoundError When Running in Docker #835
Comments
Set the |
Hey thanks @abbazs but sadly that didn't work either. Still getting the same error. Any other ideas? Do you have any examples of a working Docker image? |
set this environment variable before run prisma generate
|
Hey @mdavish,
It seems to me that it generally does not load the binary target regardless of the specified binary path. |
Facing the same issue. Could anyone find a solution to this? |
Bug description
I'm trying to use Python Prisma in Docker container, but when I try to initialize
Prisma()
I get aBinaryNotFoundError
. It prompts me to runprisma py fetch
to solve this, but that doesn't seem to download the binary correctly either.How to reproduce
Using this Dockerfile:
... and this
schema.prisma
...... the Docker Image builds successfully, I get this traceback when I run the container:
However, even adding
prisma py fetch
to the Dockerfile doesn't solve the problem.Expected behavior
I am expecting the Prisma binary to be installed under
/root/.cache/prisma-python/binaries/5.4.2/ac9d7041ed77bcc8a8dbd2ab6616b39013829574/prisma-query-engine-debian-openssl-3.0.x
but when I go into the container's shell, I'm not able to find it at that path, and runningprisma py fetch
does not seem to put it there.Prisma information
See above for Prisma schema
Environment & setup
The text was updated successfully, but these errors were encountered: