You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While attempting to build a Multi-language app and convert my working 1.31.1-python3.11 containers into Python3.11/FastAPI + Node/React multi-language containers; I found that Python3.11.2 always fails to load properly in 1.33.0-minimal. (See log below)
Simply issue docker compose up --build --remove-orphans --force-recreate -d
Notes:
The Log line that indicates the failure to initialize was added via Failed to initialise config: 491d0f7 but really does not provide anything useful.
Seeing pep405, I have tried with and without VENV's but didn't find much difference.
I realized my working container (see "Working Single-App Container" section) is running python 3.11.8 so I pulled that and built from source.
3.11.8 seems to get past the error however, I run into problems with Unit loading installed Python modules (likely because Unit is 3.11.2 and Python/Pip are 3.11.8.)
My analysis, it looks like the problem may be with 3.11.2 since 3.11.8 load nicely.
I can compile and build 3.11.8 from Python source but the unit-python3.11 is 3.11.2 (likely since Debian python3.11 is currently only at 3.11.2) so I doubt this will work until the Debian package updates to a newer version of 3.11.
I am willing to try Python3.12 but I don't see a unit-python3.12 package for Bookwork which is what 1.33.0-minmal runs right now..
For example, I don't see unit-python3.9 available for Bookworm. (I don't want this, just illustrating how the document snippet is out of date)
root@27f4af62d939:/# apt search "^unit-python"
Sorting... Done
Full Text Search... Done
unit-python3.11/now 1.33.0-1~bookworm amd64 [installed,local]
Python 3.11 module for NGINX Unit
Problem
While attempting to build a Multi-language app and convert my working
1.31.1-python3.11
containers into Python3.11/FastAPI + Node/React multi-language containers; I found that Python3.11.2 always fails to load properly in 1.33.0-minimal. (See log below)I have a sample repo here that one can clone and observe the issue:
https://github.com/kyzer-davis/nginx-unit-python-multi-app
Simply issue
docker compose up --build --remove-orphans --force-recreate -d
Notes:
Failed to initialise config
: 491d0f7 but really does not provide anything useful.pep405
, I have tried with and without VENV's but didn't find much difference.My analysis, it looks like the problem may be with 3.11.2 since 3.11.8 load nicely.
unit-python3.12
package for Bookwork which is what1.33.0-minmal
runs right now..Versions
Configs
LOGS:
Debian and Unit Python3
Working Single-App Container
The text was updated successfully, but these errors were encountered: