Problem installing Python Snappy on a Mac

Can you show us the banner that appears when you run python-3.6 in a
terminal? This may be useful for comparing with other users’ installations.

After the successful snappy_util.py install, were you able to run the test as described in the wiki article?

On Windows, I get:

C:\Users\XXXXX\.snap\snap-python>python
Python 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 24 2018, 00:16:47) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import snappy
INFO: org.esa.s2tbx.dataio.gdal.GDALVersion: GDAL not found on system. Internal GDAL 3.0.0 from distribution will be used. (f1)
INFO: org.esa.s2tbx.dataio.gdal.GDALVersion: Internal GDAL 3.0.0 set to be used by SNAP.
INFO: org.esa.snap.core.gpf.operators.tooladapter.ToolAdapterIO: Initializing external tool adapters
INFO: org.esa.snap.core.util.EngineVersionCheckActivator: Please check regularly for new updates for the best SNAP experience.
>>>

macOS should be similar, and the build date may help pin down problems with jpy.

I don’t recommend this approach because of the potential conflicts with one of the other packages called “snappy”. You can’t predict when some
other python package could try to use ESA SNAP snappy when attempting to use a different snappy package. The final option given in the wiki, using the Windows USERPROFILE environment variable, also works well for macOS and linux with HOME replacing USERPROFILE. This makes it
easier to share scripts with other users (assuming they kept the default install paths).

For other macOS users, the tests described in the wiki article fail because the jpy wheel provided by ESA SNAP was created with a different Python
binary (probably using a newer macOS version than the one used to create their anaconda3 python-3.6). There are many Python-3.6 wheels on conda-forge. I haven’t discovered a way to find out which macOS version was used to build them, but most appear to be several years old.

If you have macports, homebrew, or fink, you may be able to install a Python-3.6 binary that uses your system’s compiler runtime libraries. As Apple tries to support older software, this may allow you to use ESA SNAP’s jpy wheel.