AttributeError: 'NoneType' object has no attribute 'find'
2017-06-11 18:35:03,967 (7f8a6237f700) : CRITICAL (core:615) - Exception starting plug-in (most recent call last):
File "/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Plug-ins-995f1dead/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/core.py", line 608, in start
self.sandbox.execute(self.init_code)
File "/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Plug-ins-995f1dead/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/code/sandbox.py", line 256, in execute
exec(code) in self.environment
File "/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library/Plex Media Server/Plug-ins/Amsa_Test.bundle/Contents/Code/__init__.py", line 2, in <module>
import common, tvdb, anidb, scudlee, logging, functions, constants
File "/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Plug-ins-995f1dead/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/code/sandbox.py", line 333, in __import__
return mod.load_module(_name)
File "/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Plug-ins-995f1dead/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/code/sandbox.py", line 44, in load_module
module = RestrictedModule(name, path, sandbox)
File "/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Plug-ins-995f1dead/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/code/loader.py", line 30, in __init__
exec(code) in self.__dict__
File "/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library/Plex Media Server/Plug-ins/Amsa_Test.bundle/Contents/Code/common.py", line 1, in <module>
import re, time, unicodedata, hashlib, types, os, inspect, datetime, xml, string, tvdb, anidb, scudlee, plex, functions, constants, copy, logging
File "/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Plug-ins-995f1dead/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/code/sandbox.py", line 333, in __import__
return mod.load_module(_name)
File "/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Plug-ins-995f1dead/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/code/sandbox.py", line 44, in load_module
module = RestrictedModule(name, path, sandbox)
File "/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Plug-ins-995f1dead/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/code/loader.py", line 30, in __init__
exec(code) in self.__dict__
File "/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library/Plex Media Server/Plug-ins/Amsa_Test.bundle/Contents/Code/tvdb.py", line 1, in <module>
import constants, functions, lxml, logging
File "/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Plug-ins-995f1dead/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/code/sandbox.py", line 333, in __import__
return mod.load_module(_name)
File "/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Plug-ins-995f1dead/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/code/sandbox.py", line 44, in load_module
module = RestrictedModule(name, path, sandbox)
File "/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Plug-ins-995f1dead/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/code/loader.py", line 30, in __init__
exec(code) in self.__dict__
File "/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library/Plex Media Server/Plug-ins/Amsa_Test.bundle/Contents/Code/functions.py", line 10, in <module>
req_proxy = RequestProxy(sustain=True)
File "/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library/Plex Media Server/Plug-ins/Amsa_Test.bundle/Contents/Libraries/Shared/http/requests/proxy/requestProxy.py", line 53, in __init__
self.proxy_list += parsers[i].parse_proxyList()
File "/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library/Plex Media Server/Plug-ins/Amsa_Test.bundle/Contents/Libraries/Shared/http/requests/parsers/FreeProxyParser.py", line 23, in parse_proxyList
headings = [th.get_text() for th in table.find("tr").find_all("th")]
AttributeError: 'NoneType' object has no attribute 'find'
Looks like an error in the proxy code. This is usually only active when the plugin detects an issue with its connection to AniDB, it's likely that the proxy it was trying to use wasn't working correctly.
I'll look into adding more error handling into this section of code so that it doesn't cause these issues though in the meantime you'll likely see this issue vanish within a few hours as your connection to AniDB becomes available.
@kisuka @moxz I've gone ahead and refreshed the demo release with a fix for this issue, please find it here https://github.com/Dingmatt/AMSA/releases/tag/v0.1.4-alpha-demo7.
If you have any further issues then please let me know.
Works lika a charm for me now.
@moxz Good to hear, I've recently been forced into a bit of a development break for the agent due to rl work commitments but that's almost at an end; the next version will include a number of performance and caching changes, maybe even the release of a version 0.1.4 beta.