2019-12-22, 22:50
I am migrating skin.helper.service.widgets, and I am running into this issue with arrow:
I am using the latest arrow version, 0.15.5. Any ideas? Thank you for any help provided.
Regards,
Bart
xml:
2019-12-22 16:46:30.300 T:17192 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'AttributeError'>
Error Contents: 'bytes' object has no attribute 'tzinfo'
Traceback (most recent call last):
File "C:\Program Files\Kodi\addons\script.skin.helper.widgets\plugin.py", line 9, in <module>
import main
File "C:\Program Files\Kodi\addons\script.skin.helper.widgets\resources\lib\main.py", line 17, in <module>
from metadatautils import MetadataUtils
File "C:\Program Files\Kodi\addons\script.module.metadatautils\lib\metadatautils.py", line 9, in <module>
import helpers.kodi_constants as kodi_constants
File "C:\Program Files\Kodi\addons\script.module.metadatautils\lib\helpers\kodi_constants.py", line 9, in <module>
from .utils import KODI_VERSION
File "C:\Program Files\Kodi\addons\script.module.metadatautils\lib\helpers\utils.py", line 13, in <module>
import arrow
File "C:\Program Files\Kodi\addons\script.module.arrow\lib\arrow\__init__.py", line 3, in <module>
from .api import get, now, utcnow
File "C:\Program Files\Kodi\addons\script.module.arrow\lib\arrow\api.py", line 10, in <module>
from arrow.factory import ArrowFactory
File "C:\Program Files\Kodi\addons\script.module.arrow\lib\arrow\factory.py", line 19, in <module>
from arrow.arrow import Arrow
File "C:\Program Files\Kodi\addons\script.module.arrow\lib\arrow\arrow.py", line 1396, in <module>
Arrow.max = Arrow.fromdatetime(datetime.max)
File "C:\Program Files\Kodi\addons\script.module.arrow\lib\arrow\arrow.py", line 217, in fromdatetime
if dt.tzinfo is None:
AttributeError: 'bytes' object has no attribute 'tzinfo'
-->End of Python script error report<--
I am using the latest arrow version, 0.15.5. Any ideas? Thank you for any help provided.
Regards,
Bart