holidays.countries.united_states not found

162 views
Skip to first unread message

Andrew Danneffel

unread,
May 31, 2023, 12:25:06 AM5/31/23
to Arelle-users
Hi Arelle experts,

Today we installed the latest version of the software to support the US GAAP 2023 taxonomy set. Based on our experience last time, we uninstalled the old version, deleted the residual files, and then rebooted the server before installing the new version using the installer exe.

Unfortunately we are receiving the following error when trying to validate a taxonomy set using the EdgarRenderer plugin:

[exception:ModuleNotFoundError] Instance validation exception: No module named 'holidays.countries.united_states', instance: _IXDS - Traceback (most recent call last): File "D:\a\Arelle\Arelle\arelle\Validate.py", line 109, in validate File "D:\a\Arelle\Arelle\arelle\ValidateXbrl.py", line 400, in validate File "C:\Program Files\Arelle\plugin\validate\EFM\__init__.py", line 258, in validateXbrlFinally validateFiling(val, modelXbrl, isEFM=True) File "C:\Program Files\Arelle\plugin\validate\EFM\Filing.py", line 95, in validateFiling upcomingSECHolidays = holidays.US(state=None, years=[datetimeNowAtSEC.year, datetimeNowAtSEC.year+1]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\hostedtoolcache\windows\Python\3.11.3\x64\Lib\site-packages\holidays\registry.py", line 182, in __call__ File "C:\hostedtoolcache\windows\Python\3.11.3\x64\Lib\site-packages\holidays\registry.py", line 201, in get_entity File "C:\hostedtoolcache\windows\Python\3.11.3\x64\Lib\importlib\__init__.py", line 126, in import_module File "<frozen importlib._bootstrap>", line 1206, in _gcd_import File "<frozen importlib._bootstrap>", line 1178, in _find_and_load File "<frozen importlib._bootstrap>", line 1142, in _find_and_load_unlocked ModuleNotFoundError: No module named 'holidays.countries.united_states'

The holidays.countries.united_states module is being flagged as missing. I can report that we tried this on a few other machines and had the same result. The machines in question are running Windows Server.

Suggestions? I am open to a short term hack if possible as we have a few filings we're trying to get out the door. I tried commenting out the part of the code in Filing.py that's calling the missing function but I'm guessing the software must be running a compiled version as it didn't seem to recognize the adjustment.

Regards,

Andrew

Austin Matherne

unread,
May 31, 2023, 12:47:31 PM5/31/23
to Arelle-users
Hi Andrew,

Thank you for reporting. There's a compatibility issue with the holidays dependency that was included in the release that went out this past Monday (2.10.4). We should have a fixed build released within the next hour (2.10.5).

Thanks again for bringing this to our attention!
Austin Matherne

Austin Matherne

unread,
May 31, 2023, 2:14:10 PM5/31/23
to Arelle-users
2.10.5 has been released. If you update this error should be resolved.

Andrew Danneffel

unread,
May 31, 2023, 5:01:20 PM5/31/23
to Arelle-users
Thank you, the team reports that the latest build resolves the issue.

PS - I was able to comment out the code calling the missing function and get the old version to work. I needed to restart the software though for it to take effect. Obviously, best if the module imports!

Andrew
Reply all
Reply to author
Forward
0 new messages