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

Unset PROJ_LIB environment variable in dea-env #223

Open
omad opened this issue Jun 3, 2019 · 0 comments
Open

Unset PROJ_LIB environment variable in dea-env #223

omad opened this issue Jun 3, 2019 · 0 comments
Assignees

Comments

@omad
Copy link
Contributor

omad commented Jun 3, 2019

The error below happened when trying to run an old script in the current dea environment. This is due to the PROJ_LIB environment variable not being set.

proj_lib_bug

The dea-env module is based on a conda environment, which usually sets environment variables specified in etc/conda/activate.d shell scripts. We have manually copied the environment variables for udunits and gdal into the module files, but PROJ_LIB and a whole bunch of other environment variables are being ignored. Mostly this has been fine, but has reared it's head with this issue.

See /g/data/v10/public/modules/dea-env/20190329/etc/conda/activate.d for the current set of shell scripts which aren't being run.

This issue can be fixed by simply adding PROJ_LIB beside GDAL_DIR, and replacing gdal with proj in the module files for new environments.

In future we could consider running activate scripts when loading a module, but this could have wider reaching repercussions.

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

No branches or pull requests

2 participants