TypeError: iteration over non-sequence
#1
I am working on a script and ran into this error. I am confused because the same code seems to execute correctly in IDLE when i try it.

any help resolving this would be appreciated. i searched but didn't see a solution so thought i would ask.

Code:
14:04:00 M: 28844032   DEBUG: advapi32.dll fake function dllCryptAcquireContext() called
14:04:01 M: 27971584  NOTICE: Mode: 1
14:04:01 M: 27971584  NOTICE:
14:04:01 M: 27971584  NOTICE: URL: 2009
14:04:01 M: 27971584  NOTICE:
14:04:01 M: 27971584  NOTICE: Name: 2009
14:04:01 M: 27971584  NOTICE:
14:04:01 M: 27971584   DEBUG: LoadLibraryA('ws2_32')
14:04:01 M: 27971584   DEBUG: LoadLibrary('ws2_32.dll') returning: 007D7728
14:04:01 M: 27971584   DEBUG: dllGetProcAddress(007D76E8(ws2_32.dll), 'getaddrinfo') => 0023ACAC
14:04:01 M: 27971584   DEBUG: dllGetProcAddress(007D76E8(ws2_32.dll), 'getaddrinfo') => 0023ACAC
14:04:01 M: 27971584   DEBUG: dllGetProcAddress(007D76E8(ws2_32.dll), 'getnameinfo') => 0023A3AA
14:04:01 M: 27971584   DEBUG: dllGetProcAddress(007D76E8(ws2_32.dll), 'freeaddrinfo') => 00239F1E
14:04:01 M: 27951104  NOTICE: Traceback (most recent call last):
14:04:01 M: 27951104  NOTICE:   File "Q:\plugins\video\The Daily Show\default.py", line 160, in ?
14:04:01 M: 27951104  NOTICE:
14:04:01 M: 27951104  NOTICE: MONTHES(url)
14:04:01 M: 27951104  NOTICE:   File "Q:\plugins\video\The Daily Show\default.py", line 28, in MONTHES
14:04:01 M: 27951104  NOTICE:
14:04:01 M: 27951104  NOTICE: for date in EPISODEDATES:
14:04:01 M: 27951104  NOTICE: TypeError
14:04:01 M: 27951104  NOTICE: :
14:04:01 M: 27951104  NOTICE: iteration over non-sequence
14:04:01 M: 27951104  NOTICE:
14:04:01 M: 27951104   ERROR: Scriptresult: Error
14:04:01 M: 27951104    INFO: Python script stopped
14:04:01 M: 28475392    INFO: Python, unloading python24.dll because no scripts are running anymore
14:04:01 M: 28475392  NOTICE:
14:04:01 M: 28475392  NOTICE:
14:04:01 M: 28618752   DEBUG: Q:\system\python\DLLs\_socket.pyd: Detected 1 unloaded dll's
14:04:01 M: 28667904   DEBUG: Q:\system\python\DLLs\_ssl.pyd (base 10000000): Detected memory leaks: 1647 leaks
14:04:01 M: 28667904   DEBUG: leak caller address 268454043, size 20064, counter 1645
14:04:01 M: 28667904   DEBUG: leak caller address 268454064, size 4224, counter    2
14:04:01 M: 28667904   DEBUG: _ssl.pyd: Total bytes leaked: 24288
14:04:01 M: 29167616   DEBUG: Q:\system\python\python24.dll (base 1E000000): Detected memory leaks: 457 leaks
14:04:01 M: 31989760   DEBUG: leak caller address 503452107, size 24, counter    1
14:04:01 M: 31989760   DEBUG: leak caller address 503607127, size 487296, counter   81
14:04:01 M: 31989760   DEBUG: leak caller address 503644011, size 1000, counter    1
14:04:01 M: 31989760   DEBUG: leak caller address 503680044, size 233, counter    1
14:04:01 M: 31989760   DEBUG: leak caller address 503696859, size 34580, counter   35
14:04:01 M: 31989760   DEBUG: leak caller address 503703023, size 1976, counter    2
14:04:01 M: 31989760   DEBUG: leak caller address 503713445, size 824, counter   31
14:04:01 M: 31989760   DEBUG: leak caller address 503713665, size 84, counter    5
14:04:01 M: 31989760   DEBUG: leak caller address 503786591, size 2359296, counter    9
14:04:01 M: 31989760   DEBUG: leak caller address 503786668, size 64, counter    1
14:04:01 M: 31989760   DEBUG: leak caller address 503787144, size 51835, counter   93
14:04:01 M: 31989760   DEBUG: leak caller address 503787465, size 7477, counter  188
14:04:01 M: 31989760   DEBUG: leak caller address 503914047, size 640, counter    3
14:04:01 M: 31989760   DEBUG: leak caller address 503921644, size 72, counter    6
14:04:01 M: 31989760   DEBUG: python24.dll: Total bytes leaked: 2945401
14:04:01 M: 33136640   DEBUG:  DIRECTORY::CPluginDirectory::WaitOnScriptResult - plugin exited prematurely - terminating
14:04:01 M: 33136640   ERROR: CGUIMediaWindow::GetDirectory(plugin://video/The Daily Show/?url=2009&mode=1&name=2009) failed
14:04:01 M: 33136640   DEBUG: CGUIMediaWindow::GetDirectory (plugin://video/The Daily Show/)
14:04:01 M: 33136640   DEBUG:   ParentPath = [plugin://video/]
14:04:01 M: 33136640   DEBUG: Loading fileitems [plugin://video/The Daily Show/]
14:04:01 M: 33136640   DEBUG:   -- items: 11, directory: plugin://video/The Daily Show/ sort method: 0, ascending: false
Reply
#2
pastebinning the code would likely be useful...
Reply
#3
sorry i should have posted that. i figured out the problem though. i will try to post details later so it might be helpful to someone else in the future.

thanks for the response
Reply

Logout Mark Read Team Forum Stats Members Help
TypeError: iteration over non-sequence0