Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Kodi crashes when using version 2.0.0 or higher #102

Open
matke-84 opened this issue Jun 26, 2023 · 1 comment
Open

[Bug] Kodi crashes when using version 2.0.0 or higher #102

matke-84 opened this issue Jun 26, 2023 · 1 comment

Comments

@matke-84
Copy link

I have been using version 1.1.5 for a long time because since version 2.0.0 I have a problem with Kodi crashing when using addons that use arrow. Yes I know, the answer will probably be, what does it have to do with skin shortcuts. But this happens at the moment I install the latest version 2.0.3 or any version since 2.0.0. The message is always the same and the Kodi crash happens. When I use version 1.1.5 everything is perfectly fine. What is this about? What is so different about version 2.0.0 when this happens?

2023-06-26 22:53:35.484 T:8380    error <general>: 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:\Users\Marko\AppData\Roaming\Kodi\addons\script.embuary.info\default.py", line 7, in <module>
                                                       from resources.lib.helper import *
                                                     File "C:\Users\Marko\AppData\Roaming\Kodi\addons\script.embuary.info\resources\lib\helper.py", line 15, in <module>
                                                       import arrow
                                                     File "C:\Users\Marko\AppData\Roaming\Kodi\addons\script.module.arrow\lib\arrow\__init__.py", line 2, in <module>
                                                       from .api import get, now, utcnow
                                                     File "C:\Users\Marko\AppData\Roaming\Kodi\addons\script.module.arrow\lib\arrow\api.py", line 12, in <module>
                                                       from arrow.arrow import TZ_EXPR, Arrow
                                                     File "C:\Users\Marko\AppData\Roaming\Kodi\addons\script.module.arrow\lib\arrow\arrow.py", line 34, in <module>
                                                       from arrow import formatter, locales, parser, util
                                                     File "C:\Users\Marko\AppData\Roaming\Kodi\addons\script.module.arrow\lib\arrow\parser.py", line 26, in <module>
                                                       from arrow.util import next_weekday, normalize_timestamp
                                                     File "C:\Users\Marko\AppData\Roaming\Kodi\addons\script.module.arrow\lib\arrow\util.py", line 6, in <module>
                                                       from arrow.constants import (
                                                     File "C:\Users\Marko\AppData\Roaming\Kodi\addons\script.module.arrow\lib\arrow\constants.py", line 16, in <module>
                                                       _MAX_TIMESTAMP = datetime.max.timestamp()
                                                   AttributeError: 'datetime.timedelta' object has no attribute 'timestamp'
                                                   -->End of Python script error report<--

2023-06-26 22:53:34.860 T:7540    error <general>: 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:\Users\Marko\AppData\Roaming\Kodi\addons\script.skin.helper.widgets\plugin.py", line 9, in <module>
                                                       import main
                                                     File "C:\Users\Marko\AppData\Roaming\Kodi\addons\script.skin.helper.widgets\resources\lib\main.py", line 17, in <module>
                                                       from metadatautils import MetadataUtils
                                                     File "C:\Users\Marko\AppData\Roaming\Kodi\addons\script.module.metadatautils\lib\metadatautils.py", line 10, in <module>
                                                       import helpers.kodi_constants as kodi_constants
                                                     File "C:\Users\Marko\AppData\Roaming\Kodi\addons\script.module.metadatautils\lib\helpers\kodi_constants.py", line 10, in <module>
                                                       from .utils import KODI_VERSION
                                                     File "C:\Users\Marko\AppData\Roaming\Kodi\addons\script.module.metadatautils\lib\helpers\utils.py", line 13, in <module>
                                                       import arrow
                                                     File "C:\Users\Marko\AppData\Roaming\Kodi\addons\script.module.arrow\lib\arrow\__init__.py", line 2, in <module>
                                                       from .api import get, now, utcnow
                                                     File "C:\Users\Marko\AppData\Roaming\Kodi\addons\script.module.arrow\lib\arrow\api.py", line 12, in <module>
                                                       from arrow.arrow import TZ_EXPR, Arrow
                                                     File "C:\Users\Marko\AppData\Roaming\Kodi\addons\script.module.arrow\lib\arrow\arrow.py", line 34, in <module>
                                                       from arrow import formatter, locales, parser, util
                                                     File "C:\Users\Marko\AppData\Roaming\Kodi\addons\script.module.arrow\lib\arrow\parser.py", line 26, in <module>
                                                       from arrow.util import next_weekday, normalize_timestamp
                                                     File "C:\Users\Marko\AppData\Roaming\Kodi\addons\script.module.arrow\lib\arrow\util.py", line 6, in <module>
                                                       from arrow.constants import (
                                                     File "C:\Users\Marko\AppData\Roaming\Kodi\addons\script.module.arrow\lib\arrow\constants.py", line 16, in <module>
                                                       _MAX_TIMESTAMP = datetime.max.timestamp()
                                                   AttributeError: 'datetime.timedelta' object has no attribute 'timestamp'
                                                   -->End of Python script error report<--
@matke-84
Copy link
Author

I also caught another bug.

2023-06-27 22:20:25.841 T:11384   error <general>: Traceback (most recent call last):
                                                   
2023-06-27 22:20:25.841 T:11384   error <general>: 
2023-06-27 22:20:25.841 T:11384   error <general>:   File "C:\Users\Marko\AppData\Roaming\Kodi\addons\script.skinshortcuts\resources\lib\skinshorcuts\library.py", line 1242, in playlists
                                                       xmldata = ETree.fromstring(contents_data)
                                                   
2023-06-27 22:20:25.841 T:11384   error <general>: 
2023-06-27 22:20:25.841 T:11384   error <general>:   File "C:\Program Files\Kodi\system\python\Lib\xml\etree\ElementTree.py", line 1320, in XML
                                                       parser.feed(text)
                                                   
2023-06-27 22:20:25.841 T:11384   error <general>: 
2023-06-27 22:20:25.841 T:11384   error <general>: xml.etree.ElementTree.ParseError: mismatched tag: line 15, column 2

Please see what this is all about. My skin, titan bingie mod, which is one of the most popular in the kodi community, cannot work without the skinshortcuts. Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant