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

Bugfix for gdal ImportErrors observed on Windows #1701

Merged
merged 4 commits into from
Dec 4, 2024

Conversation

davemfish
Copy link
Contributor

@davemfish davemfish commented Dec 3, 2024

Description

Fixes #1643

We can use a pyinstaller runtime hook to make sure that the directory containing gdal.dll is first on the PATH for Windows users. I tested this out on a local setup where I had previously triggered the ImportError with conflicting DLLs from an anaconda path. This seems to do the trick.

Checklist

  • Updated HISTORY.rst and link to any relevant issue (if these changes are user-facing)
  • Updated the user's guide (if needed)
  • Tested the Workbench UI (if relevant)

@davemfish davemfish changed the title Bugfix/1643 gdal dll Bugfix for gdal ImportErrors observed on Windows Dec 3, 2024
@davemfish davemfish marked this pull request as ready for review December 3, 2024 22:42
@davemfish davemfish requested a review from phargogh December 3, 2024 22:43
@davemfish davemfish self-assigned this Dec 3, 2024
@davemfish davemfish added this to the 3.14.3 milestone Dec 3, 2024
Copy link
Member

@phargogh phargogh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me, thanks @davemfish ! And also thanks for pulling the old Qt environment variable as well.

@phargogh phargogh merged commit 4044ae2 into natcap:main Dec 4, 2024
29 checks passed
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

Successfully merging this pull request may close these issues.

Workbench crashes when anaconda is on the PATH
2 participants