BenjV / autosub-bootstrapbill

Bootstrapbill version of autosub
25 stars 11 forks source link

Autosub crash bij diskscan (UnboundLocalError: local variable 'extra_info' referenced before assignment) #14

Closed Magikarplvl4 closed 8 years ago

Magikarplvl4 commented 8 years ago

Bij een frisse installatie van autosub krijg ik bij het scannen van missende subtitels na verloop van tijd onderstaande error en stopt autosub in zijn geheel er mee.

Autosub draait op een Windows 10 64Bit pc.

2016-06-27 00:39:00,036 DEBUG  downloadSubs: Scraper for subscene.com is chosen for subtitle Arrow.S01E18.Salvation.1080p.WEB-DL.DD5.1.H.264-BS-Obfuscated
2016-06-27 00:39:07,332 DEBUG  downloadSubs: Saving the subtitle file P:\Series\Arrow\Season 1\Arrow.S01E18.Salvation.1080p.WEB-DL.DD5.1.H.264-BS-Obfuscated.en.srt to the filesystem.
2016-06-27 00:39:07,380 INFO  downloadSubs: Subtitle Arrow.S01E18.480p.WEB-DL.x264-mSD.HI is downloaded from subscene.com
2016-06-27 00:39:07,395 DEBUG  downloadSubs: Finished for Arrow.S01E18.Salvation.1080p.WEB-DL.DD5.1.H.264-BS-Obfuscated
2016-06-27 00:39:07,411 DEBUG  checkSub: trying to get a downloadlink for Arrow.S01E19.Unfinished.Business.1080p.WEB-DL.DD5.1.H.264-BS-Obfuscated, language is ['English']
2016-06-27 00:39:07,427 DEBUG  checkSub: ID's are. IMDB: 2193021, Addic7ed: None
2016-06-27 00:39:07,427 DEBUG  getSubLinks: Show ID: 2193021 - Addic7ed ID: None - Language: ['English'] - Title: Arrow
2016-06-27 00:39:07,443 DEBUG  getSubLinks: SubtitlesSeeker search started for sites: ['podnapisi.net', 'subscene.com']
Traceback (most recent call last):
  File "C:\autosub\autosub\Scheduler.py", line 21, in __init__
    self.command.run()
  File "C:\autosub\autosub\checkSub.py", line 73, in run
    SubsNL,SubsEN = autosub.getSubLinks.getSubLinks(Wanted)
  File "C:\autosub\autosub\getSubLinks.py", line 208, in getSubLinks
    scoreListSubSeekerNL,scoreListSubSeekerEN = SubtitleSeeker(Wanted, sourceWebsites)
  File "C:\autosub\autosub\getSubLinks.py", line 61, in SubtitleSeeker
    NameDict = ProcessFilename(Item['release'],Wanted['container'])
  File "C:\autosub\autosub\ProcessFilename.py", line 142, in ProcessFilename
    if extra_info:
UnboundLocalError: local variable 'extra_info' referenced before assignment
cnaam commented 8 years ago

na update bij scandir stop het scannen met een error en gaat gewoon zoeken naar ondertitels en de andere bestanden worden niet meer meegenomen.

2016-06-30 13:52:51,953 DEBUG getShowid: Returned ID's - IMDB: 4474344, Addic7ed: 5305, ShowName: Blindspot 2016-06-30 13:52:51,967 INFO scanDir: ['Dutch'] WANTED FOR: Blindspot.S01E23.HDTV.x264-LOL.mkv 2016-06-30 13:52:51,983 DEBUG scanDisk: directory name: \thuis\root\tv serie\Blue Bloods 2016-06-30 13:52:52,078 DEBUG scanDisk: directory name: \thuis\root\tv serie\Blue Bloods\serie 06 2016-06-30 13:52:52,092 ERROR scanDir: Something went wrong scanning the folders. Message is: local variable 'extra_info' referenced before assignment 2016-06-30 13:52:52,092 INFO checkSub: Starting round of subs searching. 2016-06-30 13:52:52,108 DEBUG checkSub: Skipped for not meeting the minmatch score. File is: Animal.Kingdom.US.S01E01.HDTV.x264-2HD 2016-06-30 13:52:52,125 DEBUG checkSub: Skipped for not meeting the minmatch score. File is: Animal.Kingdom.US.S01E02.HDTV.x264-LOL 2016-06-30 13:52:52,125 DEBUG checkSub: Skipped for not meeting the minmatch score. File is:

jbreuer95 commented 8 years ago

Ik krijg precies dezelfde error als @whitecollar17

ewf75 commented 8 years ago

Same problem. I have it fixed by adding the line 'extra_info = None' after the line 'releasegrp = None' in file ProcessFileName.py

jbreuer95 commented 8 years ago

@ewf75 i did that but now i get this:

Exception in thread HTTPServer Thread-1: Traceback (most recent call last): File "/usr/local/python/lib/python2.7/threading.py", line 801, in __bootstrap_inner self.run() File "/usr/local/python/lib/python2.7/threading.py", line 754, in run self.__target(*self.__args, **self.__kwargs) File "/volume1/@appstore/AutoSub-BootstrapBill/cherrypy/process/servers.py", line 187, in _start_http_thread self.httpserver.start() File "/volume1/@appstore/AutoSub-BootstrapBill/cherrypy/wsgiserver/wsgiserver2.py", line 1816, in start self.bind(af, socktype, proto) File "/volume1/@appstore/AutoSub-BootstrapBill/cherrypy/wsgiserver/wsgiserver2.py", line 1882, in bind self.socket.bind(self.bind_addr) File "/usr/local/python/lib/python2.7/socket.py", line 228, in meth return getattr(self._sock,name)(*args) TypeError: an integer is required

ewf75 commented 8 years ago

@jbreuer95 Seems socket binding issues. The webserver couldn't start. Is the port already in use or is the configuration correct (file config.properties)?

In the configuratie file there is a section 'webserver' with properties webserverip, webserverport, etc.

jbreuer95 commented 8 years ago

@ewf75 i did a reinstall and changed the line again, no crashes so far :)

jbreuer95 commented 8 years ago

@ewf75 same error again, changed the port but no luck :(

ewf75 commented 8 years ago

@jbreuer95 I downloaded the zip file from this site and unpacked in a different folder. Start Autosub without any problems with default configuration. Did you check the requirements?

BenjV commented 8 years ago

Problem solved in the latest version (0.8.11)