You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the issue, and for the extensive investigation! I will look into this and see what I can find. I anticipated the date code may result in some unexpected side effects, but nothing quite like this.
This is a short summary of a long battle with weird issues trying to integrate regopy into a project that (indirectly) uses greenlets.
Bug reproduction steps:
python version used:
Python 3.11.6
output:
full stacktrace:
I think issue comes down to:
regoSetTZDataPath(os.path.join(os.path.basename(__file__), "tzdata"))
-rego-cpp/wrappers/python/src/regopy/__init__.py
Line 36 in 756a920
date::set_install(path.string());
-rego-cpp/src/builtins/time.cc
Line 748 in 756a920
set_install(const std::string& install)
- https://github.com/HowardHinnant/date/blob/1a4f424659d39c2a222729bd2b1ccd8f857b3221/src/tz.cpp#L443The order in which the modules are imported does matter, which makes me think that greenlet initialization does something that
date
does not like.The issue seems to come up only in
greenlet>=2.0.0
andregopy>0.3.11
The text was updated successfully, but these errors were encountered: