Thanks Marco, The suggested commands were accepted by the one machine (OSX 10.12) then I had to run from the office. Here at my other office, I am trying to install on another machine (OSX 10.9) where I was also to the point in the debugging that I had installed JDK. So picking up from there…
export JDK_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/
export JAVA_HOME=JDK_HOME
which python
/opt/local/bin/python
cd /Applications/snap/bin
./snappy-conf /opt/local/bin/python
Configuring SNAP-Python interface…
java.io.IOException: Python configuration failed.
Command [/opt/local/bin/python ./snappyutil.py --snap_home /Applications/snap --java_module /Applications/snap/snap/modules/org-esa-snap-snap-python.jar --force --log_file ./snappyutil.log --java_home /Applications/snap/.install4j/jre.bundle/Contents/Home/jre --req_arch x86_64]
failed with return code 10.
Please check the log file ‘/Users/jasonbox/.snap/snap-python/snappy/snappyutil.log’.
at org.esa.snap.python.PyBridge.configureJpy(PyBridge.java:223)
at org.esa.snap.python.PyBridge.installPythonModule(PyBridge.java:147)
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:745)
Python configuration error: Python configuration failed.
Command [/opt/local/bin/python ./snappyutil.py --snap_home /Applications/snap --java_module /Applications/snap/snap/modules/org-esa-snap-snap-python.jar --force --log_file ./snappyutil.log --java_home /Applications/snap/.install4j/jre.bundle/Contents/Home/jre --req_arch x86_64]
failed with return code 10.
Please check the log file ‘/Users/jasonbox/.snap/snap-python/snappy/snappyutil.log’.
$ cat /Users/jasonbox/.snap/snap-python/snappy/snappyutil.log
INFO: Installing from Java module ‘/Applications/snap/snap/modules/org-esa-snap-snap-python.jar’
INFO: Installing jpy…
ERROR: The module ‘jpy’ is required to run snappy, but no binary ‘jpy’ wheel matching the pattern
ERROR: ‘jpy-{version}-cp34-{abi_tag}-macosx_10_9_x86_64.whl’ could be found.
You can try to build a ‘jpy’ wheel yourself and then copy it into
“/Users/jasonbox/.snap/snap-python/snappy” and then run the configuration again.
Please go to GitHub - bcdev/jpy: A bi-directional Python-Java bridge used to embed Java in CPython or the other way round. and follow the build instructions. E.g.
git clone GitHub - bcdev/jpy: A bi-directional Python-Java bridge used to embed Java in CPython or the other way round.
cd jpy
python setup.py bdist_wheel
cp dist/*.whl “/Users/jasonbox/.snap/snap-python/snappy”
ERROR: Configuration failed
git clone https://github.com/bcdev/jpy.git
Cloning into 'jpy'...
remote: Counting objects: 5242, done.
remote: Total 5242 (delta 0), reused 0 (delta 0), pack-reused 5242
Receiving objects: 100% (5242/5242), 2.04 MiB | 511.00 KiB/s, done.
Resolving deltas: 100% (2942/2942), done.
Checking connectivity... done.
cd jpy
$ python setup.py bdist_wheel
Traceback (most recent call last):
File “setup.py”, line 25, in
from setuptools import setup
ImportError: No module named ‘setuptools’
… and so I came back to the following…
python get-pip.py
Collecting pip
Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB)
100% |████████████████████████████████| 1.3MB 400kB/s
Collecting setuptools
Downloading setuptools-36.2.0-py2.py3-none-any.whl (477kB)
100% |████████████████████████████████| 479kB 856kB/s
Collecting wheel
Downloading wheel-0.29.0-py2.py3-none-any.whl (66kB)
100% |████████████████████████████████| 69kB 2.3MB/s
Installing collected packages: pip, setuptools, wheel
Exception:
Traceback (most recent call last):
File “/var/folders/vw/lmkw2l0s1tx6vs5sk99vx5nc0000gn/T/tmpnyv94inb/pip.zip/pip/basecommand.py”, line 211, in main
status = self.run(options, args)
File “/var/folders/vw/lmkw2l0s1tx6vs5sk99vx5nc0000gn/T/tmpnyv94inb/pip.zip/pip/commands/install.py”, line 311, in run
root=options.root_path,
File “/var/folders/vw/lmkw2l0s1tx6vs5sk99vx5nc0000gn/T/tmpnyv94inb/pip.zip/pip/req/req_set.py”, line 646, in install
**kwargs
File “/var/folders/vw/lmkw2l0s1tx6vs5sk99vx5nc0000gn/T/tmpnyv94inb/pip.zip/pip/req/req_install.py”, line 803, in install
self.move_wheel_files(self.source_dir, root=root)
File “/var/folders/vw/lmkw2l0s1tx6vs5sk99vx5nc0000gn/T/tmpnyv94inb/pip.zip/pip/req/req_install.py”, line 998, in move_wheel_files
isolated=self.isolated,
File “/var/folders/vw/lmkw2l0s1tx6vs5sk99vx5nc0000gn/T/tmpnyv94inb/pip.zip/pip/wheel.py”, line 339, in move_wheel_files
clobber(source, lib_dir, True)
File “/var/folders/vw/lmkw2l0s1tx6vs5sk99vx5nc0000gn/T/tmpnyv94inb/pip.zip/pip/wheel.py”, line 310, in clobber
ensure_dir(destdir)
File “/var/folders/vw/lmkw2l0s1tx6vs5sk99vx5nc0000gn/T/tmpnyv94inb/pip.zip/pip/utils/init.py”, line 71, in ensure_dir
os.makedirs(path)
File “/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/os.py”, line 237, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: ‘/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pip’
jpy$ python setup.py --maven bdist_wheel
Traceback (most recent call last):
File “setup.py”, line 25, in
from setuptools import setup
ImportError: No module named ‘setuptools’
jpy$ ls
CHANGES.md README.md doc jpyutil.py setup.cfg winbuild.cmd
LICENSE.txt appveyor.yml ez_setup.py pom.xml setup.py
MANIFEST.in ci get-pip.py pysobug src
at this point, I welcome any pointers.
With appreciation,
Jason