Error on mylar startup

Post any problems / bugs / issues that are Mylar-related in here.
Post Reply
musictrivianut
Posts: 19
Joined: Fri Jun 10, 2016 10:07 am

Error on mylar startup

Post by musictrivianut »

As always, did a quick search and did find some other errors, but nothing that looked like this. Apologies if it has been covered, please just point me in the right direction.

Immediately upon restarting the mylar service (Ubuntu), the logs show an UnboundLocalError in local variable "targ". Pasting entire DEBUG log from restart to said error below, but the req_test.py reference has me looking through the checks and it looks like mylar does not like the later version of cheroot? Seems to be the only FAIL in there.

On a side note, if you can figure out from the logs why mylar still isn't showing the correct version number (it displays [None]), that would be bonus. If not, no worries.

Code: Select all

Timestamp		Level	Message
2023-02-17 11:01:32	ERROR	Uncaught exception: Traceback (most recent call last):
					File "/home/wayne/git/mylar3/Mylar.py", line 496, in
					main()
					File "/home/wayne/git/mylar3/Mylar.py", line 462, in main
					r.loaders()
					File "/home/wayne/git/mylar3/mylar/req_test.py", line 52, in loaders
					self.check_the_pip()
					File "/home/wayne/git/mylar3/mylar/req_test.py", line 144, in check_the_pip
					pip_message = "%s installed %s %s required" % (x['pip_version'], targ, x['req_version'])
					UnboundLocalError: local variable 'targ' referenced before assignment
2023-02-17 11:01:32	DEBUG	[user_agent2] REQUIRED: 2021.12.11 ---> INSTALLED: 2021.12.11 [OK]
2023-02-17 11:01:32	DEBUG	[urllib3] REQUIRED: 1.25.7 ---> INSTALLED: 1.26.5 [OK]
2023-02-17 11:01:32	DEBUG	[tzlocal] REQUIRED: 2.0.0 ---> INSTALLED: 4.2 [OK]
2023-02-17 11:01:32	DEBUG	[six] REQUIRED: 1.13.0 ---> INSTALLED: 1.16.0 [OK]
2023-02-17 11:01:32	DEBUG	[simplejson] REQUIRED: 3.17.0 ---> INSTALLED: 3.18.3 [OK]
2023-02-17 11:01:32	DEBUG	[requests] REQUIRED: 2.22.0 ---> INSTALLED: 2.25.1 [OK]
2023-02-17 11:01:32	DEBUG	[rarfile] REQUIRED: 4.0 ---> INSTALLED: 4.0 [OK]
2023-02-17 11:01:32	DEBUG	[pytz] REQUIRED: 2019.3 ---> INSTALLED: 2022.1 [OK]
2023-02-17 11:01:32	DEBUG	[pystun] REQUIRED: 0.1.0 ---> INSTALLED: 0.1.0 [OK]
2023-02-17 11:01:32	DEBUG	[portend] REQUIRED: 2.6 ---> INSTALLED: 3.1.0 [OK]
2023-02-17 11:01:32	DEBUG	[Pillow] REQUIRED: 8 ---> INSTALLED: 9.4.0 [OK]
2023-02-17 11:01:32	DEBUG	[natsort] REQUIRED: 3.5.2 ---> INSTALLED: 8.2.0 [OK]
2023-02-17 11:01:32	DEBUG	[Mako] REQUIRED: 1.1.0 ---> INSTALLED: 1.2.4 [OK]
2023-02-17 11:01:32	DEBUG	[feedparser] REQUIRED: 5.2.1 ---> INSTALLED: 6.0.8 [OK]
2023-02-17 11:01:32	DEBUG	[configparser] REQUIRED: 4.0.2 ---> INSTALLED: 5.3.0 [OK]
2023-02-17 11:01:32	DEBUG	[CherryPy] REQUIRED: 18.5.0 ---> INSTALLED: 18.8.0 [OK]
2023-02-17 11:01:32	DEBUG	[cheroot] REQUIRED: 8.2.1 ---> INSTALLED: 9.0.0 [FAIL]
2023-02-17 11:01:32	DEBUG	[cfscrape] REQUIRED: 2.0.8 ---> INSTALLED: 2.1.1 [OK]
2023-02-17 11:01:32	DEBUG	[beautifulsoup4] REQUIRED: 4.8.2 ---> INSTALLED: 4.10.0 [OK]
2023-02-17 11:01:32	DEBUG	[APScheduler] REQUIRED: 3.6.3 ---> INSTALLED: 3.10.0 [OK]
2023-02-17 11:01:31	DEBUG	Python executable location: /usr/bin/python3
2023-02-17 11:01:31	DEBUG	Python Version: Python 3.10.6
2023-02-17 11:01:31	INFO	Version information: master [None]
2023-02-17 11:01:31	DEBUG	version_info: {'current_version': None, 'current_version_name': None, 'branch': 'master', 'current_release_name': None}
2023-02-17 11:01:31	INFO	Branch detected & set to : master
2023-02-17 11:01:31	INFO	Not a Docker installation.
2023-02-17 11:01:30	INFO	Starting Mylar on http://0.0.0.0:8090/
2023-02-17 11:01:30	INFO	Daemonized to PID: 1801067
2023-02-17 11:01:30	INFO	[AUTO-BACKUP] Successful backup of 2 files [['config.ini', 'mylar.db']]
2023-02-17 11:01:30	INFO	Successfully backed up mylar database to /home/wayne/git/mylar3/backup/mylar.db.backup.
2023-02-17 11:01:30	INFO	Attempting to backup mylar database...
2023-02-17 11:01:30	INFO	Successfully backed up config.ini to /home/wayne/git/mylar3/backup/config.ini-v12.backup.
2023-02-17 11:01:30	INFO	Attempting to backup config.ini...
2023-02-17 11:01:30	INFO	[AUTO-BACKUP] Backing up mylar.db & config.ini files for safety.
2023-02-17 11:01:30	INFO	[DIRECTORY-CHECK] Found DATA directory: /home/wayne/git/mylar3
2023-02-17 11:01:30	INFO	Sucessfully ordered 7793 series in your watchlist.
2023-02-17 11:01:29	INFO	Remapping the sorting to allow for new additions.
2023-02-17 11:01:29	INFO	[IMPRINT_LOADS] Successfully loaded imprints for 6 publishers
2023-02-17 11:01:29	INFO	[IMPRINT_LOADS] Loading Publisher imprints data from local file.
2023-02-17 11:01:29	DEBUG	SEARCH_TIER_DATE set to : 2023-02-03
2023-02-17 11:01:29	DEBUG	Logger set to use : Rotational Log Handler (default)
2023-02-17 11:01:29	INFO	Successfully discovered local IP and locking it in as : 192.168.1.15
2023-02-17 11:01:29	DEBUG	[DB-CHECK-UPDATE] Nothing needs updating within dB.
2023-02-17 11:01:29	DEBUG	[DB_VERSION_CHECK] Database version is v1
2023-02-17 11:01:29	INFO	checked is None
2023-02-17 11:01:29	DEBUG	writing: keys - {'active': '0', 'lastrun': 0, 'type': 'experimental', 'hits': 0}: vals - {'id': 101, 'provider': 'experimental'}
2023-02-17 11:01:29	DEBUG	writing: keys - {'active': '0', 'lastrun': 0, 'type': 'experimental', 'hits': 0}: vals - {'id': 101, 'provider': 'experimental'}
2023-02-17 11:01:29	DEBUG	writing: keys - {'active': '0', 'lastrun': 0, 'type': 'experimental', 'hits': 0}: vals - {'id': 101, 'provider': 'experimental'}
2023-02-17 11:01:29	DEBUG	writing: keys - {'active': '0', 'lastrun': 0, 'type': 'experimental', 'hits': 0}: vals - {'id': 101, 'provider': 'experimental'}
2023-02-17 11:01:29	DEBUG	writing: keys - {'active': '0', 'lastrun': 0, 'type': 'experimental', 'hits': 0}: vals - {'id': 101, 'provider': 'experimental'}
2023-02-17 11:01:29	DEBUG	writing: keys - {'active': '0', 'lastrun': 0, 'type': 'experimental', 'hits': 0}: vals - {'id': 101, 'provider': 'experimental'}
2023-02-17 11:01:29	DEBUG	Provider Order is now set : {'0': 'Experimental', '1': 'DDL(GetComics)', '2': 'NZBgeek (Prowlarr)', '3': 'Nzb.su (Prowlarr)', '4': 'NzbPlanet (Prowlarr)', '5': 'RuTracker (Prowlarr)'}
2023-02-17 11:01:29	DEBUG	Provider sequence already pre-exists. Re-loading and adding/remove any new entries
2023-02-17 11:01:29	DEBUG	Original provider_order sequence: 0, Experimental, 1, DDL(GetComics), 2, NZBgeek (Prowlarr), 3, Nzb.su (Prowlarr), 4, NzbPlanet (Prowlarr), 5, RuTracker (Prowlarr)
2023-02-17 11:01:29	INFO	[]oldconfig_version: 12
2023-02-17 11:01:29	INFO	Correcting Null entries that make the main page break on startup.
2023-02-17 11:01:28	INFO	Ensuring DB integrity - Removing all Erroneous Comics (ie. named None)
2023-02-17 11:01:28	INFO	Checking to see if the database has all tables....
2023-02-17 11:01:28	DEBUG	Configuration written to disk.
2023-02-17 11:01:28	DEBUG	Writing configuration to file
2023-02-17 11:01:28	INFO	[Search Tier Cutoff] Setting Tier-1 cutoff point to 14 days
2023-02-17 11:01:28	INFO	Setting DDL Location set to : /home/wayne/git/mylar3/cache
2023-02-17 11:01:28	DEBUG	[COMICTAGGER] Setting ComicTagger settings default path to : /home/wayne/.ComicTagger
2023-02-17 11:01:28	INFO	[COMICTAGGER] Version detected: 1.3.5
2023-02-17 11:01:28	INFO	[PROBLEM_DATES] Problem dates loaded: ['2021-07-14 04:00:34']
2023-02-17 11:01:28	INFO	[IGNORE_SEARCH_WORDS] Words to flag search result as invalid: ['.exe', '.iso', 'pdf-xpost', 'pdf', 'ebook']
2023-02-17 11:01:28	INFO	[MASS_PUBLISHERS] Auto-add for weekly publishers set to: []
2023-02-17 11:01:28	INFO	Ignored Publishers: ['panini comics', 'delcourt', 'planeta deagostini', 'abril', 'egmont', 'ecc ediciones', 'Ediciones Zinco', 'Semic', 'Murray Comics', 'Editora Brasil-América Limitada', 'Editorial Bruguera', 'Egmont Polska', 'Epucol', 'Edizioni Williams Inteuropa', 'Sage - Sagédition', 'Grupo Editorial Vid', 'Taint Comix', 'London Editions Magazines', 'Xenos Verlag', 'Vjesnik', 'Norbert Hethke Verlag', 'Welsh Publishing Group', 'Bastei Verlag', 'M-Press', 'Eaglemoss Collections', 'Eaglemoss Publications', 'Norma Editorial', 'RW Uitgeverij', 'Urban Comics', 'De Vliegende Hollander', 'Carlsen Comics', 'JuniorPress BV', 'Gwandanaland Comics', 'Dino Comics', 'Editorial Televisa', 'World Distributors', 'Power Records', 'Peter Pan Records', 'Conder Verlag', 'Antarctic Press', 'Robert Gabor Verlag', 'Feest Comics', 'Checker Book Publishing Group', 'Tokyopop', 'Cross Cult', 'Z-Press Junior Media', 'Marvel Italia', 'Newton comics', 'kodansha', 'splitter', 'battlebooks incorporated', 'infinity verlag', 'graph zeppelin']
2023-02-17 11:01:28	DEBUG	[Grabbag Directory] Setting One-Off directory to default location: /files/Comics/comics/Grabbag
2023-02-17 11:01:28	DEBUG	Log dir: /home/wayne/git/mylar3/logs
Showing 1 to 71 of 71 linesFirstPrevious1NextLast
musictrivianut
Posts: 19
Joined: Fri Jun 10, 2016 10:07 am

Re: Error on mylar startup

Post by musictrivianut »

Hmm, a follow-up.

Looking at the requirements.txt file, it shows:

cheroot==8.2.1

Mylar very specifically wants version 8.2.1.

I know next to nothing about python. Am I okay to change == to >= like the others or is there something specific about 8.2.1 that 9.0.0 and above won't handle that mylar requires?

Thanks much!
Post Reply