samuelleblanc / fp

Flight planning software, moving lines
GNU General Public License v3.0
4 stars 2 forks source link

Installation on Mac M1 fails #8

Open mottavia opened 1 year ago

mottavia commented 1 year ago

pip install movinglines fails on my Mac M1. Remedied the error about the missing GEOS and proj packages with: brew install GEOS brew install proj

but following error persists: lib/cartopy/trace.cpp:642:10: fatal error: 'geodesic.h' file not found

include "geodesic.h"

           ^~~~~~~~~~~~
  1 error generated.
  error: command '/usr/bin/clang' failed with exit code 1
knobelsp commented 1 year ago

I'm also having similar (but different) issues on a Mac. The regular pip install fails with cartopy, so I attempted with: pip install movinglines --no-binary cartopy

which seems to require Proj. The latest version installed is 0.2.0, but the following messages are shown when rerunning pip install movinglines --no-binary cartopy:

_:117: UserWarning: Unable to determine GEOS version. Ensure you have 3.7.2 or later installed, or installation may fail.

:166: UserWarning: Unable to determine Proj version. Ensure you have 8.0.0 or later installed, or installation may fail. Proj version 0.0.0 is installed, but cartopy requires at least version 8.0.0._
samuelleblanc commented 1 year ago

How about trying to install using the conda / mamba method? this may help resolve the mac M1 issues

knobelsp commented 1 year ago

Hi Sam, I don’t remember the details, but I’m pretty sure I did try that at one point. I tried everything 😊 K

Kirk D. Knobelspiesse (he, him, his) NASA Goddard Space Flight Center, Ocean Ecology Laboratory https://science.gsfc.nasa.gov/sed/bio/kirk.d.knobelspiesse ------> In person at GSFC on Mondays, Tuesdays, Wednesdays

From: Samuel LeBlanc @.> Reply-To: samuelleblanc/fp @.> Date: Monday, November 6, 2023 at 6:58 PM To: samuelleblanc/fp @.> Cc: "Kirk K." @.>, Comment @.***> Subject: [EXTERNAL] [BULK] Re: [samuelleblanc/fp] Installation on Mac M1 fails (Issue #8)

CAUTION: This email originated from outside of NASA. Please take care when clicking links or opening attachments. Use the "Report Message" button to report suspicious messages to the NASA SOC.

How about trying to install using the conda / mamba method? this may help resolve the mac M1 issues

— Reply to this email directly, view it on GitHubhttps://github.com/samuelleblanc/fp/issues/8#issuecomment-1797051223, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMYX2BH5FMN7GONLNTSBRYLYDF2LRAVCNFSM6AAAAAA3RPMDCSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJXGA2TCMRSGM. You are receiving this because you commented.Message ID: @.***>

samuelleblanc commented 1 year ago

This is a new fix that I just made today. So hopefully that'll work :)

On Mon, Nov 6, 2023, 16:33 Kirk K. @.***> wrote:

Hi Sam, I don’t remember the details, but I’m pretty sure I did try that at one point. I tried everything 😊 K

Kirk D. Knobelspiesse (he, him, his) NASA Goddard Space Flight Center, Ocean Ecology Laboratory https://science.gsfc.nasa.gov/sed/bio/kirk.d.knobelspiesse ------> In person at GSFC on Mondays, Tuesdays, Wednesdays

From: Samuel LeBlanc @.> Reply-To: samuelleblanc/fp @.> Date: Monday, November 6, 2023 at 6:58 PM To: samuelleblanc/fp @.> Cc: "Kirk K." @.>, Comment @.***> Subject: [EXTERNAL] [BULK] Re: [samuelleblanc/fp] Installation on Mac M1 fails (Issue #8)

CAUTION: This email originated from outside of NASA. Please take care when clicking links or opening attachments. Use the "Report Message" button to report suspicious messages to the NASA SOC.

How about trying to install using the conda / mamba method? this may help resolve the mac M1 issues

— Reply to this email directly, view it on GitHub< https://github.com/samuelleblanc/fp/issues/8#issuecomment-1797051223>, or unsubscribe< https://github.com/notifications/unsubscribe-auth/AMYX2BH5FMN7GONLNTSBRYLYDF2LRAVCNFSM6AAAAAA3RPMDCSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJXGA2TCMRSGM>.

You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/samuelleblanc/fp/issues/8#issuecomment-1797083751, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACF3MIFD4SGPATFIOWELSV3YDF6XPAVCNFSM6AAAAAA3RPMDCSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJXGA4DGNZVGE . You are receiving this because you commented.Message ID: @.***>

ephraims28 commented 11 months ago

Hi Samuel, I am also having issues with installing MovingLines on a Macbook Air with an M1 chip. I followed the instructions on the readme using conda. Eachtime when I ran "mamba install -c samuelleblanc movinglines" and said I was missing a library, I

Screen Shot 2023-12-14 at 2 09 49 PM

installed that library.

However, I eventually got this error in the attached screenshot. Do you know how to fix this?

Thanks, Sam

samuelleblanc commented 7 months ago

Has the newer conda versions solved this issue? It may be best to stick with python 3.9 instead of the 3.8 in the conda environment?