You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
generator client {
provider = "prisma-client-py"
output = "generated"
}
datasource db {
provider = "sqlite"
url = "file:./dev.db"
}
model User {
id Int @id @default(autoincrement())
email String @unique
name String?
}
I get:
❯ prisma db push
Prisma schema loaded from prisma/schema.prisma
Datasource "db": SQLite database "dev.db" at "file:./dev.db"
🚀 Your database is now in sync with your Prisma schema. Done in 35ms
Running generate... - Prisma Client Python (v0.12.0)
Some types are disabled by default due to being incompatible with Mypy, it is highly recommended
to use Pyright instead and configure Prisma Python to use recursive types. To re-enable certain types:
generator client {
provider = "prisma-client-py"
recursive_type_depth = -1
}
If you need to use Mypy, you can also disable this message by explicitly setting the default value:
generator client {
provider = "prisma-client-py"
recursive_type_depth = 5
}
For more information see: https://prisma-client-py.readthedocs.io/en/stable/reference/limitations/#default-type-limitations
Traceback (most recent call last):
File "/nix/store/s16v3cd2dzg07kjpp7bchb8wp69mwjrv-python3.11-prisma-0.12.0/lib/python3.11/site-pac
kages/prisma/generator/generator.py", line 108, in run
self._on_request(request)
File "/nix/store/s16v3cd2dzg07kjpp7bchb8wp69mwjrv-python3.11-prisma-0.12.0/lib/python3.11/site-pac
kages/prisma/generator/generator.py", line 161, in _on_request
self.generate(data)
File "/nix/store/s16v3cd2dzg07kjpp7bchb8wp69mwjrv-python3.11-prisma-0.12.0/lib/python3.11/site-pac
kages/prisma/generator/generator.py", line 234, in generate
copy_tree(BASE_PACKAGE_DIR, rootdir)
File "/nix/store/s16v3cd2dzg07kjpp7bchb8wp69mwjrv-python3.11-prisma-0.12.0/lib/python3.11/site-pac
kages/prisma/generator/utils.py", line 113, in copy_tree
shutil.copytree(
File "/nix/store/pwr22740f2pv36q5g28l1gjdg1bw43zm-python3-3.11.7/lib/python3.11/shutil.py", line 5
61, in copytree
return _copytree(entries=entries, src=src, dst=dst, symlinks=symlinks,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/pwr22740f2pv36q5g28l1gjdg1bw43zm-python3-3.11.7/lib/python3.11/shutil.py", line 5
15, in _copytree
raise Error(errors)
❯ prisma py version
prisma : 5.8.0
prisma client python : 0.12.0
platform : darwin
expected engine version : 0a83d8541752d7582de2ebc1ece46519ce72a848
installed extras : []
install path : /nix/store/s16v3cd2dzg07kjpp7bchb8wp69mwjrv-python3.11-prisma-0.12.0/lib/python3.11/site-packages/prisma
binary cache dir : /Users/ethan/.cache/prisma-python/binaries/5.8.0/0a83d8541752d7582de2ebc1ece46519ce72a848
Important to note: I am using nix, which has a read-only store where (among other things) python dependencies are saved. I suspect that prisma is copying files from this store which results in them being write only. If this is the case, we can hopefully brainstorm some solutions.
The text was updated successfully, but these errors were encountered:
Bug description
This is my schema:
I get:
The output is quite large so I am posting only the abridged version. Here is the full version: https://gist.github.com/ethanabrooks/8c7d93c3ba92d48eec4a79eed25ff529
Environment & setup
❯ python --version
Python 3.11.7
Important to note: I am using nix, which has a read-only store where (among other things) python dependencies are saved. I suspect that prisma is copying files from this store which results in them being write only. If this is the case, we can hopefully brainstorm some solutions.
The text was updated successfully, but these errors were encountered: