Okay, I reported the bug in the thread you suggested, but was told this isn't a script error, that there is a problem with a smart playlist. I never created any smart playlists, at least not knowingly. What I did create was custom menu items that point to a video folder. Last night I created two more, and now when I start XBMC I notice in the log that this randomandlastitems.py is being generated for all three of the custom menu entries. They directed me back to this thread. Any ideas on what is happening? Here is the debug log code. Oh, and I get this error on start up or every time I update the library.
Code:
07:13:41 T:1732 DEBUG: CApplication::ExecuteXBMCAction : To SetFocus(11)
07:13:41 T:4360 INFO: Caching image from: http://thetvdb.com/banners/episodes/256227/4332141.jpg to special://masterprofile/Thumbnails/Video/6/6f6bc2cc.tbn with width 512 and height 512
07:13:41 T:4360 DEBUG: FileCurl::Open(0C39CC48) http://thetvdb.com/banners/episodes/256227/4332141.jpg
07:13:41 T:4360 INFO: XCURL::DllLibCurlGlobal::easy_aquire - Created session to http://thetvdb.com
07:13:42 T:2476 INFO: -->Python script returned the following error<--
07:13:42 T:2476 ERROR: Error Type: <type 'exceptions.IOError'>
07:13:42 T:2476 ERROR: Error Contents: (2, 'No such file or directory', 'plugin.video.youtube')
07:13:42 T:6108 INFO: -->Python script returned the following error<--
07:13:42 T:6108 ERROR: Error Type: <type 'exceptions.IOError'>
07:13:42 T:6108 ERROR: Error Contents: (22, "invalid mode ('rb') or filename", 'ActivateWindow(videos,K:\\Videos 7\\Kids Movies\\,return)')
07:13:42 T:4304 INFO: -->Python script returned the following error<--
07:13:42 T:4304 ERROR: Error Type: <type 'exceptions.IOError'>
07:13:42 T:4304 ERROR: Error Contents: (22, "invalid mode ('rb') or filename", 'ActivateWindow(videos,K:\\Video Camera\\,return)')
07:13:42 T:4652 INFO: -->Python script returned the following error<--
07:13:42 T:4652 ERROR: Error Type: <type 'exceptions.IOError'>
07:13:42 T:4652 ERROR: Error Contents: (22, "invalid mode ('rb') or filename", "ActivateWindow(videos,K:\\Videos 7\\Christine's TV\\,return)")
07:13:42 T:4784 DEBUG: ### TV Show - Next Aired starting ...
07:13:42 T:4784 DEBUG: ### author: Ppic, Frost, ronie, `Black
07:13:42 T:4784 DEBUG: ### version: 4.1.20
07:13:42 T:4784 DEBUG: ### dateformat: %m/%d/%y
07:13:42 T:4784 DEBUG: ### params: {'silent': 'True'}
07:13:42 T:4784 DEBUG: ### db more than 24h old, rescanning...
07:13:42 T:4784 DEBUG: JSONRPC: Incoming request: {"jsonrpc": "2.0", "method": "VideoLibrary.GetTVShows", "params": {"properties": ["title", "file", "thumbnail", "fanart"], "sort": { "method": "title" } }, "id": 1}
07:13:42 T:4784 DEBUG: JSONRPC: Calling videolibrary.gettvshows
07:13:42 T:1732 DEBUG: CApplication::ExecuteXBMCAction : Translating SetFocus(11)
07:13:42 T:1732 DEBUG: CApplication::ExecuteXBMCAction : To SetFocus(11)
07:13:42 T:4784 DEBUG: CVideoDatabase::RunQuery took 212 ms for 66 items query: SELECT * FROM tvshowview
07:13:42 T:2476 ERROR: Traceback (most recent call last):
File "C:\Users\Matt\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlastitems.py", line 607, in <module>
_parse_argv()
File "C:\Users\Matt\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlastitems.py", line 601, in _parse_argv
_getPlaylistType ();
File "C:\Users\Matt\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlastitems.py", line 47, in _getPlaylistType
_doc = parse(xbmc.translatePath(PLAYLIST))
File "C:\Program Files\XBMC\system\python\Lib\xml\dom\minidom.py", line 1918, in parse
return expatbuilder.parse(file)
File "C:\Program Files\XBMC\system\python\Lib\xml\dom\expatbuilder.py", line 922, in parse
fp = open(file, 'rb')
IOError: (2, 'No such file or directory', 'plugin.video.youtube')
07:13:42 T:2476 INFO: -->End of Python script error report<--
07:13:42 T:4304 ERROR: Traceback (most recent call last):
File "C:\Users\Matt\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlastitems.py", line 607, in <module>
_parse_argv()
File "C:\Users\Matt\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlastitems.py", line 601, in _parse_argv
_getPlaylistType ();
File "C:\Users\Matt\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlastitems.py", line 47, in _getPlaylistType
_doc = parse(xbmc.translatePath(PLAYLIST))
File "C:\Program Files\XBMC\system\python\Lib\xml\dom\minidom.py", line 1918, in parse
return expatbuilder.parse(file)
File "C:\Program Files\XBMC\system\python\Lib\xml\dom\expatbuilder.py", line 922, in parse
fp = open(file, 'rb')
IOError: (22, "invalid mode ('rb') or filename", 'ActivateWindow(videos,K:\\Video Camera\\,return)')
07:13:42 T:4304 INFO: -->End of Python script error report<--
07:13:42 T:6108 ERROR: Traceback (most recent call last):
File "C:\Users\Matt\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlastitems.py", line 607, in <module>
_parse_argv()
File "C:\Users\Matt\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlastitems.py", line 601, in _parse_argv
_getPlaylistType ();
File "C:\Users\Matt\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlastitems.py", line 47, in _getPlaylistType
_doc = parse(xbmc.translatePath(PLAYLIST))
File "C:\Program Files\XBMC\system\python\Lib\xml\dom\minidom.py", line 1918, in parse
return expatbuilder.parse(file)
File "C:\Program Files\XBMC\system\python\Lib\xml\dom\expatbuilder.py", line 922, in parse
fp = open(file, 'rb')
IOError: (22, "invalid mode ('rb') or filename", 'ActivateWindow(videos,K:\\Videos 7\\Kids Movies\\,return)')
07:13:42 T:6108 INFO: -->End of Python script error report<--
07:13:42 T:4652 ERROR: Traceback (most recent call last):
File "C:\Users\Matt\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlastitems.py", line 607, in <module>
_parse_argv()
File "C:\Users\Matt\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlastitems.py", line 601, in _parse_argv
_getPlaylistType ();
File "C:\Users\Matt\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlastitems.py", line 47, in _getPlaylistType
_doc = parse(xbmc.translatePath(PLAYLIST))
File "C:\Program Files\XBMC\system\python\Lib\xml\dom\minidom.py", line 1918, in parse
return expatbuilder.parse(file)
File "C:\Program Files\XBMC\system\python\Lib\xml\dom\expatbuilder.py", line 922, in parse
fp = open(file, 'rb')
IOError: (22, "invalid mode ('rb') or filename", "ActivateWindow(videos,K:\\Videos 7\\Christine's TV\\,return)")
07:13:42 T:4652 INFO: -->End of Python script error report<--
07:13:42 T:2476 INFO: Python script stopped
07:13:42 T:2476 DEBUG: Thread XBPyThread 2476 terminating
07:13:42 T:4304 INFO: Python script stopped