-
Notifications
You must be signed in to change notification settings - Fork 93
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
Python: gdal import error #6215
Comments
Thank you for the feedback @dreyerlivio! Is 2024.11.0-140 the last version where this worked correctly? Have you tried 2024.12.0-41 or any other later versions? If you're able to find the latest working version that would really help us narrow down this regression. |
2024.11.0-140 is the latest working version, not working with newer versions. Manuallly defining the path as below fixes the issues,so I guess Positron does not correctly set this path anymore library_bin = r"C:\Users\xxx\miniconda3\envs\nc_reproject\Library\bin"
if library_bin not in os.environ["PATH"]:
os.environ["PATH"] = library_bin + ";" + os.environ["PATH"] |
Thank you @dreyerlivio, this is a really helpful clue. We will investigate and post any findings here ASAP |
Hi there! Thank you for reporting this issue and the follow up. I just tried this out on a Windows 10 (😅) machine on Here's a little bit more about my setup.
Are you able to 1) try out the latest Positron release and see if that fixes your issue or 2) give a bit more info about your environment, specifically gdal, Python, conda versions, and how you installed gdal? |
Just tried with the newest release, still the same error. My environment on a windows 11 machine:
|
System details:
Positron Version: 2025.02.0 (system setup) build 137
Code - OSS Version: 1.96.0
Commit: f4b7966
Date: 2025-01-30T15:18:06.013Z
Electron: 32.2.6
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Windows_NT x64 10.0.22631
Describe the issue:
Importing gdal gives the following error:
Import works fine in command line or other IDE's. Import worked fine in version 2024.11.0-140, for newer versions this gives the error above.
Steps to reproduce the issue:
In python console:
from osgeo import gdal
The text was updated successfully, but these errors were encountered: