Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Installing on MacOS through install.py #174

Open
Jordan-Pierce opened this issue Jan 9, 2025 · 0 comments
Open

Bug: Installing on MacOS through install.py #174

Jordan-Pierce opened this issue Jan 9, 2025 · 0 comments

Comments

@Jordan-Pierce
Copy link
Contributor

Jordan-Pierce commented Jan 9, 2025

FYI, installing on MacOS throws an error at

        elif osused == 'Darwin':
            print('Trying to install gdal...')
            try:
                check_call(['brew', 'install', 'gdal'],
                        stdout=open(os.devnull, 'wb'), stderr=STDOUT)

and also

        out = subprocess.getstatusoutput(['cmake', '--version'])
        if out[0] != 0:
            if osused == 'Darwin':
                print('Trying to install cmake...')
                try:
                    check_call(['brew', 'install', 'cmake'],
                               stdout=open(os.devnull, 'wb'), stderr=STDOUT)
                except:
                    raise Exception('Impossible to install cmake through homebrew. Please install manually cmake before running '
                                    'this script.\nInstallation aborted.')

However, running the actual command from command line:

brew install gdal
brew install cmake

performs fine. Would help debugging, but I don't myself have a Mac.

@Jordan-Pierce Jordan-Pierce changed the title Installing GDAL on MacOS through install.py Bug: Installing GDAL on MacOS through install.py Jan 9, 2025
@Jordan-Pierce Jordan-Pierce changed the title Bug: Installing GDAL on MacOS through install.py Bug: Installing on MacOS through install.py Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant