python prisma issue

trying to run prisma migrate deploy but getting the following error Traceback (most recent call last): File "/opt/venv/bin/prisma", line 8, in <module> sys.exit(main()) ^^^^^^ File "/opt/venv/lib/python3.11/site-packages/prisma/cli/cli.py", line 39, in main sys.exit(prisma.run(args[1:])) ^^^^^^^^^^^^^^^^^^^^ File "/opt/venv/lib/python3.11/site-packages/prisma/cli/prisma.py", line 36, in run entrypoint = ensure_cached().entrypoint ^^^^^^^^^^^^^^^ File "/opt/venv/lib/python3.11/site-packages/prisma/cli/prisma.py", line 104, in ensure_cached proc.check_returncode() File "/root/.nix-profile/lib/python3.11/subprocess.py", line 502, in check_returncode raise CalledProcessError(self.returncode, self.args, self.stdout, subprocess.CalledProcessError: Command '['/root/.cache/prisma-python/nodeenv/bin/npm', 'install', '[email protected]']' returned non-zero exit status 1. Installing Prisma CLI An error ocurred while installing the Prisma CLI; npm install log: node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.36' not found (required by /nix/store/xpxln7rqi3pq4m0xpnawhxb2gs0mn1s0-gcc-12.3.0-lib/lib/libstdc++.so.6)
Solution:
I am not sure where the version of node is coming from. But it isn't coming from Nix which is what seems to be causing the issue. Can you trying adding Node to the providers on the settings page
No description
Jump to solution
16 Replies
Percy
Percy12mo ago
Project ID: 2890c019-be36-45c2-800b-c4c137d5295f
vince🐶🐱
vince🐶🐱12mo ago
2890c019-be36-45c2-800b-c4c137d5295f
Brody
Brody12mo ago
try adding this nixpacks.toml file to your project
[phases.setup]
nixLibs = ['...', 'zlib']
[phases.setup]
nixLibs = ['...', 'zlib']
vince🐶🐱
vince🐶🐱12mo ago
is it possible to update on the web console? I don't currently have the local version setup yet. That's how magical railway has been
Brody
Brody12mo ago
hmmm let me think
vince🐶🐱
vince🐶🐱12mo ago
bit more context I have everything on github and I just linked the services to the repo
Brody
Brody12mo ago
you could add the file to your repo with github's web ui but try setting a service variable NIXPACKS_LIBS to zlib
vince🐶🐱
vince🐶🐱12mo ago
same error but now using node 21 * Install prebuilt node (21.4.0) ..... done. An error ocurred while installing the Prisma CLI; npm install log: node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.36' not found (required by /nix/store/xpxln7rqi3pq4m0xpnawhxb2gs0mn1s0-gcc-12.3.0-lib/lib/libstdc++.so.6)
Brody
Brody12mo ago
where does node come into play? does primsa for python use node under the hood?
vince🐶🐱
vince🐶🐱12mo ago
does seem like it. btw is there a better way to send formatted logs on discord?
No description
Brody
Brody12mo ago
glad you asked https://bookmarklets.up.railway.app/log-downloader/ @jr - the glibc error came back
Solution
jr
jr12mo ago
I am not sure where the version of node is coming from. But it isn't coming from Nix which is what seems to be causing the issue. Can you trying adding Node to the providers on the settings page
No description
vince🐶🐱
vince🐶🐱12mo ago
umm how do I create a deployment?
No description
vince🐶🐱
vince🐶🐱12mo ago
ok I've joined the priority boarding but still can't seem to update the provider settings
jr
jr12mo ago
Can you please try refreshing the page and seeing
vince🐶🐱
vince🐶🐱12mo ago
works guys
Want results from more Discord servers?
Add your server