Ryan Roth wrote:
Which version of xmame are you using?
>From what I see in version 0.106 the errors and messages go to stderr so
should not affect the parser.
Duncan
> It should be
> /usr/lib/python2.4/site-packages/freevo/games/mame_cache.py
> not
> /usr/lib/python2.4/site-packages/freevo/directory.py
>
>> I changed line 222 in
>> /usr/lib/python2.4/site-packages/freevo/directory.py to fix this issue.
>>
>> from :
>>
>> listinfo = os.popen( mame_cmd + ' --listxml', 'r' )
>>
>> to:
>> os.system( mame_cmd + ' -listxml -out /tmp/roms')
>> listinfo = os.popen( 'cat /tmp/roms', 'r')
>>
>> This error is caused by the fact that when you call the '-listxml'
>> command xmame prints errors and general information also. By using the
>> '-out' option also it allows you to capture ONLY the output from
>> '-listxml' and dump it to a file. Then we can just read that file with
>> the XML parser. This may not be the cleanest way to do this, if
>> /tmp/roms exists it will just add to the file not replace it, but at
>> least we know where the issue is now.
>>
>>
>>> I just upgraded my freevo box to the current SVN and I am getting the
>>> same error. I haven't had time to look into it yet.
>>>
>>>
>>>
>>>
>>>> I get these errors when I attempt to launch MAME. I have mame
>>>> installed. Issuing xmame --listxml gives me a huge data dump of
>>>> information.
>>>>
>>>> My local_conf.py has:
>>>> GAMES_ITEMS = [ ('MAME', '/usr/share/xmame/roms',
>>>> ('MAME', '/usr/bin/xmame', '',
>>>> '/usr/share/xmame/artwork', None))]
>>>>
>>>> Can anyone decode this error?
>>>>
>>>> Jim
>>>>
>>>> Call MAME command : /usr/bin/xmame
>>>> Traceback (most recent call last):
>>>> File "/usr/lib/python2.4/site-packages/freevo/main.py", line 321, in
>>>> eventhandler
>>>> app.eventhandler(event)
>>>> File "/usr/lib/python2.4/site-packages/freevo/menu.py", line 605, in
>>>> eventhandler
>>>> action( arg=arg, menuw=self )
>>>> File "/usr/lib/python2.4/site-packages/freevo/directory.py", line
>>>> 451, in cwd
>>>> self.check_password_and_build(arg=None, menuw=menuw)
>>>> File "/usr/lib/python2.4/site-packages/freevo/directory.py", line
>>>> 506, in check_password_and_build
>>>> self.build(arg=arg, menuw=menuw)
>>>> File "/usr/lib/python2.4/site-packages/freevo/directory.py", line
>>>> 612, in build
>>>> for i in p.get(self, files):
>>>> File "/usr/lib/python2.4/site-packages/freevo/games/__init__.py",
>>>> line 92, in get
>>>> (rm_files, mame_list) = mame_cache.getMameItemInfoList(mame_files,
>>>> cmd)
>>>> File "/usr/lib/python2.4/site-packages/freevo/games/mame_cache.py",
>>>> line 312, in getMameItemInfoList
>>>> mame_ok = updateMameRomList(mame_cmd)
>>>> File "/usr/lib/python2.4/site-packages/freevo/games/mame_cache.py",
>>>> line 289, in updateMameRomList
>>>> mameRomList = mameRomListFromListxml( mame_cmd )
>>>> File "/usr/lib/python2.4/site-packages/freevo/games/mame_cache.py",
>>>> line 222, in mameRomListFromListxml
>>>> parser.parse( listinfo )
>>>> File "/usr/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py",
>>>> line 109, in parse
>>>> xmlreader.IncrementalParser.parse(self, source)
>>>> File "/usr/lib/python2.4/site-packages/_xmlplus/sax/xmlreader.py",
>>>> line 123, in parse
>>>> self.feed(buffer)
>>>> File "/usr/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py",
>>>> line 220, in feed
>>>> self._err_handler.fatalError(exc)
>>>> File "/usr/lib/python2.4/site-packages/_xmlplus/sax/handler.py", line
>>>> 38, in fatalError
>>>> raise exception
>>>> SAXParseException: /usr/bin/xmame --listxml:1:0: syntax error
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-users