Unable to db.connect() via Flask on remote server #761
-
I am trying to run prisma client py via flask on pythonAnywhere but get the following error:
My steps: Has this error got something to do using a remote server connection? What am I missing? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
@simondpalmer this seems to be an issue with PythonAnywhere where subprocesses cannot be spawned for some reason. I'm not familiar with PythonAnywhere unfortunately so I can't help there. The reason that the JS client would work where the Python client doesn't is because the JS client now uses rust bindings instead of spawning a separate process. I started working on transitioning the Python client to a similar structure but it's a fairly monumental effort. |
Beta Was this translation helpful? Give feedback.
Any remote server provider that gives you access to your own server should work.
I've successfully used Railway before but to name some others that should work as well:
(These are just some providers I know off the top of my head fwiw)
I'd currently recommend staying away from any Serverless offerings as well.