evilhero / mylar

An automated Comic Book downloader (cbr/cbz) for use with SABnzbd, NZBGet and torrents
GNU General Public License v3.0
976 stars 171 forks source link

Not downloading or sending file to Sabnzbd+ #35

Closed seckt0r closed 12 years ago

seckt0r commented 12 years ago

28-Set-2012 21:13:07 - INFO :: Thread-16 : Attempting to grab wanted issues for : Superman: Secret Identity Exception in thread Thread-16: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 551, in bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 504, in run self.__target(_self.args, *_self.__kwargs) File "/opt/mylar/mylar/importer.py", line 293, in addComictoDB foundNZB = search.searchforissue(result['IssueID']) File "/opt/mylar/mylar/search.py", line 575, in searchforissue foundNZB = search_init(result['ComicName'], result['Issue_Number'], str(IssueYear), comic['ComicYear']) File "/opt/mylar/mylar/search.py", line 94, in search_init return findit UnboundLocalError: local variable 'findit' referenced before assignment

evilhero commented 12 years ago

Thought we had this bug squashed a few times - can you check that you're running latest commit. Also shutdown Mylar and restart and try again..post back if you're still getting the error message.

AtariBaby commented 12 years ago

My issues are all recurring now, too. Wasn't sure if you could see my updates since that thread is marked as "closed".

evilhero commented 12 years ago

Hmm...ok I guess I need to know when these errors are happening now - the first log shows it was probably on a new comic add and the mark all missing was checked off. I think I can do a quick-fix, but I just need to confirm where the error was (and possibly the mylar log file if available).

seckt0r commented 12 years ago

Sorry for the late replay. I had just cloned your git at that same day... updating again today just to make sure...

seckt0r commented 12 years ago

I don't know how to attach the log file here , but see below the output on the console:

30-Set-2012 08:20:27 - INFO :: MainThread : Checking to see if the database has all tables.... 30-Set-2012 08:20:27 - INFO :: MainThread : Retrieving latest version information from github 30-Set-2012 08:20:29 - INFO :: MainThread : Comparing currently installed version with latest github version 30-Set-2012 08:20:31 - INFO :: MainThread : Mylar is up to date 30-Set-2012 08:20:31 - INFO :: MainThread : Starting Mylar on port: 8090 30-Set-2012 08:21:21 - INFO :: Thread-12 : Now checking files for Batman: The Long Halloween (1996) in /home/benone/Comics/Batman The Long Halloween (1996) 30-Set-2012 08:21:22 - INFO :: Thread-12 : I've found 0 / 13 issues. 30-Set-2012 08:23:09 - INFO :: Thread-13 : Shhh be very quiet...I'm looking for Flashpoint: Project Superman issue: 2.00 using nzb.su 30-Set-2012 08:23:11 - INFO :: Thread-13 : Found Flashpoint: Project Superman (2011) issue: 2 using nzb.su Exception in thread Thread-13: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 551, in bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 504, in run self.__target(_self.args, *_self.__kwargs) File "/opt/mylar/mylar/search.py", line 556, in searchforissue foundNZB = search_init(result['ComicName'], result['Issue_Number'], str(ComicYear), comic['ComicYear']) File "/opt/mylar/mylar/search.py", line 76, in search_init findit = NZB_SEARCH(ComicName, IssueNumber, ComicYear, SeriesYear, nzbprov, nzbpr) File "/opt/mylar/mylar/search.py", line 370, in NZB_SEARCH urllib2.urlretrieve(linkapi, str(mylar.BLACKHOLE_DIR) + str(filenamenzb)) AttributeError: 'module' object has no attribute 'urlretrieve'

evilhero commented 12 years ago

ahh that thing again - ok, newest commit has the urlretrieve error fixed. Let me know if you're still having issues and we can go from there :)

seckt0r commented 12 years ago

Working fine now, thanks. Please keep up the excellent work. This is a dream coming true.