2012-12-01, 09:58
Hi all,
Not sure if I'm posting this in the right place, but I'm having problems with my music library - for sometime I was getting this error "Python script error" on load, and then randomly when watching something. Here are snips from my log file:
Here's my rig info:
13:00:58 T:1564 NOTICE: -----------------------------------------------------------------------
13:00:58 T:1564 NOTICE: Starting XBMC (12.0-BETA1 Git:20121116-f7dc858), Platform: Windows 7 SP1 64-bit, build 7601. Built on Nov 15 2012 (compiler 1600)
13:00:58 T:1564 NOTICE: Intel® Core i3-2100 CPU @ 3.10GHz
13:00:58 T:1564 NOTICE: Desktop Resolution: 1360x768 32Bit at 60Hz
13:00:58 T:1564 NOTICE: Running with restricted rights
13:00:58 T:1564 NOTICE: Aero is enabled
13:00:58 T:1564 NOTICE: special://xbmc/ is mapped to: C:\Program Files (x86)\XBMC
13:00:58 T:1564 NOTICE: special://xbmcbin/ is mapped to: C:\Program Files (x86)\XBMC
13:00:58 T:1564 NOTICE: special://masterprofile/ is mapped to: C:\Users\HTPC\AppData\Roaming\XBMC\userdata
13:00:58 T:1564 NOTICE: special://home/ is mapped to: C:\Users\HTPC\AppData\Roaming\XBMC\
13:00:58 T:1564 NOTICE: special://temp/ is mapped to: C:\Users\HTPC\AppData\Roaming\XBMC\cache
13:00:58 T:1564 NOTICE: The executable running is: C:\Program Files (x86)\XBMC\XBMC.exe
13:00:58 T:1564 NOTICE: Local hostname: HTPC-PC
13:00:58 T:1564 NOTICE: Log File is located: C:\Users\HTPC\AppData\Roaming\XBMC\xbmc.log
13:00:58 T:1564 NOTICE: -----------------------------------------------------------------------
Located the error here in the log report at start-up:
14:01:02 T:5100 DEBUG: JSONRPC: Calling videolibrary.getepisodes
14:01:02 T:5100 DEBUG: CVideoDatabase::RunQuery took 86 ms for 3958 items query: select * from episodeview
14:01:05 T:5100 DEBUG: JSONRPC: Incoming request: {"jsonrpc": "2.0", "method": "VideoLibrary.GetMusicVideos", "params": {"properties": ["title", "artist", "playcount", "year", "plot", "runtime", "fanart", "thumbnail", "file"] }, "id": 1}
14:01:05 T:5100 DEBUG: JSONRPC: Calling videolibrary.getmusicvideos
14:01:05 T:5100 DEBUG: CVideoDatabase::RunQuery took 0 ms for 0 items query: select * from musicvideoview
14:01:05 T:5100 DEBUG: JSONRPC: Incoming request: {"jsonrpc": "2.0", "method": "AudioLibrary.GetAlbums", "params": {"properties": ["title", "description", "artist", "year", "thumbnail", "fanart", "rating"] }, "id": 1}
14:01:05 T:5100 DEBUG: JSONRPC: Calling audiolibrary.getalbums
14:01:05 T:5100 DEBUG: CMusicDatabase::GetAlbumsByWhere query: SELECT albumview.* FROM albumview WHERE albumview.strAlbum <> ''
14:01:05 T:5100 DEBUG: CMusicDatabase::GetAlbumsByWhere - query took 13 ms
14:01:05 T:5100 ERROR: EXCEPTION: argument "value" for method "setProperty" must be unicode or str
14:01:05 T:5100 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.TypeError'>
Error Contents: argument "value" for method "setProperty" must be unicode or str
Traceback (most recent call last):
File "C:\Users\HTPC\AppData\Roaming\XBMC\addons\script.randomitems\RandomItems.py", line 431, in <module>
Main()
File "C:\Users\HTPC\AppData\Roaming\XBMC\addons\script.randomitems\RandomItems.py", line 80, in __init__
self._fetch_album_info()
File "C:\Users\HTPC\AppData\Roaming\XBMC\addons\script.randomitems\RandomItems.py", line 266, in _fetch_album_info
self.WINDOW.setProperty( "RandomAlbum.%d.Artist" % ( count ), artist )
TypeError: argument "value" for method "setProperty" must be unicode or str
-->End of Python script error report<--
14:01:05 T:1564 DEBUG: ------ Window Init (DialogKaiToast.xml) ------
14:01:05 T:5100 INFO: Python script stopped
14:01:05 T:5100 DEBUG: Thread XBPyThread 5100 terminating
14:01:05 T:1564 DEBUG: waiting for python thread 11 to stop
14:01:05 T:1564 DEBUG: python thread 11 destructed
And then again here:
13:01:03 T:6676 NOTICE: [StorageServer-1.3.0] run : 'Idle for 3 seconds. Going to sleep. zzzzzzzz '
13:01:04 T:2388 DEBUG: JSONRPC: Incoming request: {"jsonrpc": "2.0", "method": "VideoLibrary.GetMusicVideos", "params": {"properties": ["title", "artist", "playcount", "year", "plot", "runtime", "fanart", "thumbnail", "file"] }, "id": 1}
13:01:04 T:2388 DEBUG: JSONRPC: Calling videolibrary.getmusicvideos
13:01:04 T:2388 DEBUG: CVideoDatabase::RunQuery took 0 ms for 0 items query: select * from musicvideoview
13:01:04 T:2388 DEBUG: JSONRPC: Incoming request: {"jsonrpc": "2.0", "method": "AudioLibrary.GetAlbums", "params": {"properties": ["title", "description", "artist", "year", "thumbnail", "fanart", "rating"] }, "id": 1}
13:01:04 T:2388 DEBUG: JSONRPC: Calling audiolibrary.getalbums
13:01:04 T:2388 DEBUG: CMusicDatabase::GetAlbumsByWhere query: SELECT albumview.* FROM albumview WHERE albumview.strAlbum <> ''
13:01:04 T:2388 DEBUG: CMusicDatabase::GetAlbumsByWhere - query took 9 ms
13:01:04 T:1564 DEBUG: CWinEventsWin32::WndProc: window move event
13:01:04 T:2388 DEBUG: Previous line repeats 26 times.
13:01:04 T:2388 ERROR: EXCEPTION: argument "value" for method "setProperty" must be unicode or str
13:01:04 T:2388 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.TypeError'>
Error Contents: argument "value" for method "setProperty" must be unicode or str
Traceback (most recent call last):
File "C:\Users\HTPC\AppData\Roaming\XBMC\addons\script.randomitems\RandomItems.py", line 431, in <module>
Main()
File "C:\Users\HTPC\AppData\Roaming\XBMC\addons\script.randomitems\RandomItems.py", line 80, in __init__
self._fetch_album_info()
File "C:\Users\HTPC\AppData\Roaming\XBMC\addons\script.randomitems\RandomItems.py", line 266, in _fetch_album_info
self.WINDOW.setProperty( "RandomAlbum.%d.Artist" % ( count ), artist )
TypeError: argument "value" for method "setProperty" must be unicode or str
-->End of Python script error report<--
13:01:04 T:2388 INFO: Python script stopped
13:01:04 T:2388 DEBUG: Thread XBPyThread 2388 terminating
13:01:04 T:1564 DEBUG: CWinEventsWin32::WndProc: window move event
Now, I deleted my music library, and the error has GONE! I'm not particularly fussed if this gets solved, as I am not using XBMC for music, but thought I would post in case others had the same problem. My thoughts over possible causes - the script has an error; or it is a reflection of having songs with Chinese scripts in their name.
Not sure if I'm posting this in the right place, but I'm having problems with my music library - for sometime I was getting this error "Python script error" on load, and then randomly when watching something. Here are snips from my log file:
Here's my rig info:
13:00:58 T:1564 NOTICE: -----------------------------------------------------------------------
13:00:58 T:1564 NOTICE: Starting XBMC (12.0-BETA1 Git:20121116-f7dc858), Platform: Windows 7 SP1 64-bit, build 7601. Built on Nov 15 2012 (compiler 1600)
13:00:58 T:1564 NOTICE: Intel® Core i3-2100 CPU @ 3.10GHz
13:00:58 T:1564 NOTICE: Desktop Resolution: 1360x768 32Bit at 60Hz
13:00:58 T:1564 NOTICE: Running with restricted rights
13:00:58 T:1564 NOTICE: Aero is enabled
13:00:58 T:1564 NOTICE: special://xbmc/ is mapped to: C:\Program Files (x86)\XBMC
13:00:58 T:1564 NOTICE: special://xbmcbin/ is mapped to: C:\Program Files (x86)\XBMC
13:00:58 T:1564 NOTICE: special://masterprofile/ is mapped to: C:\Users\HTPC\AppData\Roaming\XBMC\userdata
13:00:58 T:1564 NOTICE: special://home/ is mapped to: C:\Users\HTPC\AppData\Roaming\XBMC\
13:00:58 T:1564 NOTICE: special://temp/ is mapped to: C:\Users\HTPC\AppData\Roaming\XBMC\cache
13:00:58 T:1564 NOTICE: The executable running is: C:\Program Files (x86)\XBMC\XBMC.exe
13:00:58 T:1564 NOTICE: Local hostname: HTPC-PC
13:00:58 T:1564 NOTICE: Log File is located: C:\Users\HTPC\AppData\Roaming\XBMC\xbmc.log
13:00:58 T:1564 NOTICE: -----------------------------------------------------------------------
Located the error here in the log report at start-up:
14:01:02 T:5100 DEBUG: JSONRPC: Calling videolibrary.getepisodes
14:01:02 T:5100 DEBUG: CVideoDatabase::RunQuery took 86 ms for 3958 items query: select * from episodeview
14:01:05 T:5100 DEBUG: JSONRPC: Incoming request: {"jsonrpc": "2.0", "method": "VideoLibrary.GetMusicVideos", "params": {"properties": ["title", "artist", "playcount", "year", "plot", "runtime", "fanart", "thumbnail", "file"] }, "id": 1}
14:01:05 T:5100 DEBUG: JSONRPC: Calling videolibrary.getmusicvideos
14:01:05 T:5100 DEBUG: CVideoDatabase::RunQuery took 0 ms for 0 items query: select * from musicvideoview
14:01:05 T:5100 DEBUG: JSONRPC: Incoming request: {"jsonrpc": "2.0", "method": "AudioLibrary.GetAlbums", "params": {"properties": ["title", "description", "artist", "year", "thumbnail", "fanart", "rating"] }, "id": 1}
14:01:05 T:5100 DEBUG: JSONRPC: Calling audiolibrary.getalbums
14:01:05 T:5100 DEBUG: CMusicDatabase::GetAlbumsByWhere query: SELECT albumview.* FROM albumview WHERE albumview.strAlbum <> ''
14:01:05 T:5100 DEBUG: CMusicDatabase::GetAlbumsByWhere - query took 13 ms
14:01:05 T:5100 ERROR: EXCEPTION: argument "value" for method "setProperty" must be unicode or str
14:01:05 T:5100 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.TypeError'>
Error Contents: argument "value" for method "setProperty" must be unicode or str
Traceback (most recent call last):
File "C:\Users\HTPC\AppData\Roaming\XBMC\addons\script.randomitems\RandomItems.py", line 431, in <module>
Main()
File "C:\Users\HTPC\AppData\Roaming\XBMC\addons\script.randomitems\RandomItems.py", line 80, in __init__
self._fetch_album_info()
File "C:\Users\HTPC\AppData\Roaming\XBMC\addons\script.randomitems\RandomItems.py", line 266, in _fetch_album_info
self.WINDOW.setProperty( "RandomAlbum.%d.Artist" % ( count ), artist )
TypeError: argument "value" for method "setProperty" must be unicode or str
-->End of Python script error report<--
14:01:05 T:1564 DEBUG: ------ Window Init (DialogKaiToast.xml) ------
14:01:05 T:5100 INFO: Python script stopped
14:01:05 T:5100 DEBUG: Thread XBPyThread 5100 terminating
14:01:05 T:1564 DEBUG: waiting for python thread 11 to stop
14:01:05 T:1564 DEBUG: python thread 11 destructed
And then again here:
13:01:03 T:6676 NOTICE: [StorageServer-1.3.0] run : 'Idle for 3 seconds. Going to sleep. zzzzzzzz '
13:01:04 T:2388 DEBUG: JSONRPC: Incoming request: {"jsonrpc": "2.0", "method": "VideoLibrary.GetMusicVideos", "params": {"properties": ["title", "artist", "playcount", "year", "plot", "runtime", "fanart", "thumbnail", "file"] }, "id": 1}
13:01:04 T:2388 DEBUG: JSONRPC: Calling videolibrary.getmusicvideos
13:01:04 T:2388 DEBUG: CVideoDatabase::RunQuery took 0 ms for 0 items query: select * from musicvideoview
13:01:04 T:2388 DEBUG: JSONRPC: Incoming request: {"jsonrpc": "2.0", "method": "AudioLibrary.GetAlbums", "params": {"properties": ["title", "description", "artist", "year", "thumbnail", "fanart", "rating"] }, "id": 1}
13:01:04 T:2388 DEBUG: JSONRPC: Calling audiolibrary.getalbums
13:01:04 T:2388 DEBUG: CMusicDatabase::GetAlbumsByWhere query: SELECT albumview.* FROM albumview WHERE albumview.strAlbum <> ''
13:01:04 T:2388 DEBUG: CMusicDatabase::GetAlbumsByWhere - query took 9 ms
13:01:04 T:1564 DEBUG: CWinEventsWin32::WndProc: window move event
13:01:04 T:2388 DEBUG: Previous line repeats 26 times.
13:01:04 T:2388 ERROR: EXCEPTION: argument "value" for method "setProperty" must be unicode or str
13:01:04 T:2388 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.TypeError'>
Error Contents: argument "value" for method "setProperty" must be unicode or str
Traceback (most recent call last):
File "C:\Users\HTPC\AppData\Roaming\XBMC\addons\script.randomitems\RandomItems.py", line 431, in <module>
Main()
File "C:\Users\HTPC\AppData\Roaming\XBMC\addons\script.randomitems\RandomItems.py", line 80, in __init__
self._fetch_album_info()
File "C:\Users\HTPC\AppData\Roaming\XBMC\addons\script.randomitems\RandomItems.py", line 266, in _fetch_album_info
self.WINDOW.setProperty( "RandomAlbum.%d.Artist" % ( count ), artist )
TypeError: argument "value" for method "setProperty" must be unicode or str
-->End of Python script error report<--
13:01:04 T:2388 INFO: Python script stopped
13:01:04 T:2388 DEBUG: Thread XBPyThread 2388 terminating
13:01:04 T:1564 DEBUG: CWinEventsWin32::WndProc: window move event
Now, I deleted my music library, and the error has GONE! I'm not particularly fussed if this gets solved, as I am not using XBMC for music, but thought I would post in case others had the same problem. My thoughts over possible causes - the script has an error; or it is a reflection of having songs with Chinese scripts in their name.