Just wanted to add to this that I am having the exact same issue. On windows64 bit with Python 3.7 and attempted with 2.7 to check if it was a python compatibility problem. Using the latest download of SNAP.
Besides the faulty logging code, the fundamental issue seems to be that jpy will not install on my system and/or connect to the snappy install.
I tried following these instructions:
https://thegeoict.com/blog/2019/08/21/setup-development-environment-for-snap/
and this troubleshooting:
But the final outcome is still a failure to install jpy in a way that resolves the connection/environment in a way that snappy can find it.
I have spent two days on this, adding java environment paths and installs. Apache installs with a maven specific jpy install (which seems to work, but snappy cannot find it nor my main python install). Manual install and build in the snappy folder of the jpy .whl and core code. Install C++ dev kit. Visual basic dev kit. Java dev kit. All to no effect.
I have now given up and hope that one-day the tools are re-written in pure python so that we can avoid java entirely!
Or someone has a guide to install on anaconda 3 with a recent Python 3 type that resolves these issues?