ZeroQI / Hama.bundle

Plex HTTP Anidb Metadata Agent (HAMA)
GNU General Public License v3.0
1.21k stars 113 forks source link

Hama, 'no such file' error even when I have the file #461

Closed VXsz closed 3 years ago

VXsz commented 3 years ago

Getting this error in the system logs, I'm not sure what is the exact problem but it might be a permission problem, since it can't access the file for some reason (it's there)

2021-05-03 03:38:44,739 (341c) :  CRITICAL (core:574) - Exception reading file C:\Users\ivxsz\AppData\Local\Plex Media Server\Plug-ins\Hama.bundle\Contents\Info.plist (most recent call last):
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-20536d6fc\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\storage.py", line 55, in load
    f = open(filename, mode)
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-20536d6fc\Framework.bundle\Contents\Resources\Versions\2\Python\subsystem\ospathfix.py", line 70, in builtins_open
    return __builtins__['_open'](longpathify(uni(filename)), mode, buffering)
IOError: [Errno 2] No such file or directory: u'\\\\?\\C:\\Users\\ivxsz\\AppData\\Local\\Plex Media Server\\Plug-ins\\Hama.bundle\\Contents\\Info.plist'

2021-05-03 03:38:44,739 (485c) :  DEBUG (runtime:814) - Found route matching /system/scanners/2
2021-05-03 03:38:44,740 (341c) :  CRITICAL (core:574) - Exception adding bundle: Hama.bundle (most recent call last):
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-20536d6fc\System.bundle\Contents\Code\bundleservice.py", line 124, in update_bundles
    bundle = BundleInfo(self.system, path, plugin)
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-20536d6fc\System.bundle\Contents\Code\bundleservice.py", line 18, in __init__
    self.load_plist()
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-20536d6fc\System.bundle\Contents\Code\bundleservice.py", line 22, in load_plist
    plist = Plist.ObjectFromString(Core.storage.load(Core.storage.join_path(self.path, "Contents", "Info.plist")))
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-20536d6fc\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api\parsekit.py", line 32, in ObjectFromString
    check_size(string, max_size)
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-20536d6fc\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api\parsekit.py", line 22, in check_size
    if len(data) > max_size:
TypeError: object of type 'NoneType' has no len()
VXsz commented 3 years ago

I'm an idiot, pardon me

I had the zipped file there, never extracted the -master folder inside (actually I tried extracting then re-compressing it without the master parent directory), for some reason I didn't saw it in the installation there at first