Kodi Community Forum

Full Version: Can you help me fix my add-on? (Dependencies not met)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I was running Frodo. Did a fresh install of Openelec 4.06 (XBMC Gotham) and my plugin that I made won't install. It says "dependencies not met". Maybe someone can tell me what I need to change? Or do I have to do a complete rewrite? It's a very simple add-on that just resumes what was playing before power was cut off. It's been a long time since I had to mess with it.

import os
import xbmc
import xbmcaddon
from time import sleep

ADDON = xbmcaddon.Addon()
ADDON_ID = ADDON.getAddonInfo('id')
FOLDER = ADDON.getSetting('autoresume.save.folder').encode('utf-8', 'ignore')
FREQUENCY = int(ADDON.getSetting('autoresume.frequency'))
PATH = os.path.join(FOLDER, 'autoresume.txt')

def resume():
  for x in range(0,120):
    if os.path.exists(FOLDER):
      if os.path.exists(PATH):
        # Read from autoresume.txt.
        f = open(PATH, 'r')
        mediaFile = f.readline().rstrip('\n')
        position = float(f.readline())
        # Play file.
        # Seek to last recorded position.
      # If the folder didn't exist maybe we need to wait longer for the drive to be mounted.

def recordPosition():
  if xbmc.Player().isPlaying():
    mediaFile = xbmc.Player().getPlayingFile()
    position = xbmc.Player().getTime()
    # Write info to file
    f = open(PATH, 'w')
    if os.path.exists(PATH):

def log(msg):
  xbmc.log("%s: %s" % (ADDON_ID, msg), xbmc.LOGDEBUG)

if __name__ == "__main__":
  while (not xbmc.abortRequested):
Figured it out. In the addon.xml file I had to change the python version from "2.0" to "2.1.0".

<import addon="xbmc.python" version="2.1.0"/>
Glad you fixed it. In case anyone stumbles on this, here's a link to all the python dependency requirements for the various versions of XBMC.

i am new to this, i have kodi 14.1 and when i'm trying to install an addon i have the exact the same problem "dependencies not met". Also when i try to add an repository i can not find it back when i try too install it trough zip inside kodi. I have no idea what too do. Im sorry if im not in the right section For this issue.