Python 3.8 and Python 3.12 apps on the same instance of Unit #1557
Replies: 3 comments
-
Absolutely!
What modules does Unit show as loaded from the
{
"python": [
{
"version": "3.12.3",
"lib": "/opt/unit/modules/python.unit.so"
},
{
"version": "3.8",
"lib": "/opt/unit/modules/python-3.8.unit.so"
}
],
"php": {
"version": "8.3.4",
"lib": "/opt/unit/modules/php.unit.so"
}
} But it looks like you don't have a Python 3.8 language module...
|
Beta Was this translation helpful? Give feedback.
-
Yes, indeed, only 3.12 language module installed: But how to install unit-python3.8 on Ubuntu 24.04?
|
Beta Was this translation helpful? Give feedback.
-
After adding
|
Beta Was this translation helpful? Give feedback.
-
Is it possible to have Python 3.8 and Python 3.12 apps on the same instance of Unit?
unit-python3.12 is installed successfully. But
sudo apt install unit-python3.8
on Ubuntu 24.04 fails:
Unable to locate package unit-python38
Simplified configuration is:
"applications": {
"app38": {
"type": "python 3.8",
"protocol": "wsgi",
"module": "wsgi",
"callable": "app",
},
"app312": {
"type": "python 3.12",
"protocol": "wsgi",
"module": "wsgi",
"callable": "app",
}
}
Result of applying this configuration is:
{
"error": "Invalid configuration.",
"detail": "The module to run "python 3.8" is not found among the available application modules."
}
May be there is another way to specify type of app38 to run with Python 3.8?
Beta Was this translation helpful? Give feedback.
All reactions