Solved: Working 7.0.x on CentOS 8

CentOS 8 is coming with Python 3. Seafile server version will support Python 3 with 7.1. So if you want, like me, install 7.0.5 on CentOS 8, you need install Python 2 packages and patch both setup-files for mysql-database (if you want setup MariaDB with script).

dnf install python2
pip2 install pymysql
pip3 install pymysql

Edit and comment on line 75 “check_python_module” out.
Edit and replace all MySQLdb with pymysql.

Scripts will now run fine. :slightly_smiling_face:

Before you can start seahub, you need to patch also all files which use “MySQLdb”:
Assumed, you are at folder
for I in seahub/tools/ seahub/tools/ seahub/thirdpart/sqlalchemy/dialects/mysql/ seahub/thirdpart/sqlalchemy/testing/suite/ seahub/thirdpart/openid/store/ seahub/thirdpart/django/contrib/gis/db/backends/mysql/ seahub/thirdpart/django/db/backends/mysql/ seahub/thirdpart/django/db/backends/mysql/ seahub/thirdpart/django/db/backends/mysql/ seahub/thirdpart/wsgidav/addons/; do sed -i 's/MySQLdb/pymysql/g' $I; done

Also needs to recompile a binary file:

cd seahub/thirdpart/django/db/backends/mysql/
python2 -m py_compile

Now seahub can also start :wink:

But on browser I get only “site doesn’t work” :thinking: Fixed… :man_facepalming: Apache-Listen-directive forgotten…

Great, thanks for that!!

For all those willing to wait a little longer, I have good news! Seafile 7.1 will be released before end of the year.