dshean / demcoreg

Utilities for DEM and point cloud co-registration
MIT License
110 stars 42 forks source link

issue installing on MacOS M1 #58

Open adina17 opened 1 year ago

adina17 commented 1 year ago

hi, anyone else had an issue installing on MacOS M1? I had no issues installing on the Intel OS, now on M1 I get and error when following the installation (with pip),

pip install demcoreg

which says "Failed building wheels for gdal"

then × Encountered error while trying to install package. ╰─> gdal

I checked, wheel package is installed and I am using this in a separate environment (not the base). thanks-

ShashankBice commented 1 year ago

Hi Adina, Building GDAL with pip is tricky. I suggest you follow the beginners doc, where installing via conda is suggested. It should work post that!

Cheers, Shashank

dshean commented 1 year ago

I have not encountered any issues with Mac M1 installs and latest GDAL. You could try a fresh conda environment install of python and required dependencies like GDAL. Then clone/pull latest versions of pygeotools and demcoreg and pip install from the local repo (not the version on pypi).

adina17 commented 1 year ago

thanks, I did follow exactly the same document, only did not create a new environment as I already had one (for AMES stereo pipeline) which has the packages... the beginners doc does instruct for installing with pip however, after installing the conda packages.

I have python 3.9.15 in the environment I am running...

thanks Adina

ShashankBice commented 1 year ago

Hi Adina, The ASP environment does not have an independent gdal as far as I can tell from the environment file. So there are 2 ways to go ahead with this:

Let us know how it goes, Shashank

adina17 commented 1 year ago

Hi Shankank

yes, I am tryign this exactly, it seems to choke.. Might need to create a new environment if this does not work. thanks! Adina

On Wed, 23 Aug 2023 at 15:34, Shashank Bhushan @.***> wrote:

Hi Adina, The ASP environment does not have an independent gdal as far as I can tell from the environment file https://github.com/NeoGeographyToolkit/StereoPipeline/blob/master/conda/asp_deps_3.3.0_osx_env.yaml. So there are 2 ways to go ahead with this:

  • If you want to stay inside the ASP env which you have, after activating it, run the following command: conda install -c conda-forge gdal
  • Or create a new environment for demcoreg as suggested in the beginners doc Post this you should be able to do the pip install of individual libraries as suggested in the beginners doc :)

Let us know how it goes, Shashank

— Reply to this email directly, view it on GitHub https://github.com/dshean/demcoreg/issues/58#issuecomment-1690600151, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIFGG5BRBBES2XNM7X77N23XWZSMBANCNFSM6AAAAAA336ARAU . You are receiving this because you authored the thread.Message ID: @.***>