Direct deployment with python3.11

You did not mention what version of Mayan you are running? I know v4.3 was the first version to support python v3.10. So would need to know what version you are running. Not sure about support for python 3.11

Also note that manual installs are deprecated, and docker compose is the default installation method and is recommended for the majority of cases these days, and the currently supported versions are 4.4, 4.3, and 4.2** as of the date of this post.