- Package:
- python3-geopandas
- Source:
- python-geopandas
- Submitter:
- Akkana Peck
- Date:
- 2022-07-08 16:51:03 UTC
- Severity:
- normal
- Tags:
Dear Maintainer, import geopandas results in the following warning: /usr/lib/python3/dist-packages/pyproj/__init__.py:91: UserWarning: Valid PROJ data directory not found. Either set the path using the environmental variable PROJ_LIB or with `pyproj.datadir.set_data_dir`. warnings.warn(str(err)) If I create a new pythonenv and install geopandas there, e.g.: python3 -m venv /path/to/new/env source /path/to/new/env/bin/activate pip install geopandas then I can import geopandas without the warning. I'm new to geopandas, just trying to work through some tutorials, so I'm not sure yet how often this proj dir will be needed or how important it is; the cartopy tutorial still works without it (I guess it's getting its projections from cartopy instead of geopandas).
Control: tags -1 unreproducible moreinfo >>> import pyproj >>> pyproj.datadir.get_data_dir() '/usr/share/proj' geopandas works too: >>> import geopandas >>> from geopandas.tools._show_versions import show_versions >>> show_versions() SYSTEM INFO ----------- python : 3.10.5 (main, Jun 8 2022, 09:26:22) [GCC 11.3.0] executable : /usr/bin/python3 machine : Linux-5.17.0-2-amd64-x86_64-with-glibc2.33 GEOS, GDAL, PROJ INFO --------------------- GEOS : 3.10.3 GEOS lib : /usr/lib/x86_64-linux-gnu/libgeos_c.so GDAL : 3.5.0 GDAL data dir: /usr/share/gdal PROJ : 9.0.0 PROJ data dir: /usr/share/proj PYTHON DEPENDENCIES ------------------- geopandas : 0.10.2 pandas : 1.3.5 fiona : 1.8.21 numpy : 1.21.5 shapely : 1.8.0 rtree : 1.0.0 pyproj : 3.3.1 matplotlib : 3.5.1 mapclassify: None geopy : 2.2.0 psycopg2 : 2.9.2 (dt dec pq3 ext lo64) geoalchemy2: None pyarrow : None pygeos : None This suggests something is wrong in your environment. Kind Regards, Bas
You're right. I tried it in a totally clean environment with no virtualenvs and I don't get the warning. I must have something in my regular venv that's interfering. Sorry for the bogus bug report!
Thanks for the confirmation. Closing accordingly. Kind Regards, Bas