Difficulty in loading snappy modules

kemiy

New Member
Hello,
I have a windows 10 operating system with 8 GB RAM, with Anaconda 3.7 version installed on my computer. I installed snappy using conda command, but running the following command shows import error:
from snappy import ProductIO gives an error.
ImportError: cannot import name ‘ProductIO’ from ‘snappy’ (F:\Python\Anaconda_3.0\envs\gdal_env\lib\site-packages\snappy_init_.py)
After going through topics related to snappy in step forum, I reinstalled SNAP software with python 3.6 version.Then in the SNAP command line, I gave the following command-
**snappy-conf.bat F:\python3.6\python-3.6.0.exe
and the following errors were displayed.
The launcher has determined that the parent process has a console and will reuse it for its own console output.
Closing the console will result in termination of the running program.
Use ‘–console suppress’ to suppress console output.
Use ‘–console new’ to create a separate console window.
Configuring SNAP-Python interface…
java.io.IOException: SNAP-Python configuration incomplete.
Missing file ‘C:\Users\Such.snap\snap-python\snappy\jpyconfig.properties’.
Please check the log file ‘C:\Users\Such.snap\snap-python\snappy\snappyutil.log’.
at org.esa.snap.python.PyBridge.installPythonModule(PyBridge.java:152)
at org.esa.snap.rcp.cli.SnapArgsProcessor.processPython(SnapArgsProcessor.java:103)
at org.esa.snap.rcp.cli.SnapArgsProcessor.process(SnapArgsProcessor.java:49)
at org.netbeans.modules.sendopts.DefaultProcessor.process(DefaultProcessor.java:202)
at org.netbeans.spi.sendopts.Option$1.process(Option.java:387)
at org.netbeans.api.sendopts.CommandLine.process(CommandLine.java:317)
at org.netbeans.modules.sendopts.HandlerImpl.execute(HandlerImpl.java:62)
at org.netbeans.modules.sendopts.Handler.cli(Handler.java:69)
at org.netbeans.CLIHandler.notifyHandlers(CLIHandler.java:234)
at org.netbeans.core.startup.CLICoreBridge.cli(CLICoreBridge.java:82)
at org.netbeans.CLIHandler.notifyHandlers(CLIHandler.java:234)
at org.netbeans.CLIHandler$1.exec(CLIHandler.java:268)
at org.netbeans.CLIHandler.finishInitialization(CLIHandler.java:447)
at org.netbeans.MainImpl.finishInitialization(MainImpl.java:256)
at org.netbeans.Main.finishInitialization(Main.java:92)
at org.netbeans.core.startup.Main.start(Main.java:316)
at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:123)
at java.lang.Thread.run(Thread.java:748)
Python configuration error: SNAP-Python configuration incomplete.
Missing file ‘C:\Users\Such.snap\snap-python\snappy\jpyconfig.properties’.
Please check the log file ‘C:\Users\Such.snap\snap-python\snappy\snappyutil.log’.
 

kemiy

New Member
Hello,
I have a windows 10 operating system with 8 GB RAM, with Anaconda 3.7 version installed on my computer. I installed snappy using conda command, but running the following command shows import error:
from snappy import ProductIO gives an error.
ImportError: cannot import name ‘ProductIO’ from ‘snappy’ (F:\Python\Anaconda_3.0\envs\gdal_env\lib\site-packages\snappy_init_.py)
After going through topics related to snappy in step forum, I reinstalled SNAP software with python 3.6 version.Then in the SNAP command line, I gave the following command-
**snappy-conf.bat F:\python3.6\python-3.6.0.exe
and the following errors were displayed.
The launcher has determined that the parent process has a console and will reuse it for its own console output.
Closing the console will result in termination of the running program.
Use ‘–console suppress’ to suppress console output.
Use ‘–console new’ to create a separate console window.
Configuring SNAP-Python interface…
java.io.IOException: SNAP-Python configuration incomplete.
Missing file ‘C:\Users\Such.snap\snap-python\snappy\jpyconfig.properties’.
Please check the log file ‘C:\Users\Such.snap\snap-python\snappy\snappyutil.log’.
at org.esa.snap.python.PyBridge.installPythonModule(PyBridge.java:152)
at org.esa.snap.rcp.cli.SnapArgsProcessor.processPython(SnapArgsProcessor.java:103)
at org.esa.snap.rcp.cli.SnapArgsProcessor.process(SnapArgsProcessor.java:49)
at org.netbeans.modules.sendopts.DefaultProcessor.process(DefaultProcessor.java:202)
at org.netbeans.spi.sendopts.Option$1.process(Option.java:387)
at org.netbeans.api.sendopts.CommandLine.process(CommandLine.java:317)
at org.netbeans.modules.sendopts.HandlerImpl.execute(HandlerImpl.java:62)
at org.netbeans.modules.sendopts.Handler.cli(Handler.java:69)
at org.netbeans.CLIHandler.notifyHandlers(CLIHandler.java:234)
at org.netbeans.core.startup.CLICoreBridge.cli(CLICoreBridge.java:82)
at org.netbeans.CLIHandler.notifyHandlers(CLIHandler.java:234)
at org.netbeans.CLIHandler$1.exec(CLIHandler.java:268)
at org.netbeans.CLIHandler.finishInitialization(CLIHandler.java:447)
at org.netbeans.MainImpl.finishInitialization(MainImpl.java:256)
at org.netbeans.Main.finishInitialization(Main.java:92)
at org.netbeans.core.startup.Main.start(Main.java:316)
at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:123)
at java.lang.Thread.run(Thread.java:748) https://codingspell.com/
Python configuration error: SNAP-Python configuration incomplete.
Missing file ‘C:\Users\Such.snap\snap-python\snappy\jpyconfig.properties’.
Please check the log file ‘C:\Users\Such.snap\snap-python\snappy\snappyutil.log’.
How can I solve this issue. Thank you
 

callmestarfire

New Member
Don't worry; we'll try to sort this out;)

The error message is telling you that there's a problem with SNAP-Python configuration, specifically a missing file called 'jpyconfig.properties.' This file is essential for Python to work with SNAP.

here's a couple of things to try~~

  • make sure that your SNAP software is correctly installed and configured, bro; sometimes, a reinstallation might help if files are missing or corrupted
  • i see it mentions a missing file in 'C:\Users\Such.snap\snap-python\snappy.' check if the directory exists, and there aren't any permission issues
  • double-check your system's environment variables, especially the ones related to SNAP. they should be pointing to the correct paths.
  • also make sure that you're using a compatible Python version with SNAP. it seems you switched to Python 3.6, which should work, but ensure it's properly set up
  • a log file at 'C:\Users\Such.snap\snap-python\snappy\snappyutil.log.' Take a look at that log file for more details on what might be going wrong. It could provide some clues
 
Top