-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
installing today #124
Comments
@mczakk, you might be able to take advantage of the binary wheels that we publish. With our 0.14.0 release, we have Windows (amd64) support for python 3.6 - 3.10, in which case you can simply install the wheelvia |
@devinrsmith I tried this, but the snappy-conf <python.exe> failed as it couldn't find the jpy wheel. |
I'm not familiar w/ snappy-conf, but it looks like you are referring to https://senbox.atlassian.net/wiki/spaces/SNAP/pages/50855941/Configure+Python+to+use+the+SNAP-Python+snappy+interface+SNAP+versions+9 ? |
I was using this onehttps://senbox.atlassian.net/wiki/spaces/SNAP/pages/2499051521/Configure+Python+to+use+the+new+SNAP-Python+esa+snappy+interface+SNAP+version+10 as i'd only installed SNAP onto my windows machine today to do this (I ysually run SNAP processing on a Linux machine) and assumed that it would be the latest version. I'm actually running SNAO 9.0.0 on thw windows machine, but the guides have the dame instruction, and when i run it the snappyutil.log file reads like this: |
I'm not sure - I've not run SNAP before. You may want to open an issue with them. We do publish Windows wheels that may work https://pypi.org/project/jpy/#files. https://senbox.atlassian.net/wiki/spaces/SNAP/pages/2499051521/Configure+Python+to+use+the+new+SNAP-Python+esa+snappy+interface+SNAP+version+10 says only python versions 2.7, 3.3 to 3.10 are supported, so maybe that's the issue if you are trying to use Python 3.11? For jpy, we publish wheels for 3.6-3.11 (3.12 to come shortly). |
I had this code working yesterday:
but now when i try and run it it returns the error:
I have uninstalled and re-installed java, python, jpy, and esa snap countless times, but it still will not run, i have followed the instructions in here, as i am using snap 9.0 :https://senbox.atlassian.net/wiki/spaces/SNAP/pages/50855941/Configure+Python+to+use+the+SNAP-Python+snappy+interface+SNAP+versions+9 It would appear that the error is somewhere within jpy, but I am at a loss toi understand where |
This error appears be caused by a mismatch between your python jpy version and your java jar jpy version. Ideally, the two versions should be in-sync. You can also turn on more jpy debugging before you run your script: import jpy
jpy.diag.flags = jpy.diag.F_ALL and that may give some more details. https://repo1.maven.org/maven2/org/jpyconsortium/jpy/ |
i added that to my code, and ran in spyder, the only thing i got was a RuntimeError: jpy: failed to create Java VM %Run get_lai.py but the really bizarre thing is that i moved the 'get_lai.py' file into this folder on my computer: |
ok, i removed the import jpy.... |
Can you print out the contents of |
Will do, but probly after Xmas, as the script is running now and will be for the next few days I think. How do I get it? Print(_get_snap_jvm_options())? |
HI, I am trying to install this so that i can read beam/dimap files via python.
your documentation says:
With Visual Studio 14 and higher it is much easier::
I am running Microsoft Visual Studio 2022, the folder 'common7\tools' does not exist.
please could you advise how to install on an up to date windows machine?
The text was updated successfully, but these errors were encountered: