Describe the bug
Running the package pandas_market_calendars with cudf results in the following crash:
│ /home/xxx/dev/xxx/venv/lib/python3.10/site-packages/exchange_calendars/exchange_calendar │
│ _xkrx.py:27 in <module> │
│ │
│ 26 from .precomputed_exchange_calendar import PrecomputedExchangeCalendar │
│ ❱ 27 from .xkrx_holidays import ( │
│ 28 │ krx_regular_holiday_rules, │
│ │
│ /home/xxx/dev/xxx/venv/lib/python3.10/site-packages/exchange_calendars/xkrx_holidays.py: │
│ 1125 in <module> │
│ │
│ 1124 # Korean regular holidays │
│ ❱ 1125 NewYearsDay = KoreanSolarHoliday( │
│ 1126 │ "New Years Day", month=1, day=1 │
│ │
│ /home/xxx/dev/xxx/venv/lib/python3.10/site-packages/exchange_calendars/pandas_extensions │
│ /holiday.py:53 in __init__ │
│ │
│ 52 │ │ self.tz = tz │
│ ❱ 53 │ │ if self.start_date is not None: │
│ 54 │ │ │ if self.tz is None and self.start_date.tz is not None: │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
AttributeError: 'KoreanSolarHoliday' object has no attribute 'start_date'
In this case KoreanSolarHoliday subclasses KoreanHoliday which subclasses Holiday which subclasses pd.Holiday. In this case the failure comes from accessing the start_date property. Upon inspecting the object that is created it seems to have one attribute which is an fsproxy_wrapped object but no start_date et al. I can somewhat get this fixed by doing the pattern of if hasattr(self, "start_date") and self.start_date is not None but this seems like I'm fixing the wrong issue and that it is likely to have other issues down the line.
Steps/Code to reproduce bug
I am using the following versions of the packages and running on cuda 11.5:
Describe the bug Running the package pandas_market_calendars with
cudf
results in the following crash:In this case
KoreanSolarHoliday
subclassesKoreanHoliday
which subclassesHoliday
which subclassespd.Holiday
. In this case the failure comes from accessing thestart_date
property. Upon inspecting the object that is created it seems to have one attribute which is anfsproxy_wrapped
object but nostart_date
et al. I can somewhat get this fixed by doing the pattern ofif hasattr(self, "start_date") and self.start_date is not None
but this seems like I'm fixing the wrong issue and that it is likely to have other issues down the line.Steps/Code to reproduce bug I am using the following versions of the packages and running on cuda 11.5:
I can reproduce by performing the following code:
Expected behavior I would expect this package to import without issue, as I cannot see an issue with the code within it.
Environment overview (please complete the following information)
Environment details
Additional context
I can't seem to reproduce this on a google colab instance unfortunately.