Closed pnsaevik closed 10 months ago
import pyproj import numpy as np import warnings with warnings.catch_warnings(): warnings.simplefilter("error") pyproj.Transformer.from_crs(4326, 25830).transform(np.array([60]), np.array([5]))
There should be no reason why this transform would raise a warning. There must be something fishy going on inside the compiled code.
No warnings
Output from: pyproj -v
pyproj -v
python -c "import pyproj; print(pyproj.__version__)"
python -c "import pyproj; print(pyproj.proj_version_str)"
python -c "import pyproj; print(pyproj.datadir.get_data_dir())"
python -c "import sys; print(sys.version.replace('\n', ' '))"
python -c "import platform; print(platform.platform())"
First: conda create -n testenv pyproj
conda create -n testenv pyproj
Then: pip install --upgrade pyproj
pip install --upgrade pyproj
Environment (conda list):
conda list
Details about conda and system ( conda info ):
conda
conda info
Duplicate #1307
Code Sample, a copy-pastable example if possible
Problem description
There should be no reason why this transform would raise a warning. There must be something fishy going on inside the compiled code.
Expected Output
No warnings
Environment Information
Output from:
pyproj -v
python -c "import pyproj; print(pyproj.__version__)"
): 3.6.1python -c "import pyproj; print(pyproj.proj_version_str)"
): 9.3.0python -c "import pyproj; print(pyproj.datadir.get_data_dir())"
): C:\Miniconda3\envs\testenv\Lib\site-packages\pyproj\proj_dir\share\projpython -c "import sys; print(sys.version.replace('\n', ' '))"
): 3.11.5 | packaged by Anaconda, Inc. | (main, Sep 11 2023, 13:26:23) [MSC v.1916 64 bit (AMD64)]python -c "import platform; print(platform.platform())"
): Windows-10-10.0.19042-SP0Installation method
First:
conda create -n testenv pyproj
Then:
pip install --upgrade pyproj
Conda environment information (if you installed with conda):
Environment (
conda list
):Details about
conda
and system (conda info
):