we also mainly work with Ubuntu platforms For further investigation, we’ll try to find/setup a suitable Debian environment to reproduce your problem, but this may take a little while. Of course, we could not test everything for the many existing Linux distributions…
In the meantime, could you provide the logs from both the ‘good’ and the ‘bad’ computer which contain the snappy configuration approach?
Your network folder setup should not make a difference, I assume this applies for both computers?
I’ve notice that I was seeing the incorrect log path (I modify the path for .snap for another previous problem and I was seeing the older one, that doesn’t have the snappy log) so now I see the correct log.
It’s seems that the Python path were corrupted, so I installed Python 10 again and it’s working now.
Thanks again for your help and sorry for the problems I cause you.
@dolaf Hello. I am having the same issue. I followed these steps to configure python3.10 to use snap. The configuration was sucessful and I did sys.append
At first when I tried to import esa_snap, I got the error related to jpy. After installing it, I got ‘RuntimeError: can’t find any JVM shared library’. What am I missing?
could you please briefly provide the following information:
your operating system
your installed SNAP version
the subsequent steps you did, and the full error messsage(s) you observed.
the content of the log file <esa_snappy install dir>/snappyutil.log
Regarding the message: ‘RuntimeError: can’t find any JVM shared library’: I recently observed the same while testing on a MacOS system. I have no idea what was wrong or corrupt in the setup, but just moving to a new terminal window helped for me, and the issue was gone.
Just reinstalled snap 11 and tried with both python 3.10.11 and 3.80. Now I have a new set of error. Error while parsing JAI registry.
Steps followed:
Install python3.10.11 (or 3.8.0). Install snap directly to C:\esa-snap (as a post a saw here suggested). Then install snap plugin from desktop.
Open bin folder C:\esa-snap\bin… and type cmd
Enter snappy-conf path-to-python10.11 … no space name folders
Configuration successful
cd path-to-esa_snappy then path-to-python10\python.exe
from esa_snappy import productIO
Using python terminal: Error while parsing JAI registry file ‘"file:/C:/esa-snap/snap/modules/ext/org.esa.snap.snap-core/org-geotools/gt-coverage.jar!/META-INF/registryFile.jai’':
Opening python from pycharm: RuntimeError: can’t find any JVM shared library
the JAI registry error message is not related to esa_snappy, but to SNAP core modules. You can ignore it and continue using esa_snappy. - As esa_snappy internally makes use of the SNAP API, you will usually see a couple of SNAP log messages on your Python console when importing esa_snappy.This is a bit confusing, but to my knowledge cannot be avoided easily. Sorry for this little inconvenience.