Kodi Community Forum

Full Version: xbmcaddon.Addon() access_voilation
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey all, got an error when I'm trying to get the addonid, I always used to do this in my default.py file:

Code:
import xbmcaddon
__addon__ = xbmcaddon.Addon()
__addon_id__  = __addon__.getAddonInfo('id')

But now it gives me:
Error Type: <type 'exceptions.RuntimeError'>
Error Contents: access_voilation

I deleted everything except those two lines:
Code:
import xbmcaddon
__addon__ = xbmcaddon.Addon()

and I still get the error message. I've been stuck on this for 5 hours and I can't find the solution or find any help from google.