ComicID loop

Post any problems / bugs / issues that are Mylar-related in here.
Post Reply
summerside
Posts: 20
Joined: Fri Jan 19, 2018 8:05 pm

ComicID loop

Post by summerside »

Afternoon...

I had a recent hardware crash with my unraid build, which is where I've been using the docker install of Mylar3. I moved all my applications to my PC so I am running mylar3 on windows 10 pro. I've installed the recent masters build and have python 3.7.2 installed. The install and the requirements.txt went smoothly and no issues adjusting the settings. I did a test run to see if I could add a new series from "this week" just to verify folder and file structure was correct. I added the series and it gets stuck with adding the comic details.

This is the error I captured from the log:

Traceback (most recent call last):
File "S:\NZB\Mylar3\mylar\logger.py", line 337, in new_run
old_run(*args, **kwargs)
File "C:\Users\summe\AppData\Local\Programs\Python\Python37\lib\threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "S:\NZB\Mylar3\mylar\importer.py", line 228, in addComictoDB
comvalues = dothedew.folder_create()
File "S:\NZB\Mylar3\mylar\filers.py", line 71, in folder_create
folder_format = re.sub('/', '\\', folder_format).strip()
File "C:\Users\summe\AppData\Local\Programs\Python\Python37\lib\re.py", line 192, in sub
return _compile(pattern, flags).sub(repl, string, count)
File "C:\Users\summe\AppData\Local\Programs\Python\Python37\lib\re.py", line 309, in _subx
template = _compile_repl(template, pattern)
File "C:\Users\summe\AppData\Local\Programs\Python\Python37\lib\re.py", line 300, in _compile_repl
return sre_parse.parse_template(repl, pattern)
File "C:\Users\summe\AppData\Local\Programs\Python\Python37\lib\sre_parse.py", line 954, in parse_template
s = Tokenizer(source)
File "C:\Users\summe\AppData\Local\Programs\Python\Python37\lib\sre_parse.py", line 232, in __init__
self.__next()
File "C:\Users\summe\AppData\Local\Programs\Python\Python37\lib\sre_parse.py", line 246, in __next
self.string, len(self.string) - 1) from None
re.error: bad escape (end of pattern) at position 0

Everything before that showed the comic was identified and matched...then it just sits in a continuous loop

Any thoughts?
Last edited by summerside on Sun Jan 31, 2021 1:57 am, edited 1 time in total.
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: ComicID loo[

Post by evilhero »

If you're using your config.ini from your unraid install, you need to make sure the paths specified therein are all correct (ie. Windows-style as opposed to Linux).

If you're using the same mylar.db file that you used on unraid, then the directory paths for each series in your watchlist are pointed to the unraid paths and not your new system setup. You can confirm this by checking a series out within Mylar and looking at the directory location. If that's the case, then you need to use a utility within Mylar to update the paths in the dB file.

Also, python 3.7.2 is cutting right close to the barrel as far as support and workability. We've had users have problems using 3.7.2 - if you can I would suggest going higher to a minimum of 3.7.5, ,perhaps even 3.8.x.
summerside
Posts: 20
Joined: Fri Jan 19, 2018 8:05 pm

Re: ComicID loop

Post by summerside »

Thanks again for the quick response. I ported nothing from unraid. Started a fresh install. I removed python 3.7.2 and installed 3.8.1. Same problem as before. Here's a copy of the log:

30-Jan-2021 20:07:21 - INFO :: mylar.initialize.73 : MAIN : Starting Mylar on http://0.0.0.0:8090/
30-Jan-2021 20:07:22 - INFO :: mylar.getVersion.192 : MAIN : [LAST_RELEASE] Branch: master
30-Jan-2021 20:07:22 - INFO :: mylar.getVersion.197 : MAIN : [LAST_RELEASE] Version: v0.4.9.4
30-Jan-2021 20:07:22 - INFO :: mylar.getVersion.200 : MAIN : [LAST_RELEASE] Commit: 6f44942cba338bfc715754ffeaa1f1d3e9d364ed
30-Jan-2021 20:07:22 - INFO :: mylar.getVersion.214 : MAIN : Current Release Name: It's not who I am underneath, but what I do that defines me.
30-Jan-2021 20:07:22 - INFO :: mylar.getVersion.221 : MAIN : Branch detected & set to : master
30-Jan-2021 20:07:22 - INFO :: mylar.versionload.385 : MAIN : Version information: master [6f44942cba338bfc715754ffeaa1f1d3e9d364ed]
30-Jan-2021 20:07:22 - INFO :: mylar.start.363 : MAIN : DB Updater sccheduled to fire every 5 minutes
30-Jan-2021 20:07:22 - INFO :: mylar.queue_schedule.532 : MAIN : [SEARCH-QUEUE] Attempting to background load the search queue....
30-Jan-2021 20:07:22 - INFO :: mylar.queue_schedule.535 : MAIN : [SEARCH-QUEUE] Successfully started the Search Queuer...
30-Jan-2021 20:07:22 - INFO :: mylar.queue_schedule.543 : MAIN : [POST-PROCESS-QUEUE] Post Process queue enabled & monitoring for api requests....
30-Jan-2021 20:07:22 - INFO :: mylar.queue_schedule.546 : MAIN : [POST-PROCESS-QUEUE] Succesfully started Post-Processing Queuer....
30-Jan-2021 20:07:22 - INFO :: mylar.start.412 : MAIN : [WEEKLY] Checking for existance of Weekly Comic listing...
30-Jan-2021 20:07:22 - INFO :: mylar.start.478 : MAIN : Firing up the Background Schedulers now....
30-Jan-2021 20:07:22 - INFO :: mylar.start.482 : MAIN : Background Schedulers successfully started...
30-Jan-2021 20:07:42 - INFO :: mylar.addbyid.533 : CP Server Thread-9 : Attempting to add directly by ComicVineID: 132273
30-Jan-2021 20:07:44 - INFO :: mylar.addComictoDB.131 : Thread-12 : Now adding/updating: The Witcher: Fading Memories
30-Jan-2021 20:07:44 - INFO :: mylar.addComictoDB.184 : Thread-12 : Sucessfully retrieved details for The Witcher: Fading Memories
30-Jan-2021 20:07:44 - INFO :: mylar.addComictoDB.195 : Thread-12 : Previous version detected as None - seeing if update required
30-Jan-2021 20:07:44 - ERROR :: mylar.excepthook.315 : Thread-12 : Uncaught exception: Traceback (most recent call last):
File "S:\NZB\Mylar3\mylar\logger.py", line 337, in new_run
old_run(*args, **kwargs)
File "C:\Users\summe\AppData\Local\Programs\Python\Python38\lib\threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "S:\NZB\Mylar3\mylar\importer.py", line 228, in addComictoDB
comvalues = dothedew.folder_create()
File "S:\NZB\Mylar3\mylar\filers.py", line 71, in folder_create
folder_format = re.sub('/', '\\', folder_format).strip()
File "C:\Users\summe\AppData\Local\Programs\Python\Python38\lib\re.py", line 208, in sub
return _compile(pattern, flags).sub(repl, string, count)
File "C:\Users\summe\AppData\Local\Programs\Python\Python38\lib\re.py", line 325, in _subx
template = _compile_repl(template, pattern)
File "C:\Users\summe\AppData\Local\Programs\Python\Python38\lib\re.py", line 316, in _compile_repl
return sre_parse.parse_template(repl, pattern)
File "C:\Users\summe\AppData\Local\Programs\Python\Python38\lib\sre_parse.py", line 972, in parse_template
s = Tokenizer(source)
File "C:\Users\summe\AppData\Local\Programs\Python\Python38\lib\sre_parse.py", line 232, in __init__
self.__next()
File "C:\Users\summe\AppData\Local\Programs\Python\Python38\lib\sre_parse.py", line 245, in __next
raise error("bad escape (end of pattern)",
re.error: bad escape (end of pattern) at position 0
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: ComicID loop

Post by evilhero »

Check the Comic Location path on your config - it looks like you have an incorrect slash in your path that's being accepted as a control character instead of a slash (on Windows obv, your slashes should all go \, using / is telling Windows that you're sending an escape character which is breaking if it's not an actual, intended escape character).

Also, as a going forward, make sure to set your logging to debug (config.ini, set logging_level = 2 or start Mylar with the -v switch). You're missing a whole bunch of info that's logged with debugging enabled, with INFO level logging set as you have its not very helpful when troubleshooting.
summerside
Posts: 20
Joined: Fri Jan 19, 2018 8:05 pm

Re: ComicID loop

Post by summerside »

Thanks again. Updated the file path for the comics. Here is a copy of the debug:

30-Jan-2021 21:23:42 - DEBUG :: mylar.provider_sequence.1254 : MainThread : Original provider_order sequence: 0, dognzb, 1, nzb.su, 2, NZBGeek
30-Jan-2021 21:23:42 - DEBUG :: mylar.provider_sequence.1257 : MainThread : Provider sequence already pre-exists. Re-loading and adding/remove any new entries
30-Jan-2021 21:23:42 - DEBUG :: mylar.provider_sequence.1339 : MainThread : Provider Order is now set : {'0': 'dognzb', '1': 'nzb.su', '2': 'NZBGeek'}
30-Jan-2021 21:23:42 - DEBUG :: mylar.configure.898 : MainThread : Log dir: S:\NZB\Mylar3\logs
30-Jan-2021 21:23:42 - DEBUG :: mylar.configure.917 : MainThread : [Cache Check] Cache directory not found in configuration. Defaulting location to : S:\NZB\Mylar3\cache
30-Jan-2021 21:23:42 - DEBUG :: mylar.configure.966 : MainThread : [Grabbag Directory] Setting One-Off directory to default location: S:/NZB/Comics\Grabbag
30-Jan-2021 21:23:42 - INFO :: mylar.configure.1029 : MainThread : [COMICTAGGER] Version detected: 1.3.4
30-Jan-2021 21:23:42 - DEBUG :: mylar.configure.1068 : MainThread : [COMICTAGGER] Setting ComicTagger settings default path to : S:\NZB\Mylar3\.ComicTagger
30-Jan-2021 21:23:42 - INFO :: mylar.initialize.193 : MainThread : Checking to see if the database has all tables....
30-Jan-2021 21:23:42 - INFO :: mylar.dbcheck.1341 : MainThread : Ensuring DB integrity - Removing all Erroneous Comics (ie. named None)
30-Jan-2021 21:23:42 - INFO :: mylar.dbcheck.1343 : MainThread : Correcting Null entries that make the main page break on startup.
30-Jan-2021 21:23:42 - INFO :: mylar.initialize.207 : MainThread : Successfully discovered local IP and locking it in as : 172.16.1.104
30-Jan-2021 21:23:42 - DEBUG :: mylar.initialize.219 : MainThread : Logger set to use : Rotational Log Handler (default)
30-Jan-2021 21:23:42 - DEBUG :: mylar.initialize.221 : MainThread : ConcurrentLogHandler package not installed. Using builtin log handler for Rotational logs (default)
30-Jan-2021 21:23:42 - DEBUG :: mylar.initialize.222 : MainThread : [Windows Users] If you are experiencing log file locking and want this auto-enabled, you need to install Python Extensions for Windows ( http://sourceforge.net/projects/pywin32/ )
30-Jan-2021 21:23:42 - DEBUG :: mylar.initialize.252 : MainThread : SEARCH_TIER_DATE set to : 2021-01-16
30-Jan-2021 21:23:42 - INFO :: mylar.initialize.269 : MainThread : Remapping the sorting to allow for new additions.
30-Jan-2021 21:23:42 - INFO :: mylar.ComicSort.750 : MainThread : Sucessfully ordered -1 series in your watchlist.
30-Jan-2021 21:23:42 - INFO :: mylar.validateAndCreateDirectory.1723 : MainThread : [DIRECTORY-CHECK] Found comic directory: S:\NZB\Mylar3
30-Jan-2021 21:23:42 - INFO :: mylar.initialize.73 : MAIN : Starting Mylar on http://0.0.0.0:8090/
30-Jan-2021 21:23:43 - INFO :: mylar.getVersion.192 : MAIN : [LAST_RELEASE] Branch: master
30-Jan-2021 21:23:43 - INFO :: mylar.getVersion.197 : MAIN : [LAST_RELEASE] Version: v0.4.9.4
30-Jan-2021 21:23:43 - INFO :: mylar.getVersion.200 : MAIN : [LAST_RELEASE] Commit:
30-Jan-2021 21:23:44 - INFO :: mylar.getVersion.214 : MAIN : Current Release Name: It's not who I am underneath, but what I do that defines me.
30-Jan-2021 21:23:44 - INFO :: mylar.getVersion.221 : MAIN : Branch detected & set to : master
30-Jan-2021 21:23:44 - DEBUG :: mylar.versionload.365 : MAIN : version_info: {'current_version': ', 'current_version_name': 'v0.4.9.4', 'branch': ' master', 'current_release_name': "It's not who I am underneath, but what I do that defines me."}
30-Jan-2021 21:23:44 - INFO :: mylar.versionload.385 : MAIN : Version information: master []
30-Jan-2021 21:23:44 - INFO :: mylar.start.363 : MAIN : DB Updater sccheduled to fire every 5 minutes
30-Jan-2021 21:23:44 - DEBUG :: mylar.start.383 : MAIN : [AUTO-SEARCH] Scheduling next run @ 2021-01-31 15:23:44.238612 every 360 minutes
30-Jan-2021 21:23:44 - INFO :: mylar.queue_schedule.532 : MAIN : [SEARCH-QUEUE] Attempting to background load the search queue....
30-Jan-2021 21:23:44 - INFO :: mylar.queue_schedule.535 : MAIN : [SEARCH-QUEUE] Successfully started the Search Queuer...
30-Jan-2021 21:23:44 - INFO :: mylar.queue_schedule.543 : MAIN : [POST-PROCESS-QUEUE] Post Process queue enabled & monitoring for api requests....
30-Jan-2021 21:23:44 - INFO :: mylar.queue_schedule.546 : MAIN : [POST-PROCESS-QUEUE] Succesfully started Post-Processing Queuer....
30-Jan-2021 21:23:44 - INFO :: mylar.start.412 : MAIN : [WEEKLY] Checking for existance of Weekly Comic listing...
30-Jan-2021 21:23:44 - DEBUG :: mylar.start.437 : MAIN : [WEEKLY] Scheduling next run for @ 2021-01-31 06:08:34.079528 every 4 hours
30-Jan-2021 21:23:44 - INFO :: mylar.start.478 : MAIN : Firing up the Background Schedulers now....
30-Jan-2021 21:23:44 - INFO :: mylar.start.482 : MAIN : Background Schedulers successfully started...
30-Jan-2021 21:23:55 - INFO :: mylar.addbyid.533 : CP Server Thread-9 : Attempting to add directly by ComicVineID: 132273
30-Jan-2021 21:23:58 - DEBUG :: mylar.GetComicInfo.233 : Thread-12 : number of issues I counted: 3
30-Jan-2021 21:23:58 - DEBUG :: mylar.GetComicInfo.234 : Thread-12 : number of issues CV says it has: 3
30-Jan-2021 21:23:58 - DEBUG :: mylar.GetComicInfo.240 : Thread-12 : vari is set to: no
30-Jan-2021 21:23:58 - DEBUG :: mylar.GetComicInfo.541 : Thread-12 : comic[ComicVersion]:None
30-Jan-2021 21:23:58 - DEBUG :: mylar.GetComicInfo.541 : Thread-12 : comic[ComicVersion]:None
30-Jan-2021 21:23:58 - INFO :: mylar.addComictoDB.131 : Thread-12 : Now adding/updating: The Witcher: Fading Memories
30-Jan-2021 21:23:58 - INFO :: mylar.addComictoDB.184 : Thread-12 : Sucessfully retrieved details for The Witcher: Fading Memories
30-Jan-2021 21:23:58 - INFO :: mylar.addComictoDB.195 : Thread-12 : Previous version detected as None - seeing if update required
30-Jan-2021 21:23:58 - ERROR :: mylar.excepthook.315 : Thread-12 : Uncaught exception: Traceback (most recent call last):
File "S:\NZB\Mylar3\mylar\logger.py", line 337, in new_run
old_run(*args, **kwargs)
File "C:\Users\summe\AppData\Local\Programs\Python\Python38\lib\threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "S:\NZB\Mylar3\mylar\importer.py", line 228, in addComictoDB
comvalues = dothedew.folder_create()
File "S:\NZB\Mylar3\mylar\filers.py", line 71, in folder_create
folder_format = re.sub('/', '\\', folder_format).strip()
File "C:\Users\summe\AppData\Local\Programs\Python\Python38\lib\re.py", line 208, in sub
return _compile(pattern, flags).sub(repl, string, count)
File "C:\Users\summe\AppData\Local\Programs\Python\Python38\lib\re.py", line 325, in _subx
template = _compile_repl(template, pattern)
File "C:\Users\summe\AppData\Local\Programs\Python\Python38\lib\re.py", line 316, in _compile_repl
return sre_parse.parse_template(repl, pattern)
File "C:\Users\summe\AppData\Local\Programs\Python\Python38\lib\sre_parse.py", line 972, in parse_template
s = Tokenizer(source)
File "C:\Users\summe\AppData\Local\Programs\Python\Python38\lib\sre_parse.py", line 232, in __init__
self.__next()
File "C:\Users\summe\AppData\Local\Programs\Python\Python38\lib\sre_parse.py", line 245, in __next
raise error("bad escape (end of pattern)",
re.error: bad escape (end of pattern) at position 0
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: ComicID loop

Post by evilhero »

Go to the configuration tab, and generate a carepackage file (upper right corner). Upload it somewhere, and then paste the link in here so I can see it.

You still have slashes ( / ) going the wrong way:

Code: Select all

S:/NZB/Comics\Grabbag
Which means your comic location path is still wrongly slashed, or something else related to the slash is incorrect. Doing things like this back and forth is not getting it done, so the carepackage will let me figure it out quickly.
summerside
Posts: 20
Joined: Fri Jan 19, 2018 8:05 pm

Re: ComicID loop

Post by summerside »

Thanks...not sure why it added a backwards slash...the comic location is entered exactly like this S:/NZB/Comics

Here is the link for the care package

https://www.dropbox.com/s/x0ta2kgnuofsf ... e.zip?dl=0
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: ComicID loop

Post by evilhero »

If you have it currently as S:/NZB/Comics, then that's the problem - those slashes are all Linux-based ( /), they should all be set to work on a windows system, which is \ (ie. S:\NZB\Comics) - the paths are denoted from the OS being used.
Post Reply