Type error : xml file for window is missing

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
jabawack69 Offline
Junior Member
Posts: 30
Joined: Aug 2010
Reputation: 0
Post: #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: ScreenshotMO.png]

Type error : xml file for window is missing

Before, I run XBMC on WindowsXP, No problem.

What should do i for solve this problem?
(This post was last modified: 2010-08-27 10:27 by jabawack69.)
find quote
spiff Offline
Grumpy Bastard Developer
Posts: 12,181
Joined: Nov 2003
Reputation: 82
Post: #2
linux is case sensitive. you probably have Main.xml or some variant.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
Nuka1195 Offline
Skilled Python Coder
Posts: 3,917
Joined: Dec 2004
Reputation: 17
Post: #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/
find quote
jabawack69 Offline
Junior Member
Posts: 30
Joined: Aug 2010
Reputation: 0
Post: #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?
find quote
spiff Offline
Grumpy Bastard Developer
Posts: 12,181
Joined: Nov 2003
Reputation: 82
Post: #5
you are asking for *main.xml* not Main.xml. case sensitive. capiche?

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
jabawack69 Offline
Junior Member
Posts: 30
Joined: Aug 2010
Reputation: 0
Post: #6
sorry, my file is "main.xml". correct

Where should i move this file,main.xml?
find quote
jabawack69 Offline
Junior Member
Posts: 30
Joined: Aug 2010
Reputation: 0
Post: #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?
find quote
spiff Offline
Grumpy Bastard Developer
Posts: 12,181
Joined: Nov 2003
Reputation: 82
Post: #8
default -> Default i believe.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
jabawack69 Offline
Junior Member
Posts: 30
Joined: Aug 2010
Reputation: 0
Post: #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.
find quote