Problem configuring Snap 5.0 & Python 2.7 (ArcGIS 10.5 version)

I am trying to configure snappy (snap v5.0 32-bit) to work with the python 2.7 (32-bit) that came pre-installed with ArcGIS 10.5 - on windows 10. I used the Snap installation GUI to configure snappy with python. The contents of the snappy_util.log are below. I have no idea what can be causing this, so any ideas appreciated, thanks

INFO: Installing from Java module ‘C:\Program Files\snap\snap\modules\org-esa-snap-snap-python.jar’
INFO: Installing jpy…
INFO: Extracting ‘lib/jpy-0.8.0-cp27-none-win32.whl’ from ‘C:\Program Files\snap\snap\modules\org-esa-snap-snap-python.jar’
INFO: Unzipping ‘C:\Users\Geo2.snap\snap-python\snappy\lib\jpy-0.8.0-cp27-none-win32.whl’
INFO: Configuring jpy…
INFO: jpy Python API configuration written to ‘C:\Users\Geo2.snap\snap-python\snappy\’
INFO: jpy Java API configuration written to ‘C:\Users\Geo2.snap\snap-python\snappy\’
INFO: Configuring snappy…
INFO: snappy configuration written to ‘C:\Users\Geo2.snap\snap-python\snappy\snappy.ini’
INFO: Importing snappy for final test…
ERROR: Configuration failed
Traceback (most recent call last):
File “.\”, line 261, in main
File “.\”, line 210, in configure_snappy
File "C:\Users\Geo2.snap\snap-python\snappy…\snappy_init
.py", line 63, in
File “C:\Users\Geo2.snap\snap-python\snappy…\snappy\”, line 315, in preload_jvm_dll
return ctypes.CDLL(jvm_dll_file, mode=ctypes.RTLD_GLOBAL)
File "C:\Python27\ArcGIS10.5\lib\ctypes_init
.py", line 362, in init
self._handle = _dlopen(self._name, mode)
WindowsError: [Error 193] %1 is not a valid Win32 application

So the key piece of information missing from the above was that the system is 64-bit, which is want seemingly causes the issue, despite the fact that SNAP was 32-bit and the Python installation was 32-bit, some of the libraries that are called by snappy are system libraries, and therefore 64-bit…

1 Like