NoneType' object has no attribute '__getitem__'

Post any problems / bugs / issues that are Mylar-related in here.
Post Reply
nobrumski
Posts: 26
Joined: Sun Jul 12, 2015 4:58 am

NoneType' object has no attribute '__getitem__'

Post by nobrumski »

This error popped up when I was doing a Scan Comic Library to add Action Comics Annual. It processed issue 2, but skipped issue 1 and 3 even though they used the same naming format. It did require a manual selection prior to this. It moved issue 2 but didn't show it as detected until I forced it to recheck files.

16-Apr-2016 12:24:18 - INFO :: Thread-22 : moving Z:\Incoming\DC Comics\Action Comics Annual (2012)\Action Comics Annual 2 (2013).cbz ... to Z:\Mylar\DC Comics/Action Comics Annual (2012)\Action Comics Annual V2012 #2.cbz
16-Apr-2016 12:24:18 - ERROR :: Thread-22 : Invalid Issue_Number - please validate.
16-Apr-2016 12:24:18 - ERROR :: Thread-22 : Uncaught exception: Traceback (most recent call last):
File "C:\Mylar\mylar-development\mylar\logger.py", line 158, in new_run
old_run(*args, **kwargs)
File "C:\Python27\lib\threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "C:\Mylar\mylar-development\mylar\importer.py", line 596, in addComictoDB
moveit.movefiles(comicid, comlocation, ogcname)
File "C:\Mylar\mylar-development\mylar\moveit.py", line 23, in movefiles
nfilename = renameit['nfilename']
TypeError: 'NoneType' object has no attribute '__getitem__'

Traceback (most recent call last):
File "C:\Mylar\mylar-development\mylar\logger.py", line 158, in new_run
old_run(*args, **kwargs)
File "C:\Python27\lib\threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "C:\Mylar\mylar-development\mylar\importer.py", line 596, in addComictoDB
moveit.movefiles(comicid, comlocation, ogcname)
File "C:\Mylar\mylar-development\mylar\moveit.py", line 23, in movefiles
nfilename = renameit['nfilename']
TypeError: 'NoneType' object has no attribute '__getitem__'

Manually scanning the directory with the 2 remaining issues fails to move them but no error. I also have enable annual series integration unchecked in settings.

16-Apr-2016 12:31:27 - INFO :: CP Server Thread-8 : Starting postprocessing for : Manual Run
16-Apr-2016 12:31:27 - INFO :: Thread-23 : there are 2 files.
16-Apr-2016 12:31:27 - INFO :: Thread-23 : [FILENAME]: Action Comics Annual 1 (2012).cbz
16-Apr-2016 12:31:27 - INFO :: Thread-23 : [FILENAME]: Action Comics Annual 3 (2014).cbz
16-Apr-2016 12:31:27 - INFO :: Thread-23 : I have located 2 files that I should be able to post-process. Continuing...
16-Apr-2016 12:31:27 - INFO :: Thread-23 : Series_Name: action comics annual --- WatchComic: action comics
16-Apr-2016 12:31:27 - INFO :: Thread-23 : [NO MATCH] Action Comics Annual 1 (2012).cbz [WATCHLIST:Action Comics]
16-Apr-2016 12:31:27 - INFO :: Thread-23 : Series_Name: action comics annual --- WatchComic: action comics
16-Apr-2016 12:31:27 - INFO :: Thread-23 : [NO MATCH] Action Comics Annual 3 (2014).cbz [WATCHLIST:Action Comics]
nobrumski
Posts: 26
Joined: Sun Jul 12, 2015 4:58 am

Re: NoneType' object has no attribute '__getitem__'

Post by nobrumski »

Same thing happened with Animal Man Annual

16-Apr-2016 12:47:58 - INFO :: Thread-34 : moving Z:\Incoming\DC Comics\Animal Man Annual (2012)\Animal Man Annual 2 (2013).cbz ... to Z:\Mylar\DC Comics/Animal Man Annual (2012)\Animal Man Annual V2012 #2.cbz
16-Apr-2016 12:47:58 - ERROR :: Thread-34 : Invalid Issue_Number - please validate.
16-Apr-2016 12:47:58 - ERROR :: Thread-34 : Uncaught exception: Traceback (most recent call last):
File "C:\Mylar\mylar-development\mylar\logger.py", line 158, in new_run
old_run(*args, **kwargs)
File "C:\Python27\lib\threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "C:\Mylar\mylar-development\mylar\importer.py", line 596, in addComictoDB
moveit.movefiles(comicid, comlocation, ogcname)
File "C:\Mylar\mylar-development\mylar\moveit.py", line 23, in movefiles
nfilename = renameit['nfilename']
TypeError: 'NoneType' object has no attribute '__getitem__'

Traceback (most recent call last):
File "C:\Mylar\mylar-development\mylar\logger.py", line 158, in new_run
old_run(*args, **kwargs)
File "C:\Python27\lib\threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "C:\Mylar\mylar-development\mylar\importer.py", line 596, in addComictoDB
moveit.movefiles(comicid, comlocation, ogcname)
File "C:\Mylar\mylar-development\mylar\moveit.py", line 23, in movefiles
nfilename = renameit['nfilename']
TypeError: 'NoneType' object has no attribute '__getitem__'
User avatar
evilhero
Site Admin
Posts: 2887
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: NoneType' object has no attribute '__getitem__'

Post by evilhero »

I'll have to look into these some more, I tried to hit on the annuals abit when I was re-coding the Scan Library function, but had to divert some of my attention in regards to annuals towards the File Checker as it was having some issues with multi-volume annuals. That's all fixed now (it should be), so I can revisit this today probably and try and figure some things out as to what's happening.
Post Reply