NeoGeographyToolkit / StereoPipeline

The NASA Ames Stereo Pipeline is a suite of automated geodesy & stereogrammetry tools designed for processing planetary imagery captured from orbiting and landed robotic explorers on other planets.
Apache License 2.0
478 stars 168 forks source link

Problem with conda and channel #400

Closed tthomopoulos closed 10 months ago

tthomopoulos commented 1 year ago

Hi,

I try to install asp with conda, but when I run the install command, it gives me the following message.

"(base) @Mini-de-Thomas / % conda install stereo-pipeline==3.2.0 Collecting package metadata (current_repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Collecting package metadata (repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from current channels:

Current channels:

To search for alternate channels that may provide the conda package you're looking for, navigate to

https://anaconda.org

and use the search bar at the top of the page".

Channels are well configured :

"(base) @Mini-de-Thomas / % conda config --env --add channels conda-forge (base) @Mini-de-Thomas / % conda config --env --add channels usgs-astrogeology (base) @Mini-de-Thomas / % conda config --env --add channels nasa-ames-stereo-pipeline (base) @Mini-de-Thomas / % conda config --show channels channels:

It seems not to find stereo pipeline on conda.

Could you help me to install it? Thanks

My computer is a Mac Mini M1 with Mac Os X Monterey version 12.6.5

Thomas

oleg-alexandrov commented 1 year ago

ASP does not support M1, only the Intel processor. I heard people ran successfully the Intel binaries via the translation layer. Those can be obtained from https://github.com/NeoGeographyToolkit/StereoPipeline/releases .

On Mon, May 15, 2023 at 6:34 AM tthomopoulos @.***> wrote:

Hi,

I try to install asp with conda, but when I run the install command, it gives me the following message.

"(base) @Mini-de-Thomas / % conda install stereo-pipeline==3.2.0 Collecting package metadata (current_repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Collecting package metadata (repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from current channels:

  • stereo-pipeline==3.2.0

Current channels:

To search for alternate channels that may provide the conda package you're looking for, navigate to

https://anaconda.org

and use the search bar at the top of the page".

Channels are well configured :

"(base) @Mini-de-Thomas / % conda config --env --add channels conda-forge (base) @Mini-de-Thomas / % conda config --env --add channels usgs-astrogeology (base) @Mini-de-Thomas / % conda config --env --add channels nasa-ames-stereo-pipeline (base) @Mini-de-Thomas / % conda config --show channels channels:

  • nasa-ames-stereo-pipeline
  • usgs-astrogeology
  • conda-forge
  • defaults"

It seems not to find stereo pipeline on conda.

Could you help me to install it? Thanks

My computer is a Mac Mini M1 with Mac Os X Monterey version 12.6.5

Thomas

— Reply to this email directly, view it on GitHub https://github.com/NeoGeographyToolkit/StereoPipeline/issues/400, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKDU3AO6QOMOZ5KQJ4NEEDXGIWFRANCNFSM6AAAAAAYCGULLU . You are receiving this because you are subscribed to this thread.Message ID: @.***>

tthomopoulos commented 1 year ago

Thank you for your message. Are you planning to adapt the M1 and M2 from Apple?

rbeyer commented 1 year ago

Since ASP depends on the USGS's ISIS software libraries, and until those are fully functional natively on Apple Silicon, we can't do much about it.

For now, it does appear that running conda, ISIS, and ASP via the translation layer might work for some folks. You can also certainly experiment with virtualization solutions to try and run a Linux image to install ISIS and ASP in.

Of course, as Oleg says, you should be able to run the pre-compiled ASP Intel binaries via the translation layer. Of course, running ASP with a Mac Mini is a brave act, and we salute you.

tthomopoulos commented 1 year ago

I'm just starting out, but ISIS works on my Mac mini M1 with conda, so why can't ASP?

oleg-alexandrov commented 1 year ago

Based on https://github.com/DOI-USGS/ISIS3#installation, they don't have custom binaries for M1, and they trick your system into installing x86-64 and Rosetta. Can the same instructions be used with ASP?

tthomopoulos commented 1 year ago

I apologize, but I am not a programmer, in any case, ISIS works. I have actually installed x86-64 and Rosetta, isn't it actually possible also for ASP? Unfortunately, when I run conda to install ASP, it does not find ASP through the channel

oleg-alexandrov commented 1 year ago

I understand. I was wondering if one can ignore the ASP instructions and use the ISIS instructions that worked for you, except for adding the ASP channel on top of the rest. I surely understand if you find these things too tricky, and it should be on our side to sort things out.

For now, one should not use conda then with M1, and download the ASP tarball as in https://stereopipeline.readthedocs.io/en/latest/installation.html. I know from people that that approach works.

tthomopoulos commented 1 year ago

Ok, thank you for your answer