Skip to content
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

Error: spawn prisma-client-py ENOENT} #962

Open
AideFlood opened this issue May 13, 2024 · 2 comments
Open

Error: spawn prisma-client-py ENOENT} #962

AideFlood opened this issue May 13, 2024 · 2 comments

Comments

@AideFlood
Copy link

AideFlood commented May 13, 2024

I've been using Prisma in node.js & I'm loving it.
Right now I have a Fastapi backend that I want to use Prisma with, yet I'm facing this issue whenever I run "Prisma db push" :

`prisma db push

Environment variables loaded from .env
Prisma schema loaded from schema.prisma
Datasource "db": PostgreSQL database "postgres", schema "public" at "HIDDEN.pooler.supabase.com"

The database is already in sync with the Prisma schema.

Running generate... (Use --skip-generate to skip the generators)
Error: spawn prisma-client-py ENOENT}`

Prisma version: `

prisma : 5.13.0
@prisma/client : 5.13.0
Computed binaryTarget : windows
Operating System : win32
Architecture : x64
Node.js : v20.12.0
Query Engine (Node-API) : libquery-engine b9a39a7ee606c28e3455d0fd60e78c3ba82b1a2b (at ........\AppData\Roaming\npm\node_modules\prisma\node_modules@prisma\engines\query_engine-windows.dll.node)
Schema Engine : schema-engine-cli b9a39a7ee606c28e3455d0fd60e78c3ba82b1a2b (at ........\AppData\Roaming\npm\node_modules\prisma\node_modules@prisma\engines\schema-engine-windows.exe)
Schema Wasm : @prisma/prisma-schema-wasm 5.13.0-23.b9a39a7ee606c28e3455d0fd60e78c3ba82b1a2b
Default Engines Hash : HIDDEN
Studio : 0.500.0`

Schema.prisma:

`generator client {
provider = "prisma-client-py"
}

datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}

model User {
id String @id @unique
name String?
email String @unique
profileImage String?
ntfyChannel String
stripeCustomerId String? @unique`

My system:

Windows 11 64 bit Python 3.12.2

@wxaeia
Copy link

wxaeia commented Sep 10, 2024

change --> provider = "prisma-client-py" to provider = "prisma-client-js"

@iranzithierry
Copy link

change --> provider = "prisma-client-py" to provider = "prisma-client-js"

I did that and it installed js packages but still am getting this error raise RuntimeError( RuntimeError: The Client hasn't been generated yet, you must runprisma generate` before you can use the client.
See https://prisma-client-py.readthedocs.io/en/stable/reference/troubleshooting/#client-has-not-been-generated-yet

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants