Closed MattDHarding closed 2 years ago
I can confirm that switching to ubuntu 20.04 and thus using the respective archive for that works using the same docker setup (bar a few package name changes).
I hit the same error after compiling seafile-server-9.0.4 for Debian Bullseye (Raspberry Pi OS).
Similarly to @MattDHarding I could fix it locally - in my case with:
mv /opt/seafile/seafile-server-9.0.4/seafile/lib/python2.7 /opt/seafile/seafile-server-9.0.4/seafile/lib/python3
I'm on raspberry pi 32 bit using an ubuntu 18.04 docker and when I came to try to update my 8.0.7 to 9.0.2 I ran into the same problem as: https://github.com/haiwen/seafile-rpi/issues/71
So my error was:
The problem seems to be that in seahub.sh the export PYTHONPATH line 227 is wrong for the install in the current arm32v7l bionic archive?
I think the following change was made but the arm32v7l bionic archive wasn't updated? https://github.com/haiwen/seafile-server/commit/e996f5750299da9fbf633e043e23dc47013137fe
The above changes the python dir in lib to be just 'python3' when in the actual arm32v7l bionic version it's still 'python3.6'
If you look within the archive you can see this. https://github.com/haiwen/seafile-rpi/releases/download/v9.0.2/seafile-server-9.0.2-bionic-arm32v7l.tar.gz
I fixed this locally by doing: mv /opt/seafile/seafile-server-9.0.2/seafile/lib/python3.6 /opt/seafile/seafile-server-9.0.2/seafile/lib/python3