sakurai-youhei / python-shukujitsu

Python Japanese holidays library based on static data published by Cabinet Office, Government of Japan
MIT License
0 stars 0 forks source link

AttributeError: decode on Brython #6

Closed sakurai-youhei closed 3 years ago

sakurai-youhei commented 3 years ago
>>> shukujitsu.data.load_bin()
Traceback (most recent call last):
  File VFS.shukujitsu.asof20201127/__init__.py, line 5, in <module>
    TXT=BIN.decode("cp932")
AttributeError: decode
sakurai-youhei commented 3 years ago

Root cause: pkgutil.get_data(...) may return None.

https://docs.python.org/3/library/pkgutil.html#pkgutil.get_data