juribeparada / homebrew-isce

ISCE Homebrew formula testing
3 stars 0 forks source link

No module named isce #1

Open rzinke opened 5 years ago

rzinke commented 5 years ago

Hello,

I am attempting to install ISCE2 on my MacBook Pro (Mojave 10.14.5). I followed the instructions for homebrew installation on GitHub (https://github.com/juribeparada/homebrew-isce), and the after running $ brew install isce it says the installation was successful. I added to my .bash_profile "export ISCE_HOME=/usr/local/opt/isce" and reopened the terminal. However, when I type "topsApp.py --help" I get an error message: MT-109587:~ rzinke$ topsApp.py --help Traceback (most recent call last): File "/usr/local/bin/topsApp.py", line 42, in import isce ModuleNotFoundError: No module named 'isce'

I ran the test suggested on GitHub "brew test isce", which returns the following: MT-109587:~ rzinke$ brew test isce Testing juribeparada/isce/isce ==> python3 -c import isce Last 15 lines from /Users/rzinke/Library/Logs/Homebrew/isce/test.01.python3: 2019-07-05 12:42:09 -0700

python3 -c import isce

Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'isce' Error: juribeparada/isce/isce: failed Failed executing: /usr/local/Homebrew/Library/Homebrew/formula.rb:1914:in block in system' /usr/local/Homebrew/Library/Homebrew/formula.rb:1851:inopen' /usr/local/Homebrew/Library/Homebrew/formula.rb:1851:in system' /usr/local/Homebrew/Library/Taps/juribeparada/homebrew-isce/isce.rb:117:inblock in ' /usr/local/Homebrew/Library/Homebrew/formula.rb:1727:in block (3 levels) in run_test' /usr/local/Homebrew/Library/Homebrew/utils.rb:478:inwith_env' /usr/local/Homebrew/Library/Homebrew/formula.rb:1726:in block (2 levels) in run_test' /usr/local/Homebrew/Library/Homebrew/formula.rb:866:inwith_logging' /usr/local/Homebrew/Library/Homebrew/formula.rb:1725:in block in run_test' /usr/local/Homebrew/Library/Homebrew/formula.rb:1964:inblock in mktemp' /usr/local/Homebrew/Library/Homebrew/mktemp.rb:57:in block in run' /usr/local/Homebrew/Library/Homebrew/mktemp.rb:57:inchdir' /usr/local/Homebrew/Library/Homebrew/mktemp.rb:57:in run' /usr/local/Homebrew/Library/Homebrew/formula.rb:1963:inmktemp' /usr/local/Homebrew/Library/Homebrew/formula.rb:1719:in run_test' /usr/local/Homebrew/Library/Homebrew/test.rb:30:inblock in

' /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/timeout.rb:91:in block in timeout' /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/timeout.rb:33:inblock in catch' /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/timeout.rb:33:in catch' /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/timeout.rb:33:incatch' /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/timeout.rb:106:in timeout' /usr/local/Homebrew/Library/Homebrew/test.rb:29:in
'

I suspect the error might arise because I had previously installed anaconda3 on my computer, however, I took all references to anaconda or python off my PATH: $ echo $PATH /opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin before using "brew install isce".

I could not find this issue on the forum yet, but could anyone suggest a fix?

Thanks! Rob Zinke

juribeparada commented 5 years ago

Hi Rob, sorry for my delayed answer, I have been pretty busy during the last days. I realized about some problems due to homebrew new gcc version. Now I am in the process of updating the bottles for v2.3.1 and soon I will add support for the latest v2.3.2 (UNAVCO Short Course 2019). I wonder if you ISCE installation is complete. What about the homebrew summary (number of files, total size), when you install ISCE?

rzinke commented 5 years ago

Hi,

Thanks for looking into this! Do you know of an easy way to get the homebrew summary? I don't remember the file sizes offhand. When I re-type $ brew install isce, here is the output: (ARIA-tools) MT-109587:~ rzinke$ brew install isce Updating Homebrew... ==> Auto-updated Homebrew! Updated Homebrew from 895467ad9 to 549a40bed. Updated 3 taps (juribeparada/isce, homebrew/core and osgeo/osgeo4mac). ==> New Formulae asyncplusplus cpl libvncserver whalebrew aws-google-auth dhall-bash quickjs bazelisk libsixel shadowenv borgmatic libspng tflint ==> Updated Formulae ffmpeg ✔ libsbol gdal ✔ libstatgrab glib ✔ libtensorflow imagemagick ✔ libvirt libheif ✔ libxmlsec1 libpq ✔ link-grammar libvpx ✔ linkerd nss ✔ liquibase poppler ✔ llvm@7 proj ✔ lmdb python ✔ lmod qt ✔ lnav sqlite ✔ log4cplus webp ✔ log4shib x265 ✔ logcheck zstd ✔ logstash abcm2ps lolcat abcmidi lxc ack macvim amazon-ecs-cli mdbook angular-cli media-info ansible mednafen apache-arrow mercurial apache-arrow-glib mesa apache-flink meson aptly mesos arangodb metabase armadillo mill armor minio asdf minio-mc ask-cli mkl-dnn astrometry-net monero atlantis monit atomist-cli mono ats2-postiats mpg123 avfs mpop aws-sdk-cpp msmtp awscli mypy azure-cli n babel nats-server bacula-fd neo4j balena-cli netdata bazel netlify-cli binaryen newt bindfs nickle bit nim bitrise node black nsd botan ocrad breezy ocrmypdf bro omega btfs onscripter bundletool opam byacc open-jtalk bzip2 open-mesh bzt open-zwave caddy openapi-generator cake openconnect calcurse openhmd cash-cli openrct2 ccache opensaml certbot openshift-cli cfn-lint openttd cfssl operator-sdk chakra osc chipmunk osgeo/osgeo4mac/osgeo-matplotlib chronograf osgeo/osgeo4mac/osgeo-ossim cimg osgeo/osgeo4mac/osgeo-pcl circleci osgeo/osgeo4mac/osgeo-pdal citus osgeo/osgeo4mac/osgeo-pyqt cjdns osgeo/osgeo4mac/osgeo-pyqt-webkit ckan osgeo/osgeo4mac/osgeo-qscintilla2 clhep osgeo/osgeo4mac/osgeo-qt-mysql click osgeo/osgeo4mac/osgeo-qt-odbc clojure osgeo/osgeo4mac/osgeo-qt-psql cmake osgeo/osgeo4mac/osgeo-qt-webkit cockroach osgeo/osgeo4mac/osgeo-sip cocoapods osgeo/osgeo4mac/osgeo-vtk cointop overmind conan pazpar2 contentful-cli pcsc-lite convox pdftoipe cpprestsdk pdnsrec creduce perltidy cromwell petsc csound petsc-complex csvq pgbouncer curl php curl-openssl php@7.2 cxxopts phpmd cython phpunit dbhash pinboard-notes-backup dbus pioneer dcd pius deark pjproject debianutils platformio deno platypus dependency-check png++ di poco diff-pdf ponyc diffoscope presto digdag prips direvent prometheus dita-ot proteinortho dmd protoc-gen-go dnsperf prototool dnstwist pulumi docfx putty docker pyenv docker-completion pyinstaller docker-credential-helper pyside docker-credential-helper-ecr python-markdown doctl pyvim doitlive qmmp dosbox r dovecot rabbitmq dpkg radare2 drone-cli redex dscanner remarshal dynamips repo ecasound reposurgeon eccodes rex eiffelstudio rke ejabberd robot-framework elixir rpm2cpio eprover rsyslog epubcheck rush erlang s3-backer erlang@21 s3ql eslint s6 esptool scamper ethereum scdoc exa scons exercism sdl2_image exiftool sdlpop exploitdb ser2net faas-cli serverless fasttext sf-pwgen faudio sflowtool ffmpeg@2.8 shibboleth-sp fio ship firebase-cli sip flake8 skaffold flashrom snakemake flawfinder sourcekitten fn sqldiff fonttools sqlite-analyzer fossil squid freediameter sshguard freetds stanford-parser frpc stella frps stern frugal stress-ng fs-uae stuntman fselect subnetcalc gammaray suil gatsby-cli svgo gauche swagger-codegen geoserver swagger-codegen@2 get_iplayer swift-protobuf ghex swiftlint ghostscript syncthing ghr sysdig gibo tag ginac telegraf git-absorb termtosvg gitmoji terraform glances terraformer glide terragrunt glooctl terrahub gnu-apl thors-serializer go tintin go@1.11 tmpreaper godep todoman golang-migrate tomcat goreleaser tomcat-native gpgme tomcat@8 gradle topgrade grails tox grakn translate-toolkit graph-tool triton gsoap ttyd gspell twine-pypi gst-plugins-bad txr gst-plugins-good typescript gtk+3 u-boot-tools gxml ucloud haskell-stack uftp hcloud ungit helmfile urh hidapi uriparser hqx v8 hub vala hwloc vapoursynth hypre vapoursynth-imwri i386-elf-gcc vapoursynth-ocr i386-elf-gdb vapoursynth-sub i386-elf-grub vegeta idris vert.x igv vfuse imagemagick@6 vim imageoptim-cli vim@7.4 internetarchive vips ipython vmtouch iso-codes vnstat isync volatility janet vttest jenkins vulkan-headers jenkins-lts watson jetty wcslib jfrog-cli-go webdis jhead webpack jlog websocat jsdoc3 webtorrent-cli jsoncpp wgetpaste klavaro whois kobalt widelands kore wireshark ktlint wtf kube-aws wxmac kubernetes-cli xa kubernetes-helm xapian kustomize xml-tooling-c kvazaar xonsh landscaper xorriso languagetool yapf lego yarn lf yash lgogdownloader yaz libbi ydcv libgphoto2 youtube-dl libhdhomerun zabbix libjson-rpc-cpp zabbix-cli libphonenumber zeromq libraw znc ==> Deleted Formulae libggz libguess lysp smlnj

Warning: juribeparada/isce/isce 2.3.1 is already installed and up-to-date To reinstall 2.3.1, run brew reinstall isce

juribeparada commented 5 years ago

Hi, I've updated to v2.3.2. Please remove your previous installation: brew remove isce

Then, run (just in case): brew fetch --force isce

And finally, install ISCE again: brew install isce

Test with: brew test isce

rzinke commented 5 years ago

Thanks for the response. It appears the removal of the old version was unsuccessful. I had previously uninstalled ISCE $ brew uninstall isce Then followed the steps you provided above $ brew remove isce $ brew fetch --force isce $ brew install isce ... the installation step *appears to have completed successfully But then brew test isce gives the error message: Error: Testing requires the latest version of juribeparada/isce/isce

I suppose this means the fetch did not work? I am still new to homebrew.

Thanks for the help, Rob

juribeparada commented 5 years ago

It looks like you still have the old version. Could you run: ls /usr/local/Cellar/isce/

and see what version you have.

rzinke commented 5 years ago

ls /usr/local/Cellar/isce/ yields ls: /usr/local/Cellar/isce/: No such file or directory

juribeparada commented 5 years ago

Can you copy the result of: brew info isce

rzinke commented 5 years ago

juribeparada/isce/isce: stable 2.3.2 (bottled), HEAD Interferometric synthetic aperture radar Scientific Computing Environment (ISCE) https://winsar.unavco.org/software/isce Not installed From: https://github.com/juribeparada/homebrew-isce/blob/master/isce.rb ==> Dependencies Build: scons ✘ Required: python3 ✔, numpy ✔, scipy ✔, gcc@8 ✔, fftw ✔, gdal ✘, hdf5 ✔, openmotif ✔, imagemagick ✘, grace ✔, gmp ✔, mpfr ✔, mpc ✔, szip ✔, opencv ✔ ==> Requirements Required: x11 ✔ ==> Options --HEAD Install HEAD version ==> Caveats

juribeparada commented 5 years ago

Well, it says: Not installed. What happens when you run: brew install isce

rzinke commented 5 years ago

Looks like it installed... Here's the end of the output: ==> tesseract This formula contains only the "eng", "osd", and "snum" language data files. If you need all the other supported languages, brew install tesseract-lang. ==> isce

I then ran $ brew test isce Here is the output: Testing juribeparada/isce/isce ==> python3 -c import isce Last 15 lines from /Users/rzinke/Library/Logs/Homebrew/isce/test.01.python3: 2019-07-25 14:02:11 -0700

python3 -c import isce

Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'isce' Error: juribeparada/isce/isce: failed Failed executing: /usr/local/Homebrew/Library/Homebrew/formula.rb:1914:in block in system' /usr/local/Homebrew/Library/Homebrew/formula.rb:1851:inopen' /usr/local/Homebrew/Library/Homebrew/formula.rb:1851:in system' /usr/local/Homebrew/Library/Taps/juribeparada/homebrew-isce/isce.rb:118:inblock in ' /usr/local/Homebrew/Library/Homebrew/formula.rb:1727:in block (3 levels) in run_test' /usr/local/Homebrew/Library/Homebrew/utils.rb:478:inwith_env' /usr/local/Homebrew/Library/Homebrew/formula.rb:1726:in block (2 levels) in run_test' /usr/local/Homebrew/Library/Homebrew/formula.rb:866:inwith_logging' /usr/local/Homebrew/Library/Homebrew/formula.rb:1725:in block in run_test' /usr/local/Homebrew/Library/Homebrew/formula.rb:1964:inblock in mktemp' /usr/local/Homebrew/Library/Homebrew/mktemp.rb:57:in block in run' /usr/local/Homebrew/Library/Homebrew/mktemp.rb:57:inchdir' /usr/local/Homebrew/Library/Homebrew/mktemp.rb:57:in run' /usr/local/Homebrew/Library/Homebrew/formula.rb:1963:inmktemp' /usr/local/Homebrew/Library/Homebrew/formula.rb:1719:in run_test' /usr/local/Homebrew/Library/Homebrew/test.rb:30:inblock in

' /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/timeout.rb:91:in block in timeout' /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/timeout.rb:33:inblock in catch' /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/timeout.rb:33:in catch' /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/timeout.rb:33:incatch' /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/timeout.rb:106:in timeout' /usr/local/Homebrew/Library/Homebrew/test.rb:29:in
'

juribeparada commented 5 years ago

Could you re run: brew info isce ?

rzinke commented 5 years ago

(ARIA-tools) MT-109587:~ rzinke$ brew info isce juribeparada/isce/isce: stable 2.3.2 (bottled), HEAD Interferometric synthetic aperture radar Scientific Computing Environment (ISCE) https://winsar.unavco.org/software/isce /usr/local/Cellar/isce/2.3.2 (1,166 files, 16.4MB) * Poured from bottle on 2019-07-25 at 14:01:16 From: https://github.com/juribeparada/homebrew-isce/blob/master/isce.rb ==> Dependencies Build: scons ✘ Required: python3 ✔, numpy ✔, scipy ✔, gcc@8 ✔, fftw ✔, gdal ✔, hdf5 ✔, openmotif ✔, imagemagick ✔, grace ✔, gmp ✔, mpfr ✔, mpc ✔, szip ✔, opencv ✔ ==> Requirements Required: x11 ✔ ==> Options --HEAD Install HEAD version ==> Caveats

juribeparada commented 5 years ago

OK, now it is installed. Have you run this: export ISCE_HOME=/usr/local/opt/isce

before running: brew test isce ?

rzinke commented 5 years ago

Not yet... Just ran it.

(ARIA-tools) MT-109587:~ rzinke$ brew test isce Testing juribeparada/isce/isce ==> python3 -c import isce Last 15 lines from /Users/rzinke/Library/Logs/Homebrew/isce/test.01.python3: 2019-07-25 14:09:49 -0700

python3 -c import isce

Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'isce' Error: juribeparada/isce/isce: failed Failed executing: /usr/local/Homebrew/Library/Homebrew/formula.rb:1914:in block in system' /usr/local/Homebrew/Library/Homebrew/formula.rb:1851:inopen' /usr/local/Homebrew/Library/Homebrew/formula.rb:1851:in system' /usr/local/Homebrew/Library/Taps/juribeparada/homebrew-isce/isce.rb:118:inblock in ' /usr/local/Homebrew/Library/Homebrew/formula.rb:1727:in block (3 levels) in run_test' /usr/local/Homebrew/Library/Homebrew/utils.rb:478:inwith_env' /usr/local/Homebrew/Library/Homebrew/formula.rb:1726:in block (2 levels) in run_test' /usr/local/Homebrew/Library/Homebrew/formula.rb:866:inwith_logging' /usr/local/Homebrew/Library/Homebrew/formula.rb:1725:in block in run_test' /usr/local/Homebrew/Library/Homebrew/formula.rb:1964:inblock in mktemp' /usr/local/Homebrew/Library/Homebrew/mktemp.rb:57:in block in run' /usr/local/Homebrew/Library/Homebrew/mktemp.rb:57:inchdir' /usr/local/Homebrew/Library/Homebrew/mktemp.rb:57:in run' /usr/local/Homebrew/Library/Homebrew/formula.rb:1963:inmktemp' /usr/local/Homebrew/Library/Homebrew/formula.rb:1719:in run_test' /usr/local/Homebrew/Library/Homebrew/test.rb:30:inblock in

' /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/timeout.rb:91:in block in timeout' /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/timeout.rb:33:inblock in catch' /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/timeout.rb:33:in catch' /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/timeout.rb:33:incatch' /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/timeout.rb:106:in timeout' /usr/local/Homebrew/Library/Homebrew/test.rb:29:in
'

rzinke commented 5 years ago

Just a thought... I also have some PATH and PYTHONPATH variables set with an environment module. Here are potentially relevant ones:

prepend-path PATH /anaconda3/envs/ARIA-tools/bin prepend-path LD_RUN_PATH /anaconda3/envs/ARIA-tools/lib append-path PYTHONPATH /anaconda3/envs/ARIA-tools/lib/python3.6/site-packages

GDAL environment

setenv GDAL_DATA /anaconda3/envs/ARIA-tools/share/gdal

PyAPS directory

append-path PYTHONPATH /Users/rzinke/Documents/PyScripts/ append-path PATH /Users/rzinke/Documents/PyScripts/pyaps3

ARIAtools

append-path PATH /Users/rzinke/Documents/PyScripts/ARIA-tools/tools/ARIAtools append-path PYTHONPATH /Users/rzinke/Documents/PyScripts/ARIA-tools/tools/ARIAtools

... Do you think these could be interfering with the installation?

juribeparada commented 5 years ago

Yes, it is a good idea to open a clean Terminal without the environment, please do not mix with anaconda (conda, miniconda, etc). Remember to modify your .bash_profile and remove anaconda from the PATH.

piyushrpt commented 5 years ago

@rzinke - Pick one out of the 3: homebrew / macports / conda and use the single package manager consistently. Mixing these in my experience is a recipe for disaster.

rzinke commented 5 years ago

Okay, I unloaded all the environment and conda modules and commented out all the path/pythonpath variables in my bash_profile, then opened a new terminal window with all those things removed. I removed the old installation "brew remove isce", updated to the most recent version "brew fetch --force isce", and installed "brew install isce". I exported the isce_home variable "export ISCE_HOME=/usr/local/opt/isce", and re-tried "brew test isce", which gives the following error message:

MT-109587:~ rzinke$ brew test isce Testing juribeparada/isce/isce ==> python3 -c import isce Last 15 lines from /Users/rzinke/Library/Logs/Homebrew/isce/test.01.python3: 2019-07-25 14:51:32 -0700

python3 -c import isce

Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'isce' Error: juribeparada/isce/isce: failed Failed executing: /usr/local/Homebrew/Library/Homebrew/formula.rb:1914:in block in system' /usr/local/Homebrew/Library/Homebrew/formula.rb:1851:inopen' /usr/local/Homebrew/Library/Homebrew/formula.rb:1851:in system' /usr/local/Homebrew/Library/Taps/juribeparada/homebrew-isce/isce.rb:118:inblock in ' /usr/local/Homebrew/Library/Homebrew/formula.rb:1727:in block (3 levels) in run_test' /usr/local/Homebrew/Library/Homebrew/utils.rb:478:inwith_env' /usr/local/Homebrew/Library/Homebrew/formula.rb:1726:in block (2 levels) in run_test' /usr/local/Homebrew/Library/Homebrew/formula.rb:866:inwith_logging' /usr/local/Homebrew/Library/Homebrew/formula.rb:1725:in block in run_test' /usr/local/Homebrew/Library/Homebrew/formula.rb:1964:inblock in mktemp' /usr/local/Homebrew/Library/Homebrew/mktemp.rb:57:in block in run' /usr/local/Homebrew/Library/Homebrew/mktemp.rb:57:inchdir' /usr/local/Homebrew/Library/Homebrew/mktemp.rb:57:in run' /usr/local/Homebrew/Library/Homebrew/formula.rb:1963:inmktemp' /usr/local/Homebrew/Library/Homebrew/formula.rb:1719:in run_test' /usr/local/Homebrew/Library/Homebrew/test.rb:30:inblock in

' /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/timeout.rb:91:in block in timeout' /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/timeout.rb:33:inblock in catch' /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/timeout.rb:33:in catch' /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/timeout.rb:33:incatch' /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/timeout.rb:106:in timeout' /usr/local/Homebrew/Library/Homebrew/test.rb:29:in
'

juribeparada commented 5 years ago

Please, copy the outputs of: echo $PATH echo $ISCE_HOME echo $PYTHONPATH

Did you get the same errors if you run: stripmapApp.py --help ?

Also try manually with a python3 command line: import isce

rzinke commented 5 years ago

echo $PATH /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin

echo $ISCE_HOME /usr/local/opt/isce

echo $PYTHONPATH

rzinke commented 5 years ago

When I try "stripmapApp.py --help" I get Traceback (most recent call last): File "/usr/local/bin/stripmapApp.py", line 43, in import isce ModuleNotFoundError: No module named 'isce'

When I open python3 and try to import isce, I get Traceback (most recent call last): File "", line 1, in File "/Users/rzinke/isce/init.py", line 33, in from .version import release_version, release_svn_revision, release_date ModuleNotFoundError: No module named 'isce.version'

piyushrpt commented 5 years ago

@rzinke you have a folder named isce (/Users/rzinke/isce) and you are importing that rather the version from homebrew

rzinke commented 5 years ago

I see. From a long-ago installation of ISCE. I have removed that and reinstalled using homebrew. When I try python3 import isce, I no longer get the bad reference to the old folder; now I see: Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'isce'

Similarly, for stripmapApp.py --help: Traceback (most recent call last): File "/usr/local/bin/stripmapApp.py", line 43, in import isce ModuleNotFoundError: No module named 'isce'

And when I try brew test isce: Testing juribeparada/isce/isce ==> python3 -c import isce Last 15 lines from /Users/rzinke/Library/Logs/Homebrew/isce/test.01.python3: 2019-07-25 15:21:55 -0700

python3 -c import isce

Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'isce' Error: juribeparada/isce/isce: failed Failed executing: /usr/local/Homebrew/Library/Homebrew/formula.rb:1914:in block in system' /usr/local/Homebrew/Library/Homebrew/formula.rb:1851:inopen' /usr/local/Homebrew/Library/Homebrew/formula.rb:1851:in system' /usr/local/Homebrew/Library/Taps/juribeparada/homebrew-isce/isce.rb:118:inblock in ' /usr/local/Homebrew/Library/Homebrew/formula.rb:1727:in block (3 levels) in run_test' /usr/local/Homebrew/Library/Homebrew/utils.rb:478:inwith_env' /usr/local/Homebrew/Library/Homebrew/formula.rb:1726:in block (2 levels) in run_test' /usr/local/Homebrew/Library/Homebrew/formula.rb:866:inwith_logging' /usr/local/Homebrew/Library/Homebrew/formula.rb:1725:in block in run_test' /usr/local/Homebrew/Library/Homebrew/formula.rb:1964:inblock in mktemp' /usr/local/Homebrew/Library/Homebrew/mktemp.rb:57:in block in run' /usr/local/Homebrew/Library/Homebrew/mktemp.rb:57:inchdir' /usr/local/Homebrew/Library/Homebrew/mktemp.rb:57:in run' /usr/local/Homebrew/Library/Homebrew/formula.rb:1963:inmktemp' /usr/local/Homebrew/Library/Homebrew/formula.rb:1719:in run_test' /usr/local/Homebrew/Library/Homebrew/test.rb:30:inblock in

' /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/timeout.rb:91:in block in timeout' /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/timeout.rb:33:inblock in catch' /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/timeout.rb:33:in catch' /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/timeout.rb:33:incatch' /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/timeout.rb:106:in timeout' /usr/local/Homebrew/Library/Homebrew/test.rb:29:in
'

rzinke commented 5 years ago

Is there a conda avenue for installing isce on a Mac? If that is available, that would be my preferred route, and possibly easier.

juribeparada commented 5 years ago

Interesting, (and thanks @piyushrpt for the help) it looks like isce is not found in the homebrew python3 site-packages. @rzinke could you see if these links are OK?: ls -l /usr/local/opt/isce ls -l /usr/local/lib/python3.7/site-packages/isce

and see all site-packages: python3 -m site

If everything is OK, you can try with (just for testing): export PYTHONPATH=/usr/local/opt

And yes, there is a conda installation also. See http://earthdef.caltech.edu/boards/4/topics/2773

rzinke commented 5 years ago

Yes, thanks to you both for all the help on this. Here is a potential problem: MT-109587:~ rzinke$ ls -l /usr/local/opt/isce lrwxr-xr-x 1 rzinke admin 20 Jul 25 15:17 /usr/local/opt/isce -> ../Cellar/isce/2.3.2

MT-109587:~ rzinke$ ls -l /usr/local/lib/python3.7/site-packages/isce ls: /usr/local/lib/python3.7/site-packages/isce: No such file or directory ... the isce package is not present. Here is a list of my /usr/local/lib/python3.7/site-packages/ ls /usr/local/lib/python3.7/site-packages/ GDAL-2.4.2-py3.7.egg-info mpl_toolkits TBB-0.1-py3.7.egg-info numpy TBB.py numpy-1.16.4-py3.7.egg-info pycache ogr.py certifi osgeo certifi-2019.6.16.dist-info osr.py chardet pip chardet-3.0.4.dist-info pip-19.1.1-py3.7.egg-info cv2 pkg_resources cycler-0.10.0.dist-info pylab.py cycler.py pyparsing-2.4.0.dist-info dateutil pyparsing.py easy_install.py python_dateutil-2.8.0.dist-info gdal.py requests gdalconst.py requests-2.22.0.dist-info gdalnumeric.py scipy geos scipy-1.3.0-py3.7.egg-info geos.pth setuptools h5py setuptools-41.0.1-py3.7.egg-info h5py-2.9.0.dist-info sitecustomize.py homebrew-numpy-nose.pth six-1.12.0.dist-info idna six.py idna-2.8.dist-info tbb kiwisolver-1.1.0.dist-info urllib3 kiwisolver.cpython-37m-darwin.so urllib3-1.25.3.dist-info matplotlib wheel matplotlib-3.1.1-py3.7-nspkg.pth wheel-0.33.0-py3.7.egg-info matplotlib-3.1.1.dist-info wheel-0.33.4-py3.7.egg-info

Then, in terms of seeing all site-packages: MT-109587:~ rzinke$ python3 -m site sys.path = [ '/Users/rzinke', '/anaconda3/envs/GeoProc/lib/python36.zip', '/anaconda3/envs/GeoProc/lib/python3.6', '/anaconda3/envs/GeoProc/lib/python3.6/lib-dynload', '/anaconda3/envs/GeoProc/lib/python3.6/site-packages', '/Users/rzinke/Documents/PyScripts/ImageProcToolkit', '/Users/rzinke/Documents/PyScripts/InsarToolkit', '/Users/rzinke/Documents/PyScripts/Misc', ] USER_BASE: '/Users/rzinke/.local' (doesn't exist) USER_SITE: '/Users/rzinke/.local/lib/python3.6/site-packages' (doesn't exist) ENABLE_USER_SITE: True

rzinke commented 5 years ago

I need to use a specific conda environment for much of my post processing. Would it be simpler at this point to install ISCE using conda?

Thank you both.

juribeparada commented 5 years ago

Well, from your "python3 -m site" output you are still using the python3 from ananconda3. You need to use python3 from homebrew. This is my output, as an example: sys.path = [ '/Users/juribe', '/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python37.zip', '/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7', '/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload', '/usr/local/lib/python3.7/site-packages', '/usr/local/lib/python3.7/site-packages/geos', '/usr/local/Cellar/matplotlib/2.2.3/libexec/lib/python3.7/site-packages', '/usr/local/Cellar/numpy/1.16.4/libexec/nose/lib/python3.7/site-packages', '/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages', '/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/geos', ] USER_BASE: '/Users/juribe/Library/Python/3.7' (doesn't exist) USER_SITE: '/Users/juribe/Library/Python/3.7/lib/python/site-packages' (doesn't exist) ENABLE_USER_SITE: True

Note "/usr/local/lib/python3.7/site-packages" in the list. And "/usr/local/lib/python3.7/site-packages/isce" is just a symlink to "/usr/local/opt/isce". For some reason is not created (folder permissions?) in your case. Then "export PYTHONPATH=/usr/local/opt" should work if you run homebrew version of python3. Here in my computer I have miniconda3 and homebrew, but miniconda3 path is not added to PATH by default, only manually when I need it (export PATH="/Users/juribe/miniconda3/bin:$PATH"). Obviously, when I use miniconda3, I can't work with ISCE. If you need conda at the same time of ISCE, probably conda package is better for you.

emmecubed commented 4 years ago

Greetings! I am having a similar problem running isce. My OSX is catalina and I've run out of ideas for how to get it running. My error message from 'brew test isce' is:Last 15 lines from /Users/megancubed/Library/Logs/Homebrew/isce/test.01.python3: 2020-10-24 14:26:29 -0700

python3 -c import isce

Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'isce' Error: juribeparada/isce/isce: failed An exception occurred within a child process: BuildError: Failed executing: python3 -c import\ isce /usr/local/Homebrew/Library/Homebrew/formula.rb:2033:in block in system' /usr/local/Homebrew/Library/Homebrew/formula.rb:1971:inopen' /usr/local/Homebrew/Library/Homebrew/formula.rb:1971:in system' /usr/local/Homebrew/Library/Taps/juribeparada/homebrew-isce/isce.rb:118:inblock in ' /usr/local/Homebrew/Library/Homebrew/formula.rb:1842:in block (3 levels) in run_test' /usr/local/Homebrew/Library/Homebrew/utils.rb:497:inwith_env' /usr/local/Homebrew/Library/Homebrew/formula.rb:1841:in block (2 levels) in run_test' /usr/local/Homebrew/Library/Homebrew/formula.rb:901:inwith_logging' /usr/local/Homebrew/Library/Homebrew/formula.rb:1840:in block in run_test' /usr/local/Homebrew/Library/Homebrew/mktemp.rb:58:inblock in run' /usr/local/Homebrew/Library/Homebrew/mktemp.rb:58:in chdir' /usr/local/Homebrew/Library/Homebrew/mktemp.rb:58:inrun' /usr/local/Homebrew/Library/Homebrew/formula.rb:2082:in mktemp' /usr/local/Homebrew/Library/Homebrew/formula.rb:1834:inrun_test' /usr/local/Homebrew/Library/Homebrew/test.rb:43:in block in <main>' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/timeout.rb:93:inblock in timeout' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/timeout.rb:33:in block in catch' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/timeout.rb:33:incatch' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/timeout.rb:33:in catch' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/timeout.rb:108:intimeout' /usr/local/Homebrew/Library/Homebrew/test.rb:42:in `

Does anything stand out?