【问题标题】:Error while configuring Snappy. failed with return code 10配置 Snappy 时出错。失败,返回码 10
【发布时间】:2021-04-06 22:03:04
【问题描述】:

为了配置 snappy,我运行了下一个命令

~/snap/bin$ ./snappy-conf /usr/bin/python3.8

结果我收到以下错误消息:

Configuring SNAP-Python interface...
java.io.IOException: Python configuration failed.
Command [/usr/bin/python3.8 ./snappyutil.py --snap_home /home/sergio/snap --java_module /home/sergio/snap/snap/modules/org-esa-snap-snap-python.jar --force --log_file ./snappyutil.log --jvm_max_mem 10G --java_home /home/sergio/snap/jre/jre --req_arch amd64]
failed with return code 10.
Please check the log file '/home/sergio/.snap/snap-python/snappy/snappyutil.log'.
    at org.esa.snap.python.PyBridge.configureJpy(PyBridge.java:232)
    at org.esa.snap.python.PyBridge.installPythonModule(PyBridge.java:149)
    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: Python configuration failed.
Command [/usr/bin/python3.8 ./snappyutil.py --snap_home /home/sergio/snap --java_module /home/sergio/snap/snap/modules/org-esa-snap-snap-python.jar --force --log_file ./snappyutil.log --jvm_max_mem 10G --java_home /home/sergio/snap/jre/jre --req_arch amd64]
failed with return code 10.
Please check the log file '/home/sergio/.snap/snap-python/snappy/snappyutil.log'.

“/home/sergio/.snap/snap-python/snappy/snappyutil.log”文件显示以下信息:

INFO: Installing from Java module '/home/sergio/snap/snap/modules/org-esa-snap-snap-python.jar'
WARNING: Architecture requirement possibly not met: Python is x86_64 but JVM requires amd64
INFO: Installing jpy...
ERROR: The module 'jpy' is required to run snappy, but no binary 'jpy' wheel matching the pattern
'jpy-{version}-cp38-{abi_tag}-linux_x86_64.whl' could be found.
You can try to build a 'jpy' wheel yourself, then copy it into
"/home/sergio/.snap/snap-python/snappy", and then run the configuration again.
Unzip the jpy sources in /home/sergio/.snap/snap-python/snappy/jpy-<version>.zip, then
  $ cd jpy-<version>
  $ python setup.py bdist_wheel
  $ cp dist/*.whl "/home/sergio/.snap/snap-python/snappy"
Or get the source code from https://github.com/bcdev/jpy and follow the build instructions:
  $ git clone https://github.com/bcdev/jpy.git
  $ cd jpy
ERROR: Configuration failed with exit code 10

我在“~/.snap/snap-python/snappy”目录中下载了“jpy”,但我仍然遇到同样的错误。在查看有关架构要求的警告信息后,我发现这应该不是问题。

我使用的是 Ubuntu 20.04。有谁知道可能出了什么问题?

非常感谢你们抽出宝贵的时间

【问题讨论】:

    标签: python snappy


    【解决方案1】:

    我解决了,python版本和snappy有问题。我必须使用 3.6 python 版本创建一个 conda 环境,然后在我的笔记本上使用该版本。

    【讨论】:

    • 我现在遇到了同样的问题,尽管使用的是 3.6 环境并得到了完全相同的错误。对一个非常沮丧的人有什么建议吗?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-02-18
    • 2011-01-18
    • 1970-01-01
    • 2011-06-06
    • 2016-06-05
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多