Back to Blog
Jre mac os x mavericks6/18/2023 ![]() snappyutil.log -jvm_max_mem 11G -java_home /Applications/snap/.install4j/jre.bundle/Contents/Home/jre -req_arch x86_64 snappyutil.py -snap_home /Applications/snap -java_module /Applications/snap/snap/modules/org-esa-snap-snap-python.jar -force -log_file. Sudo /opt/anaconda3/envs/pysar/bin/python. I reran snappyutil.py with the following arguments: I understand now that the snappy_conf command points to the JRE packaged with SNAP, but for some reason this does not work - hence that return code 97. So this problem is not from an old installation. Just to add to the discussion - I made a fresh installation, my computer recently got a hard drive clean sweep and the Catalina upgrade. No Java runtime present, requesting install.īut I DO HAVE Java JDK installed, and I have set the environment variables, like so:Įxport JDK_HOME=$(/usr/libexec/java_home)Įxport PATH=/opt/apache-maven-3.6.3/bin:$PATH Jpyutil - INFO: jpy Java API configuration written to ‘/opt/anaconda3/envs/pysar/lib/python3.7/site-packages/snappy/jpyconfig.properties’ ![]() Jpyutil - INFO: jpy Python API configuration written to ‘/opt/anaconda3/envs/pysar/lib/python3.7/site-packages/snappy/jpyconfig.py’ snappyutil.log -jvm_max_mem 11G -java_home /Library/Java/JavaVirtualMachines/jdk-13.0.2.jdk/Contents/Home -req_arch x86_64 I saw that the Java location is wrong in the snappyutil.py script, so I reran it manually: INFO: snappy configuration written to ‘/opt/anaconda3/envs/pysar/lib/python3.7/site-packages/snappy/snappy.ini’ ![]() ![]() INFO: jpy Java API configuration written to ‘/opt/anaconda3/envs/pysar/lib/python3.7/site-packages/snappy/jpyconfig.properties’ INFO: jpy Python API configuration written to ‘/opt/anaconda3/envs/pysar/lib/python3.7/site-packages/snappy/jpyconfig.py’ INFO: Installing from Java module ‘/Applications/snap/snap/modules/org-esa-snap-snap-python.jar’ Python configuration error: Python configuration failed. Please check the log file ‘/opt/anaconda3/envs/pysar/lib/python3.7/site-packages/snappy/snappyutil.log’.Īt .nfigureJpy(PyBridge.java:232)Īt .PyBridge.installPythonModule(PyBridge.java:149)Īt .(SnapArgsProcessor.java:103)Īt .(SnapArgsProcessor.java:49)Īt .DefaultProcessor.process(DefaultProcessor.java:202)Īt .Option$1.process(Option.java:387)Īt .CommandLine.process(CommandLine.java:317)Īt .HandlerImpl.execute(HandlerImpl.java:62)Īt .Handler.cli(Handler.java:69)Īt (CLIHandler.java:234)Īt .CLICoreBridge.cli(CLICoreBridge.java:82)Īt $1.exec(CLIHandler.java:268)Īt (CLIHandler.java:447)Īt (MainImpl.java:256)Īt (Main.java:92)Īt .Main.start(Main.java:316)Īt .n(TopThreadGroup.java:123) Java.io.IOException: Python configuration failed.Ĭommand snappy-conf /opt/anaconda3/envs/pysar/bin/python /opt/anaconda3/envs/pysar/lib/python3.7/site-packages I have gotten to the stage of running the. I have followed the list of steps: installed jpy, JDK, Maven, created the wheels, and copied them over to the site-packages snappy folder of my conda environment. Upon installation of SNAP I specified the python version to use, but it does not work. I am trying to set up snappy (SNAP v7) to work on my Mac with Catalina OS (10.15).
0 Comments
Read More
Leave a Reply. |