Traceback error when searching for comics

Post any problems / bugs / issues that are Mylar-related in here.
Post Reply
iNeedScissors61!
Posts: 1
Joined: Tue May 05, 2020 3:36 pm

Traceback error when searching for comics

Post by iNeedScissors61! »

I am trying to get a specific run of comics and the search crashes with a python traceback error.

here is the log portion where it fails.

Code: Select all

15-Jan-2021 08:43:58 - INFO    :: mylar.NZB_SEARCH.807 : SEARCH-QUEUE : Shhh be very quiet...I'm looking for Star Wars: Doctor Aphra issue: 1 (2020) using DDL.
15-Jan-2021 08:44:00 - INFO    :: mylar.search_results.174 : SEARCH-QUEUE : There are 12 results
15-Jan-2021 08:44:00 - ERROR   :: mylar.searchforissue.3183 : SEARCH-QUEUE : Traceback (most recent call last):
  File "/app/mylar3/mylar/search.py", line 1401, in NZB_SEARCH
    comsize_b = helpers.human2bytes(entry['size'])
  File "/app/mylar3/mylar/helpers.py", line 189, in human2bytes
    assert float(num) and letter in symbols
ValueError: could not convert string to float: '-'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/app/mylar3/mylar/search.py", line 3111, in searchforissue
    foundNZB, prov = search_init(
  File "/app/mylar3/mylar/search.py", line 520, in search_init
    findit = NZB_SEARCH(
  File "/app/mylar3/mylar/search.py", line 1403, in NZB_SEARCH
    tmpsz = entry.enclosures[0]
AttributeError: 'dict' object has no attribute 'enclosures'
Traceback (most recent call last):
  File "/app/mylar3/mylar/search.py", line 1401, in NZB_SEARCH
    comsize_b = helpers.human2bytes(entry['size'])
  File "/app/mylar3/mylar/helpers.py", line 189, in human2bytes
    assert float(num) and letter in symbols
ValueError: could not convert string to float: '-'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/app/mylar3/mylar/search.py", line 3111, in searchforissue
    foundNZB, prov = search_init(
  File "/app/mylar3/mylar/search.py", line 520, in search_init
    findit = NZB_SEARCH(
  File "/app/mylar3/mylar/search.py", line 1403, in NZB_SEARCH
    tmpsz = entry.enclosures[0]
AttributeError: 'dict' object has no attribute 'enclosures'
I also have the carepackage.zip but I don't know how to attach it to this thread.
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: Traceback error when searching for comics

Post by evilhero »

Yeah, it's a DDL error that's thrown when a pack is returned before the relevant issues - but the pack doesn't have a filesize attached to it since it's being generated.

Normally if you try it later in the day, it'll work fine since the pack will have a filesize attached to it at that point and it won't throw the error.

There's a patch that's going into python3-dev today that will address the error (it doesn't stop anything from searching that's after, but it will not continue to search for the given issue that it throws that error on).
Post Reply