New Install metatagging issue

Post any problems / bugs / issues that are Mylar-related in here.
Post Reply
davieo
Posts: 2
Joined: Tue Feb 11, 2020 2:23 am

New Install metatagging issue

Post by davieo »

I just setup a Mylar on a Windows 2012 R2 server and am having some issues with manual tagging. When I try and tag a book - either .cbr or .cbz, I get errors about permissions.

I checked permissions on the folders and the account running Mylar has full control on both the cache folder and the comic book folder.

Here are the log entries when I try and tag the file:

2020-02-10 21:26:51 DEBUG [META-TAGGER] Running the ComicTagger Add-on for Mylar
2020-02-10 21:26:51 DEBUG [META-TAGGER] comicpath : C:\Mylar\cache\mylar_7a323r
2020-02-10 21:26:51 DEBUG [META-TAGGER] sabnzbdscriptpath :
2020-02-10 21:26:51 DEBUG [META-TAGGER] downloadpath : d:\comics\Amazing Spider-Man Renew Your Vows (2015)
2020-02-10 21:26:51 DEBUG [META-TAGGER] scriptname : mylar.py
2020-02-10 21:26:51 DEBUG [META-TAGGER] Paths / Locations:
2020-02-10 21:26:51 DEBUG New_Filepath: C:\Mylar\cache\mylar_7a323r\Amazing Spider-Man Renew Your Vows 1 (2015).cbz
2020-02-10 21:26:51 DEBUG New_Folder: C:\Mylar\cache\mylar_7a323r
2020-02-10 21:26:51 DEBUG Filename: Amazing Spider-Man Renew Your Vows 1 (2015).cbz
2020-02-10 21:26:51 DEBUG Filepath: d:\comics\Amazing Spider-Man Renew Your Vows (2015)\Amazing Spider-Man Renew Your Vows 1 (2015).cbz
2020-02-10 21:26:51 DEBUG [META-TAGGER] Filename is : d:\comics\Amazing Spider-Man Renew Your Vows (2015)\Amazing Spider-Man Renew Your Vows 1 (2015).cbz
2020-02-10 21:26:51 DEBUG ComicTagger Path location for internal comictagger.py set to : C:\Mylar\comictagger.py
2020-02-10 21:26:51 DEBUG [META-TAGGER] dirName:d:\comics\Amazing Spider-Man Renew Your Vows (2015)
2020-02-10 21:26:52 DEBUG [MANUAL META-TAGGING] Unable to write metadata successfully - check mylar.log file.
2020-02-10 21:26:52 WARNING [META-TAGGER][COMIC-TAGGER][CBR-TO-CBZ] Failed to convert cbr to cbz - check permissions on folder : C:\Mylar\cache and/or the location where Mylar is trying to tag the files from.
2020-02-10 21:26:52 INFO None
2020-02-10 21:26:52 INFO Traceback (most recent call last):
File "C:\Mylar\comictagger.py", line 5, in
ctmain()
File "C:\Mylar\lib\comictaggerlib\main.py", line 62, in ctmain
cli.cli_mode(opts, settings)
File "C:\Mylar\lib\comictaggerlib\cli.py", line 193, in cli_mode
process_file_cli(f, opts, settings, match_results)
File "C:\Mylar\lib\comictaggerlib\cli.py", line 231, in process_file_cli
if not ca.seemsToBeAComicArchive():
File "C:\Mylar\lib\comictaggerlib\comicapi\comicarchive.py", line 727, in seemsToBeAComicArchive
(self.getNumberOfPages() > 0)
File "C:\Mylar\lib\comictaggerlib\comicapi\comicarchive.py", line 893, in getNumberOfPages
self.page_count = len(self.getPageNameList())
File "C:\Mylar\lib\comictaggerlib\comicapi\comicarchive.py", line 876, in getPageNameList
files = natsorted(files, key=keyfunc, signed=False)
TypeError: natsorted() got an unexpected keyword argument 'signed'
2020-02-10 21:26:52 DEBUG [META-TAGGER] Absolute path to script: C:\Python27\python.exe
2020-02-10 21:26:52 DEBUG [META-TAGGER] Executing command: ['C:\\Python27\\python.exe', 'C:\\Mylar\\comictagger.py', '-e', '--delete-rar', u'C:\\Mylar\\cache\\mylar_7a323r\\Amazing Spider-Man Renew Your Vows 1 (2015).cbz']
2020-02-10 21:26:52 DEBUG [META-TAGGER] Enabling ComicTagger script: ['C:\\Python27\\python.exe', 'C:\\Mylar\\comictagger.py'] with options: ['-e', '--delete-rar', u'C:\\Mylar\\cache\\mylar_7a323r\\Amazing Spider-Man Renew Your Vows 1 (2015).cbz']
2020-02-10 21:26:52 DEBUG [META-TAGGER] Will NOT modify existing tag blocks even if they exist already.
2020-02-10 21:26:52 DEBUG [META-TAGGER] CBL Tagging enabled.
2020-02-10 21:26:52 DEBUG [META-TAGGER] CR Tagging enabled.
2020-02-10 21:26:52 DEBUG [META-TAGGER] ComicTagger 1.25.2 [ninjas.walk.alone / SHURIKEN] being used - using personal ComicVine API key supplied via mylar.

Any help is appreciated.
barbequesauce
Posts: 95
Joined: Fri Feb 03, 2017 3:59 pm

Re: New Install metatagging issue

Post by barbequesauce »

Which branch? What commit?
Bart274
Posts: 5
Joined: Thu Jan 23, 2014 12:54 pm

Re: New Install metatagging issue

Post by Bart274 »

@barbequesauce in the traceback you can see he’s using python 2.7
But I have the same issue in the py3 version
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: New Install metatagging issue

Post by evilhero »

It looks like you have a version of natsort that's "too new" to be used properly by CT. What version of python are you running?

Go into a command line, and do a pip list. Check to see if you have natsorted listed, and what version it says. Odds are you're above 5.3.0 (I believe that's the correct version). If you are you have to uninstall that version and do a pip install natsorted==5.3.0 or if that doesn't work, pip install natsorted==3.5.2

Thr library included with mylar isn't being referenced for some reason now, which is causing the error.

Bart274, you know better than to post py3 issues in a py2 issue thread. It just confuses the original issue, and plus you could just ask us in irc now about the py3 issue - since the requirements file is listed at 3.5.2.
davieo
Posts: 2
Joined: Tue Feb 11, 2020 2:23 am

Re: New Install metatagging issue

Post by davieo »

Problem resolved - thanks evilhero!

Issues was exactly what you suspected, version of natsort was too new, I was running 6.2.1. Removing that and installing 5.3.0 fixed it.

For anyone who finds this post later - please note that the install command was pip install natsort==5.3.0

I received an error message if I used pip install natsorted==5.3.0

Mylar is a wonderful program, and I appreciate all the work you put into development and maintaining it.
Post Reply