Python arrow library packed for Kodi.
razzeee / script.module.arrow Goto Github PK
View Code? Open in Web Editor NEWPython arrow library packed for Kodi.
License: Other
Python arrow library packed for Kodi.
License: Other
Python arrow library packed for Kodi.
Hi! Thanks for your work in this script! I’m a Kodi skinner and make use of an addon named script.embuary.info in my skin Aeon Tajo. This addon uses your module and it keeps throwing errors as follows…
EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'AttributeError'>
Error Contents: 'datetime.timedelta' object has no attribute 'timestamp'
Traceback (most recent call last):
File "C:\Matrix2\portable_data\addons\script.embuary.info\plugin.py", line 5, in
from resources.lib.widgets import *
File "C:\Matrix2\portable_data\addons\script.embuary.info\resources\lib\widgets.py", line 11, in
from resources.lib.helper import *
File "C:\Matrix2\portable_data\addons\script.embuary.info\resources\lib\helper.py", line 15, in
import arrow
File "C:\Matrix2\portable_data\addons\script.module.arrow\lib\arrow_init_.py", line 2, in
from .api import get, now, utcnow
File "C:\Matrix2\portable_data\addons\script.module.arrow\lib\arrow\api.py", line 12, in
from arrow.arrow import TZ_EXPR, Arrow
File "C:\Matrix2\portable_data\addons\script.module.arrow\lib\arrow\arrow.py", line 34, in
from arrow import formatter, locales, parser, util
File "C:\Matrix2\portable_data\addons\script.module.arrow\lib\arrow\parser.py", line 26, in
from arrow.util import next_weekday, normalize_timestamp
File "C:\Matrix2\portable_data\addons\script.module.arrow\lib\arrow\util.py", line 6, in
from arrow.constants import (
File "C:\Matrix2\portable_data\addons\script.module.arrow\lib\arrow\constants.py", line 16, in
_MAX_TIMESTAMP = datetime.max.timestamp()
AttributeError: 'datetime.timedelta' object has no attribute 'timestamp'
-->End of Python script error report<--
INFO : Python interpreter stopped
INFO : initializing python engine.
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: 'datetime.timedelta' object has no attribute 'tzinfo'
Traceback (most recent call last):
File "C:\Matrix2\portable_data\addons\script.embuary.info\plugin.py", line 5, in
from resources.lib.widgets import *
File "C:\Matrix2\portable_data\addons\script.embuary.info\resources\lib\widgets.py", line 11, in
from resources.lib.helper import *
File "C:\Matrix2\portable_data\addons\script.embuary.info\resources\lib\helper.py", line 15, in
import arrow
File "C:\Matrix2\portable_data\addons\script.module.arrow\lib\arrow_init_.py", line 2, in
from .api import get, now, utcnow
File "C:\Matrix2\portable_data\addons\script.module.arrow\lib\arrow\api.py", line 12, in
from arrow.arrow import TZ_EXPR, Arrow
File "C:\Matrix2\portable_data\addons\script.module.arrow\lib\arrow\arrow.py", line 1703, in
Arrow.min = Arrow.fromdatetime(dt_datetime.min)
File "C:\Matrix2\portable_data\addons\script.module.arrow\lib\arrow\arrow.py", line 318, in fromdatetime
if dt.tzinfo is None:
AttributeError: 'datetime.timedelta' object has no attribute 'tzinfo'
-->End of Python script error report<--
…I told it to embuary’s author, but it says there’s nothing he can do. The funny thing is that some users using Linux or Android say that they have no errors, but Windows users like myself do…
Thanks in advance for your help!
Hi,
script.module.arrow\lib\arrow\parser.py is throwing an error that the python module "backports.functools_lru_cache" could not be found.
Had the error with Kodi 18.1 and now with 18.5
2019-12-14 17:23:44.163 T:7024 NOTICE: Starting Kodi (18.5 Git:20191116-37f51f6e63). Platform: Windows NT x86 64-bit
2019-12-14 17:23:44.163 T:7024 NOTICE: Using Release Kodi x64 build
2019-12-14 17:23:44.163 T:7024 NOTICE: Kodi compiled 2019-11-16 by MSVC 191627034 for Windows NT x86 64-bit version 10.0 (0x0A000006)
2019-12-14 17:23:44.163 T:7024 NOTICE: Running on Windows 10, kernel: Windows NT x86 64-bit version 10.0.18362
I'm using the latest version of script.module.arrow which should be 0.15.4. The issue existed also with 0.12.1
Part of the log with the python callback:
2019-12-14 17:23:57.542 T:11640 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <type 'exceptions.ImportError'> Error Contents: No module named backports.functools_lru_cache Traceback (most recent call last): File "C:\Users\KODI\AppData\Roaming\Kodi\addons\script.skin.helper.widgets\plugin.py", line 9, in <module> import main File "C:\Users\KODI\AppData\Roaming\Kodi\addons\script.skin.helper.widgets\resources\lib\main.py", line 17, in <module> from metadatautils import MetadataUtils File "C:\Users\KODI\AppData\Roaming\Kodi\addons\script.module.metadatautils\lib\metadatautils.py", line 9, in <module> import helpers.kodi_constants as kodi_constants File "C:\Users\KODI\AppData\Roaming\Kodi\addons\script.module.metadatautils\lib\helpers\kodi_constants.py", line 9, in <module> from utils import KODI_VERSION File "C:\Users\KODI\AppData\Roaming\Kodi\addons\script.module.metadatautils\lib\helpers\utils.py", line 13, in <module> import arrow File "C:\Users\KODI\AppData\Roaming\Kodi\addons\script.module.arrow\lib\arrow\__init__.py", line 3, in <module> from .api import get, now, utcnow File "C:\Users\KODI\AppData\Roaming\Kodi\addons\script.module.arrow\lib\arrow\api.py", line 10, in <module> from arrow.factory import ArrowFactory File "C:\Users\KODI\AppData\Roaming\Kodi\addons\script.module.arrow\lib\arrow\factory.py", line 18, in <module> from arrow import parser File "C:\Users\KODI\AppData\Roaming\Kodi\addons\script.module.arrow\lib\arrow\parser.py", line 15, in <module> from backports.functools_lru_cache import lru_cache # pragma: no cover ImportError: No module named backports.functools_lru_cache -->End of Python script error report<--
Because python is integrated in Kodi I cannot run a fix, which seems to work with normal python installations:
https://stackoverflow.com/questions/47179433/python-2-7-functools-lru-cache-does-not-import-although-installed
Maybe you have an idea how to solve this issue?
Thanks in advance.
BR Nano
Kodi 19 rpi4
I have this problem since yesterday
script.module.arrow/lib/arrow/locales.py", line 19, in
from typing_extensions import Literal
ModuleNotFoundError: No module named 'typing_extensions'
can you help me?
thank you
Can you bump to a more recent Arrow version?
Current version crashes randomly in latest Kodi 19 nightlies (using Python3)
File "C:\Users\Matt\AppData\Roaming\Kodi\Nightly\portable_data\addons\script.module.arrow\lib\arrow\arrow.py", line 131, in fromdatetime
tzinfo = tzinfo or dt.tzinfo or dateutil_tz.tzutc()
AttributeError: 'bytes' object has no attribute 'tzinfo'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.