demcoreg
demcoreg copied to clipboard
issue installing on MacOS M1
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-
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
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).
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
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:
- 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
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: @.***>