#python prisma issue

20 messages · Page 1 of 1 (latest)

feral frigate
#

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)

dense crestBOT
#

Project ID: 2890c019-be36-45c2-800b-c4c137d5295f

trim emberBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

feral frigate
#

2890c019-be36-45c2-800b-c4c137d5295f

broken temple
#

try adding this nixpacks.toml file to your project

[phases.setup]
    nixLibs = ['...', 'zlib']
feral frigate
#

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

broken temple
#

hmmm let me think

feral frigate
#

bit more context I have everything on github and I just linked the services to the repo

broken temple
#

you could add the file to your repo with github's web ui

#

but try setting a service variable NIXPACKS_LIBS to zlib

feral frigate
#

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)

broken temple
#

where does node come into play? does primsa for python use node under the hood?

feral frigate
#

does seem like it. btw is there a better way to send formatted logs on discord?

broken temple
#

@cloud bolt - the glibc error came back

cloud bolt
#

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

feral frigate
#

umm how do I create a deployment?

#

ok I've joined the priority boarding but still can't seem to update the provider settings

cloud bolt
#

Can you please try refreshing the page and seeing

feral frigate
#

works guys