This for NON-Docker installations: The python version that comes with Debian 13 Trixie is not compatible with seahub. It just silently exits on startup. For all the people in this situation, how this can be worked around.
Beware, that is a crude way to get the system running and gaining time to study better ways.
Quick rundown (A lot of things can go wrong!):
- Create a local base installation of python3.10
- Install the required python modules locally
- Make seahub use the local python and modules
Details 1-2, as user seafile unless noted:
wget https://www.python.org/ftp/python/3.10.22/Python-3.10.22.tar.xz
tar xfJ Python-3.10.22.tar.xz
cd Python-3.10.22/
./configure --enable-optimizations --with-lto
make
make altinstall # as root to /usr/local/
python3.10 --version # must print 3.10
python3.10 -m pip install --user --upgrade pip # to ~/.local/
python3.10 -m pip install --user django==3.2.* future==0.18.* pillow==9.5.* pylibmc captcha jinja2 sqlalchemy psd-tools django-pylibmc django-simple-captcha pycryptodome==3.12.0 mysqlclient
mkdir /opt/seafile/p310path
ln -s /usr/local/bin/python3.10 /opt/seafile/p310env/python3
Step 3: Edit /opt/seafile/seafile-server-latest/seahub.sh to add two “export” lines:
export PYTHON=python3.10
export PATH=/opt/seafile/p310path:$PATH
$PYTHON $gunicorn_exe seahub.wsgi:application -c "${gunicorn_conf}" --preload
The __pycache__ directories under /opt/seafile must be writeable by the seafile user. Python build dependencies on Debian Trixie are: build-essential checkinstall libbz2-dev libffi-dev libgdbm-dev liblzma-dev libncurses-dev libreadline-dev libsqlite3-dev libssl-dev zlib1g-dev libmariadb-dev
Now going docker, I suppose ![]()