Issues with jpy and snappy

Hi there,

I previously had snappy working at my work placement and I’m now back at university. I’m trying to get python and snappy working together on my Mac yet coming into lots of difficulty. It appears jpy can’t install properly but following instructions on both jpy and the log messages I can’t get it installed.

Any suggestions?

I get this:

INFO: Installing from Java module '/Applications/snap/snap/modules/org-esa-snap-snap-python.jar'
INFO: Installing jpy...
ERROR: The module 'jpy' is required to run snappy, but no binary 'jpy' wheel matching the pattern
ERROR: 'jpy-{version}-cp27-{abi_tag}-macosx_10_13_intel.whl' could be found.
You can try to build a 'jpy' wheel yourself and then copy it into
"/Users/ciaran/.snap/snap-python/snappy" and then run the configuration again.
Please go to https://github.com/bcdev/jpy and follow the build instructions. E.g.
  > git clone https://github.com/bcdev/jpy.git
  > cd jpy
  > python setup.py bdist_wheel
  > cp dist/*.whl "/Users/ciaran/.snap/snap-python/snappy"
ERROR: Configuration failed

Just wondering if anyone had any pointers :slight_smile:

Strange that it doesn’t seem to be as straightforward as it once was!

Hi Ciaran,

I installed a built version of jpy through conda and it did the trick. I also had several errors building the latest jpy version, which I posted as issues on github.

Best,
jose

Hey there :slight_smile:

I finally got it working, the solution was on this post: Setting up Snappy on Mac (High Sierra)
Unfortunately I don’t use Conda!

1 Like