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 Fatal Python Error on OSX

 
  • 0 Vote(s) - 0 Average
knew4v5 Fatal Python Error on OSX
pkscout
Offline

Senior Member

USA
Posts: 464
Threads: 50
Joined: May 2014
#1
2019-04-07, 02:46 AM
I decided to give the new client a quick whirl, and even after migrating all my settings it wouldn't launch. Here's the error I got in the log:

Code:
2019-04-06 16:36:43.205 T:123145568874496   DEBUG: Reading Settings.xml
2019-04-06 16:36:43.217 T:123145568874496   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 41, in __init__
                                                xbmc.log(os.uname())
                                            TypeError: argument 1 must be string, not tuple

It looks like you're trying to log some uname information, but I think the log call on line 41 of XNEWA_Settings.py needs to be xbmc.log(os.uname()[4]) instead of xbmc.log(os.uname()) . When I changed it (or remarked out the log line), it works fine on OSX. Haven't tried with Windows or my OSMC boxes yet. That's up next.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,087
Threads: 957
Joined: May 2006
#2
2019-04-07, 02:57 AM
Yes I probably changed 100s of print statements to xbmc.log statements and removed just as many so I was expecting these kind of errors The error is pretty clear not sure why it isn't tripping up in Windows.

Martin
pkscout
Offline

Senior Member

USA
Posts: 464
Threads: 50
Joined: May 2014
#3
2019-04-07, 03:14 AM
mvallevand Wrote:Yes I probably changed 100s of print statements to xbmc.log statements and removed just as many so I was expecting these kind of errors The error is pretty clear not sure why it isn't tripping up in Windows.

Martin

I found this issue on python.org indicating that os.uname isn't supported on Windows.

https://bugs.python.org/issue008080

So the error isn't showing up on Windows because the test for the attributes existence fails. And the only time you're logging it right now is if the code uses os.uname(). The else statement in that test uses platform.uname() but doesn't try and log it.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,087
Threads: 957
Joined: May 2006
#4
2019-04-07, 03:28 AM
Yes I saw that when I was fixing the code, I am just taking the log line out I never used it anyway the kodi.log has enough info for me.

Martin
« 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,442 2020-01-18, 07:42 PM
Last Post: mvallevand
  Player Error jcole998 1 1,338 2019-11-25, 04:15 PM
Last Post: mvallevand
  X-NEWA 2.5.4 & knew4v5 2.6.6 both "Die" when pressing Previous Chapter in LE BrettB 3 2,933 2019-06-15, 01:33 AM
Last Post: mvallevand
  knew4v5 2.6.6 Testing BrettB 4 2,910 2019-04-14, 07:53 PM
Last Post: mvallevand
  knew4v5 2.6.3 Testing BrettB 18 6,170 2019-04-09, 02:35 AM
Last Post: BrettB
  knew4v5 2.6.1 Fatal Error on Windows and OSX When Loading pkscout 4 2,407 2019-04-07, 03:45 PM
Last Post: pkscout
  knew4v5 2.6.0 Testing BrettB 12 4,928 2019-04-07, 04:23 AM
Last Post: BrettB
  Error retrieving EPG data spider 4 2,851 2015-09-20, 08:31 PM
Last Post: mvallevand
  An error occurred [when setting up a recording] fuzzweed 6 3,864 2014-10-30, 01:57 PM
Last Post: fuzzweed
  "Unable to load NEWA data"-error Sheik Yerbouti 30 11,361 2014-10-29, 07:55 PM
Last Post: Sheik Yerbouti

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

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

Linear Mode
Threaded Mode