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
TST: CI failures with PROJ 9.0.0 #2388
Comments
I am looking a bit into this, and it seems this is due to that fact that setting
vs
(pyproj version is the same in both cases (3.3.0), only PROJ version differs) Maybe related to the changes in OSGeo/PROJ#3049? cc @snowman2 @rouault |
Actually, the above observation is caused by my IPython config where I already do some imports by default (including geopandas). So doing the above in a clean python env, that still gives False for PROJ 9.0.0. But so the correct observation of what changed in behaviour, is that setting the env variable after importing pyproj no longer has effect: >>> import os
>>> import pyproj
>>> pyproj.proj_version_str
'8.2.0'
>>> os.environ["PROJ_NETWORK"] = "OFF"
>>> pyproj.network.is_network_enabled()
False vs >>> import os
>>> import pyproj
>>> pyproj.proj_version_str
'9.0.0'
>>> os.environ["PROJ_NETWORK"] = "OFF"
>>> pyproj.network.is_network_enabled()
True |
This is certainly due to OSGeo/PROJ#3049 , but I don't consider that as a regression. Basically the effect of changing the value of PROJ_NETWORK after a PROJ context has been created is unspecified. Safer is to use set_network_enabled(False) as you did in #2397 |
Yep, after realizing it was only for the case after import pyproj (which initializes a context), fully agreed that this should not be expected to work. |
Since PROJ 9.0.0, our CI is reporting failures across environments due to some changes in precision during transformation. See the report https://github.com/geopandas/geopandas/runs/5504631593?check_suite_focus=true.
I didn't have time to debug this but we should have a look what is happening and likely adapt CI, if it is not caused by some underlying issue.
The text was updated successfully, but these errors were encountered: