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

Error: No module named 'osgeo' #43

Closed
9imrah opened this issue Aug 10, 2023 · 1 comment
Closed

Error: No module named 'osgeo' #43

9imrah opened this issue Aug 10, 2023 · 1 comment

Comments

@9imrah
Copy link

9imrah commented Aug 10, 2023

Hello,
I was trying to explore the LSAT tool but encountered with an error at starting of start menue:
File "D:\LSAT-1.0.1\BGR-EGHA-LSAT-3fa695c\startMenu_main.py", line 3, in
from osgeo import gdal
ModuleNotFoundError: No module named 'osgeo'

@BGR-EGHA
Copy link
Owner

Hello Nimrah,

it looks like you are missing the osgeo package or you are using an old version of GDAL that used import gdal. Either way, you should install a recent version of GDAL. On Windows, the easiest way is to download a .whl file provided here (version 3.6.1 tested) and install it with python -m pip install *path to .whl file*. Most likely, you will need the AMD64 version of the package corresponding to your installed Python version (Python 3.11 -> cp311, Python 3.10 -> cp310, etc.).

Cheers
Nick

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

2 participants