debxylen Posted 5 hours ago Posted 5 hours ago 1. My account username: debxylen 2. Server: Tommy 3. Python version: 3.12 4. I need that the pydantic module be downgraded to <2 because mod_wsgi on Apache runs Flask apps in subinterpreters, and PyO3 doesn't support that. Thus it is essential to downgrade to pydantic v1.x which doesn't use PyO3 Quote
wolstech Posted 4 hours ago Posted 4 hours ago Let's see what Krydos says. Usually we don't downgrade modules, but in this case it sounds like the newer versions are useless due to how we implement Flask... Quote
Krydos Posted 2 hours ago Posted 2 hours ago We don't downgrade modules because that is pretty much guaranteed to break someone else's site unless we know for certain that you're the only one who is using the module. Since the modules is already installed on Tommy that means someone is probably using the newer version. Here are your options: Move to a VPS where you have root access to install whatever version modules you want https://heliohost.org/vps/ Move to Morty where pydantic isn't currently installed so we know we won't break anyone's site by installing an old version. https://krydos3.heliohost.org/pyinfo/info3.12.py If you can use Python CGI instead of Flask we can set up a virtual environment for you using the old version. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.