NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Kodi / XBMC X-NEWA v
« Previous 1 2 3 4 5 6 … 13 Next »
knew4v5 2.6.1 Fatal Error on Windows and OSX When Loading

 
  • 0 Vote(s) - 0 Average
knew4v5 2.6.1 Fatal Error on Windows and OSX When Loading
pkscout
Offline

Senior Member

USA
Posts: 464
Threads: 50
Joined: May 2014
#1
2019-04-07, 03:28 AM
OK, I don't know if you want all these in separate threads or just one big thread of testing problems, let me know. I just got 2.6.1 on my Windows machine, and it wasn't launching. Different error than my issue on OSX, so I downloaded 2.6.1 on my Mac, fixed the os.uname() thing, and got the same error I'm getting on my Windows machine.

Code:
2019-04-06 16:59:29.121 T:123145568337920   DEBUG: EXCEPTION: : Traceback (most recent call last):
                                              File "/Users/pkscout/Library/Application Support/Kodi/addons/script.kodi.knew4v5/default.py", line 45, in <module>
                                                my_settings = XNEWA_Settings()
                                              File "/Users/pkscout/Library/Application Support/Kodi/addons/script.kodi.knew4v5/resources/src/XNEWA_Settings.py", line 54, in __init__
                                                self.loadFromSettingsXML()
                                              File "/Users/pkscout/Library/Application Support/Kodi/addons/script.kodi.knew4v5/resources/src/XNEWA_Settings.py", line 81, in loadFromSettingsXML
                                                self.XNEWA_PREBUFFER = addon.getSetting("prebuffer") // 4
                                            TypeError: unsupported operand type(s) for //: 'str' and 'int'

I fixed the error by changing lines 81 and 82 of XNEWA_Settings.py to read:

Code:
self.XNEWA_PREBUFFER = int(addon.getSetting("prebuffer")) // 4
        self.XNEWA_POSTBUFFER = int(addon.getSetting("postbuffer")) // 4

I honestly don't know if that's the best way to handle that, but it is consistent with what you were doing with converting other settings to ints. If you keep generating errors this fast I won't ever get around to testing on OSMC. '-)
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,849
Threads: 954
Joined: May 2006
#2
2019-04-07, 03:51 AM
Ok got that, they were defined in settings.xml as int but I guess Kodi returns strings.

2.6.3 is the last one for tonight's work thanks for the help.

Martin
pkscout
Offline

Senior Member

USA
Posts: 464
Threads: 50
Joined: May 2014
#3
2019-04-07, 04:00 AM
Yup, Kodi has always (annoyingly) returned settings as strings. For Kodi 18 there are new python options for returning settings as specific types (ints and bools mostly), but if you use them then the addon isn't backward compatible with Kodi 17 or earlier. I know for my addons I'm going to wait to convert all my settings until I do an update that for some other reason is going to be v18+ only.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,849
Threads: 954
Joined: May 2006
#4
2019-04-07, 04:06 AM
Yes one day when knew4v5 becomes just knew5 I will drop a lot of transition support for NextPVR and Kodi, that's why I need so much testing support.

One of the modules I changed tonight was your fix_utf8.py file if you change it differently let me know.

Martin
pkscout
Offline

Senior Member

USA
Posts: 464
Threads: 50
Joined: May 2014
#5
2019-04-07, 03:45 PM
I'll certainly let you know. Honestly I got most of that from Stack Overflow, so I'm not even 100% sure how it works. '-)
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Install Error? jcole998 1 1,390 2020-01-18, 07:42 PM
Last Post: mvallevand
  Player Error jcole998 1 1,278 2019-11-25, 04:15 PM
Last Post: mvallevand
  Loading the Guide jcole998 3 1,727 2019-11-24, 10:09 PM
Last Post: mvallevand
  X-NEWA 2.5.4 & knew4v5 2.6.6 both "Die" when pressing Previous Chapter in LE BrettB 3 2,857 2019-06-15, 01:33 AM
Last Post: mvallevand
  knew4v5 2.6.6 Testing BrettB 4 2,847 2019-04-14, 07:53 PM
Last Post: mvallevand
  knew4v5 2.6.3 Testing BrettB 18 5,992 2019-04-09, 02:35 AM
Last Post: BrettB
  knew4v5 2.6.0 Testing BrettB 12 4,804 2019-04-07, 04:23 AM
Last Post: BrettB
  knew4v5 Fatal Python Error on OSX pkscout 3 2,220 2019-04-07, 03:28 AM
Last Post: mvallevand
  Error retrieving EPG data spider 4 2,763 2015-09-20, 08:31 PM
Last Post: mvallevand
  An error occurred [when setting up a recording] fuzzweed 6 3,709 2014-10-30, 01:57 PM
Last Post: fuzzweed

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode