Welcome, Guest
Python Scripts for ComicRack

TOPIC: Duplicates Manager (v Alpha - 0.6)

Duplicates Manager (v Alpha - 0.6) 2 years 9 months ago #41689

  • t_jay17
  • t_jay17's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 13
  • Karma: 0
The sizes are

Alpha Omega - Cry Wolf 008 (2012) (Digital) (DR Quinch-Empire) 51814kb
Alpha & Omega - Cry Wolf 001 (2010) (Digital) (DR & Quinch-Empire) 35807kb
Alpha & Omega - Cry Wolf 002 (2011) (Digital) (DR Quinch-Empire) 51200kb
Alpha & Omega - Cry Wolf 003 (2011) (Digital) (DR & Quinch-Empire) 30983kb
Alpha & Omega - Cry Wolf 006 (2012) (Digital) (DR & Quinch-Empire) 46711kb
Alpha_&_Omega_-_Cry_Wolf_002_(2011)_(Digital)_(DR_&_Quinch-Empire) 51200kb
Alpha_&_Omega_-_Cry_Wolf_006_(2012)_(Digital)_(DR_&_Quinch-Empire) 46711kb
Alpha_&_Omega_-_Cry_Wolf_007_(2012)_(Digital)_(DR_&_Quinch-Empire) 54300kb
Alpha_&_Omega_-_Cry_Wolf_008_(2012)_(Digital)_(DR_&_Quinch-Empire) 51814kb



I wonder if my problem is I am trying to do too many comics at one time?
The administrator has disabled public write access.

Duplicates Manager (v Alpha - 0.6) 2 years 9 months ago #41691

  • boshuda
  • boshuda's Avatar
  • Offline
  • Gold Boarder
  • Posts: 295
  • Thank you received: 64
  • Karma: 8
t_jay17 wrote:
The sizes are

Alpha Omega - Cry Wolf 008 (2012) (Digital) (DR Quinch-Empire) 51814kb
Alpha & Omega - Cry Wolf 001 (2010) (Digital) (DR & Quinch-Empire) 35807kb
Alpha & Omega - Cry Wolf 002 (2011) (Digital) (DR Quinch-Empire) 51200kb
Alpha & Omega - Cry Wolf 003 (2011) (Digital) (DR & Quinch-Empire) 30983kb
Alpha & Omega - Cry Wolf 006 (2012) (Digital) (DR & Quinch-Empire) 46711kb
Alpha_&_Omega_-_Cry_Wolf_002_(2011)_(Digital)_(DR_&_Quinch-Empire) 51200kb
Alpha_&_Omega_-_Cry_Wolf_006_(2012)_(Digital)_(DR_&_Quinch-Empire) 46711kb
Alpha_&_Omega_-_Cry_Wolf_007_(2012)_(Digital)_(DR_&_Quinch-Empire) 54300kb
Alpha_&_Omega_-_Cry_Wolf_008_(2012)_(Digital)_(DR_&_Quinch-Empire) 51814kb



I wonder if my problem is I am trying to do too many comics at one time?

I doubt it. I just did 1158 files, about 22gb, and it ate them up like a champ.

Can you create a shortcut for ComicRack with the following as the target:

"C:\Program Files\ComicRack\ComicRack.exe" -ssc

That will start ComicRack with the scripting window open, which might provide more information about what's going on. Taken from http://comicrack.cyolito.com/faqs/28-comicrack-scripts
The administrator has disabled public write access.

Duplicates Manager (v Alpha - 0.6) 2 years 9 months ago #41697

  • t_jay17
  • t_jay17's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 13
  • Karma: 0
this is what the script says


Initialzing script 'RenumberBooks' from 'Autonumber.py'

Initialzing script 'CommitProposed' from 'CommitProposed.py'

Initialzing script 'NewComicBooks' from 'NewComics.py'

Initialzing script 'SaveCSVList' from 'OtherScripts.py'

Initialzing script 'RenameBookFiles' from 'OtherScripts.py'

Initialzing script 'SetComicInfoDirty' from 'OtherScripts.py'

Initialzing script 'ConfigureBookHasBeenOpened' from 'Sample.py'

Initialzing script 'GetBooksWith' from 'Sample.py'

Initialzing script 'AutoadjustTwoPageMode' from 'Sample.py'

Initialzing script 'DummySearch' from 'Sample.py'

Initialzing script 'DummyHtmlInfoPanel' from 'Sample.py'

Initialzing script 'WebLinkInfoPanel' from 'Sample.py'

Initialzing script 'DummyUIInfoPanel' from 'Sample.py'

Initialzing script 'ComicRackUserForum' from 'Sample.py'

Initialzing script 'FadeReadThumbnails' from 'Sample.py'

Initialzing script 'ShowStartupMessage' from 'Sample.py'

Initialzing script 'ShowShutdownMessage' from 'Sample.py'

Initialzing script 'ParseComicPath' from 'Sample.py'

Initialzing script 'BookHasBeenOpened' from 'Sample.py'

Initialzing script 'SearchAndReplace' from 'SearchAndReplace.py'

Initialzing script 'DuplicatesManager' from 'duplicatesmanager.py'
Calling 'DuplicatesManager'...
Compilation of 'C:\Users\Taurean\AppData\Roaming\cYo\ComicRack\Scripts\Duplicates Manager\duplicatesmanager.py'
index out of range: 0
The administrator has disabled public write access.

Duplicates Manager (v Alpha - 0.6) 2 years 9 months ago #41732

  • boshuda
  • boshuda's Avatar
  • Offline
  • Gold Boarder
  • Posts: 295
  • Thank you received: 64
  • Karma: 8
I am stumped why you're having this problem. What I've done in the past to figure out which file(s) is the problem I'll select half of the files and run the script. If it completes - great, and that means the problem is in the part I didn't process yet. I'll repeat the halving method until I've narrowed it down.

Otherwise the problem is in the part I processed, so I'll process the other half to get rid of them from my filtered list. Then I'll repeat the process until I've narrowed it down.

If that helps let us know, if not you can edit the script file to have it put more junk in the logfile and post that. Or maybe I can create on with a painful amount of logfile information written. However, I was reviewing the logfile you posted earlier and the last line cut off early. It should have had more __________ before the line ended. Is the log file becoming unwritable or too large or something? Maybe it just got cut off in the copy-paste effort or reached a posting limit on the forum.
The administrator has disabled public write access.

Duplicates Manager (v Alpha - 0.6) 2 years 9 months ago #41738

  • t_jay17
  • t_jay17's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 13
  • Karma: 0
I tried again and it still says

Exception has been thrown by the target of an invocation.

The end of the log file is.

Calling 'DuplicatesManager'...
Compilation of 'C:\Users\Taurean\AppData\Roaming\cYo\ComicRack\Scripts\Duplicates Manager\duplicatesmanager.py'
index out of range: 0
The administrator has disabled public write access.

Duplicates Manager (v Alpha - 0.6) 2 years 9 months ago #41741

  • boshuda
  • boshuda's Avatar
  • Offline
  • Gold Boarder
  • Posts: 295
  • Thank you received: 64
  • Karma: 8
t_jay17 wrote:
I tried again and it still says

Exception has been thrown by the target of an invocation.

The end of the log file is.

Calling 'DuplicatesManager'...
Compilation of 'C:\Users\Taurean\AppData\Roaming\cYo\ComicRack\Scripts\Duplicates Manager\duplicatesmanager.py'
index out of range: 0
Yeah, sorry, I meant the log file that duplicates manager created got cut off mid-string. Index out of range usually means the application attempted to access an index in an array that didn't exist. Either the index itself or the array wasn't initialized properly.
The administrator has disabled public write access.

Duplicates Manager (v Alpha - 0.6) 2 years 8 months ago #41742

  • t_jay17
  • t_jay17's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 13
  • Karma: 0
That log file ends with


STOPPED PROCESSING BECAUSE OF EXCEPTION:
Traceback (most recent call last):
File "C:\Users\Taurean\AppData\Roaming\cYo\ComicRack\Scripts\Duplicates Manager\duplicatesmanager.py", line 80, in DuplicatesManager
File "C:\Users\Taurean\AppData\Roaming\cYo\ComicRack\Scripts\Duplicates Manager\duplicatesmanager.py", line 302, in ProcessDuplicates
File "C:\Users\Taurean\AppData\Roaming\cYo\ComicRack\Scripts\Duplicates Manager\processfunctions.py", line 66, in keep_pagecount_noads
exceptions.IndexError: index out of range: 0
The administrator has disabled public write access.

Duplicates Manager (v Alpha - 0.6) 2 years 8 months ago #41743

  • boshuda
  • boshuda's Avatar
  • Offline
  • Gold Boarder
  • Posts: 295
  • Thank you received: 64
  • Karma: 8
I was looking through the code and I wonder if the files don't have any designated cover pages? If I'm reading the code correctly, if no comics have a cover, they won't be added to the array. So when it attempts to access the first (or 0th) element at the error'd line 66, it throws an exception.

It's just a thought, I haven't really traced back too deep in the code. I'll try to duplicate your error with some test books and also confirm or deny my understanding of the code.
The administrator has disabled public write access.

Duplicates Manager (v Alpha - 0.6) 2 years 8 months ago #41747

  • adamf9898
  • adamf9898's Avatar
  • Offline
  • Junior Boarder
  • Posts: 26
  • Thank you received: 1
  • Karma: 0
Thank you for making this script! So far I have not had any problems. Just took me awhile to configure and read up on how to use it! Thanks again, working great!
<--adamf9898-->
The administrator has disabled public write access.

Duplicates Manager (v Alpha - 0.6) 2 years 8 months ago #41748

  • boshuda
  • boshuda's Avatar
  • Offline
  • Gold Boarder
  • Posts: 295
  • Thank you received: 64
  • Karma: 8
I did a test with books without designated covers and they worked perfectly. I haven't had a chance to work fully back through the code to further flesh out my understanding to make any reasonable suggestions. I wish you could send me the files it appears to be choking on, so I could try to duplicate it.
The administrator has disabled public write access.
Time to create page: 0.209 seconds

Who's Online

We have 215 guests and 4 members online