Type error : xml file for window is missing
#1
Help me!

I Run XBMC on Ubuntu 9.10

Code:
import xbmc,xbmcgui

import os



CWD = os.getcwd()

print CWD

__language__ = xbmc.Language(CWD).getLocalizedString

print xbmc.getLanguage()

ACTION_EXIT_SCRIPT      = (9, 10)



class MainGUI(xbmcgui.WindowXML):

        def __init__(self,*args,**kwargs):

                xbmcgui.WindowXML.__init__(self)

        

        #playList=xbmc.PlayList(1)

        #playList.clear()



        #listitem = xbmcgui.ListItem('Introduction - Strings',

        #thumbnailImage='D:\Project\python-logo-glassy.png')

        #url = 'C:\Documents and Settings\Administrator\Application Data\XBMC\scripts\VideoPython\Introduction_Strings.flv'

        #playList.add(url, listitem)



        #listitem = xbmcgui.ListItem('Lists and Sorting',

        #thumbnailImage='D:\Project\python-logo-glassy.png')

        #url = 'C:\Documents and Settings\Administrator\Application Data\XBMC\scripts\VideoPython\Lists and Sorting.mp4'

        #playList.add(url, listitem)

        

        #listitem = xbmcgui.ListItem('Dicts and Files',

        #thumbnailImage='D:\Project\python-logo-glassy.png')

        #url = 'C:\Documents and Settings\Administrator\Application Data\XBMC\scripts\VideoPython\DictsandFiles.flv'

        #playList.add(url, listitem)



        #xbmc.Player().play(playList,'', 1)

        

        def onInit(self):

                pass

        def onAction(self,action):

                if (action in ACTION_EXIT_SCRIPT):

                        self.close()

        def onClick(self,controlId):

                pass

        def onFocus(self,controlId):

                pass



if __name__ == '__main__':

        ui = MainGUI("main.xml",CWD)

        ui.doModal()

        del ui

Result

Image

Type error : xml file for window is missing

Before, I run XBMC on WindowsXP, No problem.

What should do i for solve this problem?
Reply
#2
linux is case sensitive. you probably have Main.xml or some variant.
Reply
#3
your using an old version of xbmc, there is no more scripts output window.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#4
From this code

Main.xml into path --> /home/xbmc/.xbmc/scripts/My Scripts/window/resources/skins/default/PAL

Where should i move this file,Main.xml?
Reply
#5
you are asking for *main.xml* not Main.xml. case sensitive. capiche?
Reply
#6
sorry, my file is "main.xml". correct

Where should i move this file,main.xml?
Reply
#7
Nuka1195 Wrote:your using an old version of xbmc, there is no more scripts output window.

i am using an old version of xbmc, i will update xbmc in Ubuntu.Howto?
Reply
#8
default -> Default i believe.
Reply
#9
spiff Wrote:default -> Default i believe.

Thank you very much.

My problem is solved.

change path --> /home/xbmc/.xbmc/scripts/My Scripts/window/resources/skins/default --> Default

Oh! it easy, but I'm so stupid. lol

Thanks again.
Reply
#10
Thanks for this post. It really helped me out.
Reply

Logout Mark Read Team Forum Stats Members Help
Type error : xml file for window is missing1