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

add gdal to image #5

Open
jdries opened this issue Nov 14, 2024 · 3 comments
Open

add gdal to image #5

jdries opened this issue Nov 14, 2024 · 3 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@jdries
Copy link

jdries commented Nov 14, 2024

EO users will expect a tool like gdal to be available from command line, and perhaps also in the default python environment.
Note that if it's installed, it will also become easier to install with pip.

I tried conda install as an alternative and got this:

ERROR conda.core.link:_execute(951): An error occurred while installing package 'conda-forge::gdal-3.10.0-py311h35e7c94_1'.                                        
Rolling back transaction: done                                                                                                                                     
                                                                                                                                                                   
[Errno 13] Permission denied: '/opt/conda/bin/__pycache__/gdal2tiles.cpython-311.pyc'
@fabricebrito fabricebrito self-assigned this Nov 15, 2024
@fabricebrito fabricebrito added the documentation Improvements or additions to documentation label Nov 15, 2024
@fabricebrito
Copy link
Contributor

Thanks for reporting this issue. We'll provide guidance on how to create conda environments and eventually fix the image if needed

@jdries
Copy link
Author

jdries commented Nov 15, 2024

Yes, and please consider gdal installation a hard requirement for apex.

@fabricebrito
Copy link
Contributor

@jdries this is way to go:

Create conda environment for gdal with:

mamba create -n env_gdal gdal

Activate it:

mamba activate env_gdal

Test it with:

python -c "from osgeo import gdal"

FYI:

which python returns:

/workspace/.envs/env_gdal/bin/python

which is not a read only filesystem.

This will be part of the up-coming documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants