-
Notifications
You must be signed in to change notification settings - Fork 214
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
UserWarning: Valid PROJ data directory not found #1350
Comments
Why did you delete all of the questions on the issue template? They are there for a reason. That reason is that we need that information to give you any useful kind of answer. Please answer these questions and then we'll see if we can help:
|
Rel. 8.1.1, September 1st, 2021 This is my environment information:
I installed it through conda-forge: These are all the package.:
|
Thank you. Are you activating your conda environment before using it? |
Side note: I'm a little surprised you're getting such an old version of pyproj, although that's not the problem here most likely. When you created your environment did you specify any version limits for any of your dependencies? |
Yes. This is what I needed to run my code so pyproj came as a dependency: |
Is that "Yes" to the activation question? The various PROJ directory environment variables are meant to be set on environment activation. |
Yes. I think because I installed an older version version of geopandas it came with an older version of proj. I don't know if I answered your question correctly |
Ok, so at some point you are running |
I run the following: |
If you run Edit: I'm trying to figure out the smallest amount of code to reproduce the warning. I'm not seeing it on linux with these package versions, but it wouldn't surprise me that Windows builds have an issue that linux doesn't. |
It works fine: (chur2) C:\Users\hdela>python |
Well the warning you were getting is supposed to show up in
but I wouldn't guess it would be a problem. So perhaps one of the other packages is interfering with pyproj? What order do you import things in your script? Also, it looks like you might be using some multiprocessing, is that right? |
Yes I am using some multiprocessing. These are the other import statement: import numpy as np from scipy.stats import norm from osgeo.gdalconst import * import matplotlib as mpl from fiona import collection, open as fiona_open |
Do you think is it that warning that is making python to look for that folder on my old machine. |
Did you copy your old machine's environment to your new machine? No I don't think that warning has anything to do with your incorrect netcdf path being used besides that both issues could be pointing to the same problem: something got copied or configured incorrectly when switching to the new machine. |
Note: Even with that set of imports in a python file and with:
I don't see a pyproj warning on my linux environment. |
Providing a Minimal Reproducible Example may help to debug the issue: https://stackoverflow.com/help/minimal-reproducible-example |
I am running this code but for, I realized that the FileNotFound Error is happening because it is looking for a file on another old computer? how do I solve that issue? Is it related to the Pyproj warning:
My environment variables:
C:\Users\hdela.conda\envs\chur2\Lib\site-packages\pyproj
C:\Users\hdela.conda\envs\chur2\Library\share\proj
The text was updated successfully, but these errors were encountered: