Closed kamidzi closed 3 years ago
Hi, it should be fixed now and released as 0.10.5.1 on pypi. Pls let me know, thank you very much!
Thanks, though I think there are still some remaining issues:
$ pip show holidays
Name: holidays
Version: 0.10.5.1
Summary: Generate and work with holidays in Python
Home-page: https://github.com/dr-prodigy/python-holidays
Author: ryanss
Author-email: ryanssdev@icloud.com
License: MIT
Location: /Users/kamidzi/.pyenv/versions/3.6.9/lib/python3.6/site-packages
Requires: python-dateutil, six, convertdate, korean-lunar-calendar, hijri-converter
Required-by:
$ python -m holidays
Traceback (most recent call last):
File "/Users/kamidzi/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 183, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/Users/kamidzi/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 142, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/Users/kamidzi/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 109, in _get_module_details
__import__(pkg_name)
File "/Users/kamidzi/.pyenv/versions/3.6.9/lib/python3.6/site-packages/holidays/__init__.py", line 13, in <module>
from holidays.countries import *
File "/Users/kamidzi/.pyenv/versions/3.6.9/lib/python3.6/site-packages/holidays/countries/__init__.py", line 45, in <module>
from .israel import Israel, IL, ISR
File "/Users/kamidzi/.pyenv/versions/3.6.9/lib/python3.6/site-packages/holidays/countries/israel.py", line 16, in <module>
from convertdate.holidays import hanukkah, lag_baomer, passover, purim, \
ImportError: cannot import name 'lag_baomer'
This seems related to an old convertdate package (the name is present only from 2.3.0 on).
Not clear why the updated requirement is not enforced upon holidays update: in my last version I reviewed setup.py to require it:
install_requires=['python-dateutil', 'six', 'convertdate>=0.2.3', 'korean_lunar_calendar', 'hijri_converter'],
Could you please double-check?
Thanks
Right, updating convertdate
works. I think there is a typo in the install_requires
. I've sent you a PR.
Gawrsh!! I will fix and release again. So unlucky release tonight! :( Thx a lot
Hi, it is now fixed now and released as 0.10.5.2 on pypi. Thank you very much, closing this!
I see there was https://github.com/dr-prodigy/python-holidays/pull/380, but it seems the import still happens in https://github.com/dr-prodigy/python-holidays/blob/v0.10.5/holidays/utils.py.