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
BUG: get_data_dir support for conda Windows enviroments #1029
Comments
What is the value of the PROJ_LIB environment variable? |
@snowman2 Its: C:\Program Files\PostgreSQL\13\share\contrib\postgis-3.1\proj I also just got this error:
How do handle this situation? |
Sounds like you have conflicting versions of the |
@snowman2 Thanks for the link. It seems like this is the problem. However, I am not sure how to fix it. To get data directory being used: pyproj.datadir.get_data_dir()
The order for searching for the data directory can be found in the docstrings of pyproj.datadir.get_data_dir()
How to know in which folder |
This is how I found the I looked into this file ...Miniconda3\envs<ENV>\conda-meta\proj--h1cfcee-.json and searched for \pkgs\proj. Once found, I checked the versins of PROJ installed in this folder C:...\Miniconda3\pkgs. There are folder named something like proj--h1cfcee-. Make sure the folder name is the exact same name you found this file links to: ...Miniconda3\envs<ENV>\conda-meta\proj--h1cfcee-.json. Finally I set my environment variable to the version needed ...Miniconda3\pkgs\proj--h1cfcee-<VERSION\Library\share\proj. |
Line 75 in 8f0e1f7
It might not be a bad idea to better support for the Windows prefix search path. Maybe something like: conda_windows_prefix_datadir = Path(sys.prefix, "Library", "share", "proj") @Stophface are you able to share the value of |
Looks like adding the windows Library prefix search would be useful here: https://github.com/conda-forge/proj.4-feedstock/blob/9bf81fff5781b937f601a9f1b372f5a819f5bb38/recipe/scripts/activate.sh#L14 |
@snowman2 Sure, I am not sure how to get it thoug.
|
Thanks @Stophface, that was helpful. This is something that I think should be added to the logic in pyproj to find the data directory on Windows conda environments. |
Installation method/steps
I freshley installed PyProj according to the docs
When I try
I get
Whats going on there?
Environment Information
The text was updated successfully, but these errors were encountered: