OpenLP is written in Python, it doesn't "compile" per se. If you follow the setup instructions on the wiki, you should be able to run OpenLP from source on whatever operating system you're using.
Also, if you look at that output, you'll see that you are encountering linting issues. This means you need to fix what the errors are saying are wrong, then the linting will pass.
You haven't shown any other errors, nor have you given us a link to your code, so I can't help much more than this.