Wanted Comics List??-UPDATE how to import .csv

Information and Tutorials on features in Mylar and how to use it
KidVulcan79
Posts: 14
Joined: Tue Aug 21, 2018 9:29 am

Re: Wanted Comics List??-UPDATE how to import .csv

Post by KidVulcan79 »

Ok, so I fixed the space and this is what I got this time:

Microsoft Windows [Version 10.0.17134.228]
(c) 2018 Microsoft Corporation. All rights reserved.

C:\Windows\system32>cd C:\Mylar

C:\Mylar>python Mylar.py maintenance -ij watchlist.json
log language set to en_US
02-Sep-2018 01:20:17 - ERROR :: mylar.configure.766 : MainThread : No User Comicvine API key specified. I will not work very well due to api limits - http://api.comicvine.com/ and get your own free key.
02-Sep-2018 01:20:17 - INFO :: mylar.initialize.178 : MainThread : Checking to see if the database has all tables....
02-Sep-2018 01:20:17 - INFO :: mylar.csv_load.1105 : MainThread : Populating Base Exception listings into Mylar....
02-Sep-2018 01:20:17 - INFO :: mylar.csv_load.1107 : MainThread : Populating Custom Exception listings into Mylar....
02-Sep-2018 01:20:17 - INFO :: mylar.dbcheck.1051 : MainThread : Ensuring DB integrity - Removing all Erroneous Comics (ie. named None)
02-Sep-2018 01:20:17 - INFO :: mylar.dbcheck.1053 : MainThread : Correcting Null entries that make the main page break on startup.
02-Sep-2018 01:20:18 - INFO :: mylar.main.231 : MAIN : [MAINTENANCE-MODE] Initializing maintenance mode
02-Sep-2018 01:20:18 - INFO :: mylar.main.249 : MAIN : [MAINTENANCE-MODE] file indicated as being in json format - path accepted as watchlist.json
02-Sep-2018 01:20:18 - INFO :: mylar.json_import.71 : MAIN : [MAINTENANCE-MODE][JSON-IMPORT] Found 311 series within json listing. Preparing to mass import to existing db.
02-Sep-2018 01:20:18 - INFO :: mylar.importIT.151 : MAIN : [MAINTENANCE-MODE][JSON-IMPORT] Found 311 series in previous db. Preparing to migrate into existing db.
02-Sep-2018 01:20:18 - INFO :: mylar.importIT.154 : MAIN : [MAINTENANCE-MODE][JSON-IMPORT] [1/311] now attempting to add 100082 to watchlist...
02-Sep-2018 01:20:18 - WARNING :: mylar.pulldetails.50 : MAIN : You have not specified your own ComicVine API key - it's a requirement. Get your own @ http://api.comicvine.com.
02-Sep-2018 01:20:18 - ERROR :: mylar.excepthook.314 : MAIN : Uncaught exception: Traceback (most recent call last):
File "Mylar.py", line 348, in <module>
main()
File "Mylar.py", line 251, in main
j = ij.json_import()
File "C:\Mylar\mylar\maintenance.py", line 72, in json_import
self.importIT()
File "C:\Mylar\mylar\maintenance.py", line 161, in importIT
maintenance_info = importer.addComictoDB(re.sub('4050-', '', x['ComicID']).strip(), calledfrom='maintenance')
File "C:\Mylar\mylar\importer.py", line 97, in addComictoDB
comic = cv.getComic(comicid, 'comic')
File "C:\Mylar\mylar\cv.py", line 156, in getComic
return GetComicInfo(comicid, dom)
File "C:\Mylar\mylar\cv.py", line 220, in GetComicInfo
tracks = dom.getElementsByTagName('issue')
AttributeError: 'NoneType' object has no attribute 'getElementsByTagName'

Traceback (most recent call last):
File "Mylar.py", line 348, in <module>
main()
File "Mylar.py", line 251, in main
j = ij.json_import()
File "C:\Mylar\mylar\maintenance.py", line 72, in json_import
self.importIT()
File "C:\Mylar\mylar\maintenance.py", line 161, in importIT
maintenance_info = importer.addComictoDB(re.sub('4050-', '', x['ComicID']).strip(), calledfrom='maintenance')
File "C:\Mylar\mylar\importer.py", line 97, in addComictoDB
comic = cv.getComic(comicid, 'comic')
File "C:\Mylar\mylar\cv.py", line 156, in getComic
return GetComicInfo(comicid, dom)
File "C:\Mylar\mylar\cv.py", line 220, in GetComicInfo
tracks = dom.getElementsByTagName('issue')
AttributeError: 'NoneType' object has no attribute 'getElementsByTagName'

C:\Mylar>

Please let me know if you see any issues, thanks :D
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: Wanted Comics List??-UPDATE how to import .csv

Post by evilhero »

You need to have a comicvine apikey specified in your config.ini, as well as making sure your Comic Location is specified (it's called destination_dir in the config.ini).

When it performs the import it has to pull the data down from CV as well as check where it thinks the series will be to see if the directory already exists and/or any issues are already present.

The error you posted is saying that there is no comicvine apikey specified in the config.ini for it to use.
Post Reply