I’ve got the esa_snappy module built with SNAP 10 on Windows 11 using python 3.10. I’ve created the PYTHONPATH evironment variable pointing to the esa_snappy installation directory. The command import esa_snappy
runs, but returns an error
ModuleNotFoundError Traceback (most recent call last)
Cell In[1], line 1
----> 1 import esa_snappy
File ~\.snap\snap-python\esa_snappy\__init__.py:62
60 if module_dir not in sys.path:
61 sys.path.append(module_dir)
---> 62 import jpyutil
64 jpyutil.preload_jvm_dll()
65 import jpy
ModuleNotFoundError: No module named 'jpyutil'
As per this page I’ve tried to set the LD_LIBRARY_PATH environment variable, but there doesn’t seem to be a file libjvm.so
file in the Windows SNAP installation. The closest file I could find was jvm.lib
in <SNAP install dir>\jre\lib
, so I set LD_LIBRARY_PATH to that. No joy. Any ideas?