euroargodev / argopy

A python library for Argo data beginners and experts
https://argopy.readthedocs.io
European Union Public License 1.2
176 stars 39 forks source link

pyproj UserWarning when loading argopy #301

Closed gmaze closed 11 months ago

gmaze commented 11 months ago

EVERY TIME I import argopy from my jupyterlab notebooks I have the following warning:

/Users/gmaze/miniconda3/envs/argopy-base/lib/python3.8/site-packages/pyproj/__init__.py:89: 
UserWarning: pyproj unable to set database path.
  _pyproj_global_context_initialize()

Could this be removed ??

gmaze commented 11 months ago

The warning was coming from the fact that I had "proj" installed on my base environment. I guess "pyproj" and "proj" should be installed on the same env. I also noticed that I had to put pyproj and cartopy in the conda env definition for python 3.8