I'm having trouble importing... It keeps stopping when it starts

Post any problems / bugs / issues that are Mylar-related in here.
Post Reply
jmurra21
Posts: 5
Joined: Fri Jan 28, 2022 7:00 pm

I'm having trouble importing... It keeps stopping when it starts

Post by jmurra21 »

I tried to import my comics into Mylar, and it just isn't working. It picked up what looks to be a little over 1200 books... out of a little under 18,000.
I'm using
Version: v0.6.4 ( master)
Status: CV , WS
Providers: DDL(GetComics): Experimental: nzb.su:

and all my connections seem to be set up right.

Can you help me out please? This is my most current error... And I tried to do a mass import here, but it stopped right at the first issue this time.


15-Feb-2022 14:52:39 - INFO :: mylar.markImports.3993 : CP Server Thread-10 : Initiating mass import.
15-Feb-2022 14:52:39 - INFO :: mylar.markImports.4008 : CP Server Thread-10 : 2809 series will be attempted to be imported.
15-Feb-2022 14:52:39 - INFO :: mylar.preSearchit.5831 : Thread-14 : [IMPORT] Issues found with valid ComicID information for : Action Comics 2021 Annual [137551]
15-Feb-2022 14:52:39 - INFO :: mylar.addbyid.1204 : Thread-14 : com_location: None
15-Feb-2022 14:52:39 - INFO :: mylar.addbyid.1249 : Thread-14 : Attempting to add directly by ComicVineID: 137551
15-Feb-2022 14:52:39 - INFO :: mylar.addComictoDB.100 : Thread-14 : aliases currently: None
15-Feb-2022 14:52:39 - INFO :: mylar.validateAndCreateDirectory.1766 : Thread-14 : [DIRECTORY-CHECK] Found comic directory: G:\Comics\DC Comics\2021\Action Comics 2021 Annual
15-Feb-2022 14:52:42 - INFO :: mylar.get_imprint_volume_and_booktype.1759 : Thread-14 : comic_values: {'ComicYear': '2021', 'ComicPublisher': 'DC Comics', 'PublisherImprint': None, 'ComicDescription': 'Annual for Action Comics.Note: Volume named per the indicia.', 'ComicVersion': 'None', 'Type': 'Print', 'incorrect_volume': None}
15-Feb-2022 14:52:42 - INFO :: mylar.addComictoDB.164 : Thread-14 : Now adding/updating: Action Comics 2021 Annual
15-Feb-2022 14:52:42 - INFO :: mylar.addComictoDB.221 : Thread-14 : Sucessfully retrieved details for Action Comics 2021 Annual
15-Feb-2022 14:52:42 - INFO :: mylar.addComictoDB.232 : Thread-14 : Previous version detected as None - seeing if update required
15-Feb-2022 14:52:42 - INFO :: mylar.addComictoDB.257 : Thread-14 : Determined to be a one-shot issue. Forcing Edition to One-Shot
15-Feb-2022 14:52:42 - INFO :: mylar.addComictoDB.291 : Thread-14 : Directory (G:\Comics\DC Comics\2021\Action Comics 2021 Annual) already exists! Continuing...
15-Feb-2022 14:52:44 - INFO :: mylar.addComictoDB.441 : Thread-14 : Sucessfully retrieved issue details for Action Comics 2021 Annual
15-Feb-2022 14:52:47 - INFO :: mylar.get_imprint_volume_and_booktype.1759 : Thread-14 : comic_values: {'ComicYear': '2021', 'ComicPublisher': 'DC Comics', 'PublisherImprint': None, 'ComicDescription': '<p>Annual for <a href="/action-comics/4050-91078/" data-ref-id="4050-91078">Action Comics</a>.</p><p><strong>Note</strong>: Volume named per the indicia.</p>', 'ComicVersion': 'None', 'Type': 'Print', 'incorrect_volume': None}
15-Feb-2022 14:52:47 - INFO :: mylar.updateissuedata.1231 : Thread-14 : Now adding/updating issues for Action Comics 2021 Annual
15-Feb-2022 14:52:47 - INFO :: mylar.addComictoDB.504 : Thread-14 : Updating complete for: Action Comics 2021 Annual
15-Feb-2022 14:52:47 - INFO :: mylar.addComictoDB.517 : Thread-14 : Mass import - Move files
15-Feb-2022 14:52:47 - INFO :: mylar.movefiles.43 : Thread-14 : moving G:\Comics\DC Comics\2021\Action Comics 2021 Annual\Action Comics 2021 Annual Vol.2021 #1.cbz ... to G:\Comics\DC Comics\2021\Action Comics 2021 Annual\Action Comics 2021 Annual 1.cbz
15-Feb-2022 14:52:47 - ERROR :: mylar.movefiles.50 : Thread-14 : Failed to move files - check directories and manually re-run.
15-Feb-2022 14:52:47 - INFO :: mylar.movefiles.43 : Thread-14 : moving G:\Comics\DC Comics\2021\Action Comics 2021 Annual\Action Comics 2021 Annual Vol.2021 #1.cbz ... to G:\Comics\DC Comics\2021\Action Comics 2021 Annual\Action Comics 2021 Annual 1.cbz
15-Feb-2022 14:52:47 - ERROR :: mylar.movefiles.50 : Thread-14 : Failed to move files - check directories and manually re-run.
15-Feb-2022 14:52:47 - ERROR :: mylar.rename_param.331 : Thread-14 : Invalid Issue_Number - please validate.
15-Feb-2022 14:52:47 - ERROR :: mylar.excepthook.315 : Thread-14 : Uncaught exception: Traceback (most recent call last):
File "G:\mylar3-python3-dev\mylar\logger.py", line 337, in new_run
old_run(*args, **kwargs)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2800.0_x64__qbz5n2kfra8p0\lib\threading.py", line 910, in run
self._target(*self._args, **self._kwargs)
File "G:\mylar3-python3-dev\mylar\webserve.py", line 5837, in preSearchit
self.addbyid(comicinfo['ComicID'], calledby=True, imported=imported, ogcname=comicinfo['ComicName'], nothread=True)
File "G:\mylar3-python3-dev\mylar\webserve.py", line 1289, in addbyid
return importer.addComictoDB(comicid, mismatch, None, imported, ogcname)
File "G:\mylar3-python3-dev\mylar\importer.py", line 518, in addComictoDB
moveit.movefiles(comicid, comlocation, imported)
File "G:\mylar3-python3-dev\mylar\moveit.py", line 37, in movefiles
nfilename = renameit['nfilename']
TypeError: 'NoneType' object is not subscriptable

Traceback (most recent call last):
File "G:\mylar3-python3-dev\mylar\logger.py", line 337, in new_run
old_run(*args, **kwargs)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2800.0_x64__qbz5n2kfra8p0\lib\threading.py", line 910, in run
self._target(*self._args, **self._kwargs)
File "G:\mylar3-python3-dev\mylar\webserve.py", line 5837, in preSearchit
self.addbyid(comicinfo['ComicID'], calledby=True, imported=imported, ogcname=comicinfo['ComicName'], nothread=True)
File "G:\mylar3-python3-dev\mylar\webserve.py", line 1289, in addbyid
return importer.addComictoDB(comicid, mismatch, None, imported, ogcname)
File "G:\mylar3-python3-dev\mylar\importer.py", line 518, in addComictoDB
moveit.movefiles(comicid, comlocation, imported)
File "G:\mylar3-python3-dev\mylar\moveit.py", line 37, in movefiles
nfilename = renameit['nfilename']
TypeError: 'NoneType' object is not subscriptable
15-Feb-2022 14:53:00 - INFO :: mylar.run.3251 : ThreadPoolExecutor-0_0 : There is an import currently running. In order to ensure successful import - deferring this until the import is finished.
User avatar
evilhero
Site Admin
Posts: 2887
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: I'm having trouble importing... It keeps stopping when it starts

Post by evilhero »

You cannot move files onto themselves - if the location is the same and you just want Mylar to use that , make sure you enable the series folders options when you do a scan (you'd have to do a fresh scan in order for it to be used).

That will force Mylar to use the current location (where you're scanning them in from) as the final series location - it won't move anything at that point and it might actually finish - albeit the non-issue number thing might cause a problem.

The importer in it's current iteration can not parse filenames that contain no issue number within them. While the rest of Mylar can handle the no-issue numbering, the importer is the lone aspect that does not. The file (which is an annual) that you're trying to import that is throwing the error - has no issue number, which also might be why it's failing.

However, moving files onto themselves is a no-no - either pick a different ComicLocation path and do the import again with series folders option not ticked off if you want to move/rename. Or keep the same ComicLocation path as is and do the import again, but with the series folder option ticked off - and it will not move/rename.
Post Reply