Snappy configuration failed with exit code 40

Hey, no worries, and thanks for a quick reply. Of course, the classic thing happened as soon as I complain to someone… I managed to fix it. You are absolutely right that all those other JDK were causing more problems than they solved.

I have now managed to fix it by:

  • A complete uninstall of all those packages and SNAP.
  • Create a new clean conda environment with Python 3.5, making sure the conflicting snappy (a compression lib from google) is not present.
  • Re-install SNAP, pointing it towards the python.exe of the new environment.
  • Follow the GEO-ICT instructions.
  • Success.

Really was that simple! I think the core problem before was that Python 3.7 seems to be incompatible with snappy and/or jpy. By the time I had switched to v2.7 all those other steps I had taken were breaking things. Rolling it all back and then switching to 3.5 was enough to resolve. I have not tested with 3.6 as now have it working am loathed to change it heh.

Thanks for the user-profile advice as well. The end-use here is to develop a script on my local machine that will then run on a larger machine. So ensuring it works across multiple set-ups is essential.

I wonder if it is worth making a clear FAQ section that covers all of this sort of thing in the snappy-config wiki so that silly mistakes like mine are easier to catch? Suggested placement being here. As it was from here that I started to cause myself problems!