Kodi Community Forum
Python and MythTV (a MythTV Front-End) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: Python and MythTV (a MythTV Front-End) (/showthread.php?tid=2349)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39


- smurf2 - 2005-04-19

thanx frooby that fixed up the same thing for me Smile

<dance>


- androo - 2005-04-19

(frooby @ april 19 2005,01:16 Wrote:androo,

un comment it.. . shouldn't be commented out!
doh! i should learn to read.

ok, i'll try that tonight. thanks frooby.


- luigi - 2005-04-19

finally got around to activating the debug on the argument 5 must be string, not none i'm getting.
too many roaming rugrats in the way :nuts:

turns out to be an issue when you attempt to run a clean set-up with project mayhem iii skin. if you change to mayhem ii you're away, & you can then change back to iii!

here's the debug...
19-04-2005 20:36:58 info q:\scripts\xbmcmythtv\smb.py:94: futurewarning: hex/oct constants > sys.maxint will return positive values in python 2.4 and up

sv_type_domain_enum = 0x80000000

19-04-2005 20:36:58 info q:\scripts\xbmcmythtv\smb.py:315: futurewarning: hex/oct constants > sys.maxint will return positive values in python 2.4 and up

cap_extended_security = 0x80000000

19-04-2005 20:36:58 info q:\scripts\xbmcmythtv\smb.py:621: futurewarning: hex/oct constants > sys.maxint will return positive values in python 2.4 and up

if server_flags & 0x80000000:

19-04-2005 20:36:59 debug loadlibrarya('pyexpat.pyd')

19-04-2005 20:36:59 debug executing entrypoint at: 0x1019c01 - dll: pyexpat.pyd

19-04-2005 20:36:59 debug loadlibrary('pyexpat.pyd') returning: 0xb48f80

19-04-2005 20:36:59 debug kernel32!getprocaddress(0xb48f80, 'initpyexpat') => 0x1004540

19-04-2005 20:37:00 info traceback (most recent call last):

19-04-2005 20:37:00 info file "q:\scripts\xbmcmythtv\mythtvmain.py", line 80, in ?

19-04-2005 20:37:00 info win.loadskin( "home.xml" )

19-04-2005 20:37:00 info file "q:\scripts\xbmcmythtv\mythtvskin.py", line 247, in loadskin

19-04-2005 20:37:00 info self.addcontrols(dom.getelementsbytagname("control"))

19-04-2005 20:37:00 info file "q:\scripts\xbmcmythtv\mythtvskin.py", line 296, in addcontrols

19-04-2005 20:37:00 info me.create()

19-04-2005 20:37:00 info file "q:\scripts\xbmcmythtv\mythtvskin.py", line 90, in create

19-04-2005 20:37:00 info c = xbmcgui.controlimage(x,y,w,h,tx)

19-04-2005 20:37:00 info typeerror: argument 5 must be string, not none


- luigi - 2005-04-19

the error i get when attemting to view the program guide appears to be related to channel icons.
in australia the icons aren't available as far as i know.
here's the debug...

19-04-2005 20:58:18 info   file "q:\scripts\xbmcmythtv\mythtvgui.py", line 135, in buildpath
19-04-2005 20:58:18 info     file = self.geticonfile( channel )
19-04-2005 20:58:18 info   file "q:\scripts\xbmcmythtv\mythtvgui.py", line 143, in geticonfile
19-04-2005 20:58:18 info     file = channel.icon()
19-04-2005 20:58:18 info   file "q:\scripts\xbmcmythtv\mythtvchannel.py", line 37, in icon
19-04-2005 20:58:18 info     if self.data['icon'] ) == 0:
19-04-2005 20:58:18 info typeerror: len() of unsized object


- madtw - 2005-04-19

ok, thanks. i have added some additional error checking in mythtvchannel.py. it still works for me so let me know if there are still any problems...


- henk - 2005-04-19

(madtw @ april 19 2005,00:06 Wrote:just out of curiosity, what values do you have in the icon column in the channel table in the myth tv database? i have a path to an icon or the text "none".
still getting the error.

the values of the icon column are:

icon varchar(255) no none

19-04-2005 20:59:34 info traceback (most recent call last):
19-04-2005 20:59:34 info file "q:\scripts\xbmcmythtv\mythtvmain.py", line 60, in oncontrol
19-04-2005 20:59:34 info mythtvguide.showwindow()
19-04-2005 20:59:34 info file "q:\scripts\xbmcmythtv\mythtvguide.py", line 30, in showwindow
19-04-2005 20:59:34 info win.loadguide()
19-04-2005 20:59:34 info file "q:\scripts\xbmcmythtv\mythtvguide.py", line 470, in loadguide
19-04-2005 20:59:34 info self.render()
19-04-2005 20:59:34 info file "q:\scripts\xbmcmythtv\mythtvguide.py", line 549, in render
19-04-2005 20:59:34 info self.renderchannels()
19-04-2005 20:59:34 info file "q:\scripts\xbmcmythtv\mythtvguide.py", line 594, in renderchannels
19-04-2005 20:59:34 info file = cic.findfile( self.channels[i] )
19-04-2005 20:59:34 info file "q:\scripts\xbmcmythtv\mythtvutil.py", line 348, in findfile
19-04-2005 20:59:34 info file = self.buildpath( obj )
19-04-2005 20:59:34 info file "q:\scripts\xbmcmythtv\mythtvgui.py", line 135, in buildpath
19-04-2005 20:59:34 info file = self.geticonfile( channel )
19-04-2005 20:59:34 info file "q:\scripts\xbmcmythtv\mythtvgui.py", line 143, in geticonfile
19-04-2005 20:59:34 info file = channel.icon()
19-04-2005 20:59:34 info file "q:\scripts\xbmcmythtv\mythtvchannel.py", line 37, in icon
19-04-2005 20:59:34 info if self.data['icon'] ) == 0:
19-04-2005 20:59:34 info typeerror: len() of unsized object


- madtw - 2005-04-20

you are definitely running older code now... i rearranged the code in cvs last night so that the checks are done starting on line 30 in mythtvchannel.py. please update mythtvchannel.py from cvs and then post if it still fails...

alternatively, you can change the code in mythtvchannel.py until it works with your data and then submit a patch.


- henk - 2005-04-20

(madtw @ april 19 2005,23:33 Wrote:you are definitely running older code now... i rearranged the code in cvs last night so that the checks are done starting on line 30 in mythtvchannel.py. please update mythtvchannel.py from cvs and then post if it still fails...
it's working Nod

i dunno what went wrong. i run xbmc build from 20050411, xbmcmythtv always latest from cvs and mythtv also latest from cvs (0.18.20050409-1). the mythtv install runs from 0.13 on, so also the database. maybe the channel tables were different those days and have forced this problem.

anyway, many thanks Smile


- jpf - 2005-04-20

can someone advise on problems with not being able to exit the various mythtv menus?

sometimes after watching livetv or a recorded show, i am unable to exit the menu. i have to force a reboot on the xbox.

also, i get wierd int[] errors sometimes while attempting to watch livetv.


- philled - 2005-04-20

(beowulfe @ jan. 13 2005,18:03 Wrote:i've seen a few posts from people trying to get xbmc to play the mpeg-4 .nuv files. there's an old patch for mplayer that allowed these files to be played. it's available at:
http://dijkstra.csh.rit.edu/~mdz/mythtv/

this patch can be applied to the mplayer sources in the xbmc cvs with a little bit of tweaking. i have the updated mplayer.dll binary i made for my own use, which i'd be happy to distribute if someone wants to donate the server space Smile that way, you could just drop the new mplayer.dll over the old one on your xbox. the binary is not compiled against any ms sdk's, and is all open source, so legal concerns shouldn't be an issue.
can anyone please advise hot to apply this patch to a current cvs download of player? i don't know anything about how to apply patches. i'm following instructions to compile mplayer using mingw and msys.

alternatively, does anyone have a version of mplayer.dll that can play mpeg2 and mpeg4 encoded mythtv files? and which they are willing to send me?

regards,
phill


- stilger - 2005-04-20

(jpf @ april 20 2005,07:05 Wrote:can someone advise on problems with not being able to exit the various mythtv menus?

sometimes after watching livetv or a recorded show, i am unable to exit the menu. i have to force a reboot on the xbox.

also, i get wierd int[] errors sometimes while attempting to watch livetv.

i get this once in a while. i have posted on it twice but no one else has seemed to have the problem.

madtw: any ideas?


- madtw - 2005-04-21

stilger/jpf: i used to get the unable to exit a screen problem occasionally with older versions of xbmc but with the latest builds things seem to be much more stable. if i could reproduce the problem on my side, i might be able to track it down... but i haven't had the problem in a while now. as for exceptions or error dialogs (e.g. the int[] error you mentioned), grab the relevant xbmc log file and post it so i can have a look. i need a good stack trace to debug stuff remotely... and even then it can be hard unless it is an obvious bug in the code. it could be weird race conditions with threaded events or a bug in the code that only happens in certain conditions.

if you are going to post a problem, it helps if you tell me which build of xbmc you are using (e.g. cvs checkout date), which version of xbmcmythtv, which myth tv backend version, and any steps you went through before hitting the problem. also, it is important to let me know if the problem occurs if you immediately run the xbmcmythtv scripts after a reboot or if you ran other stuff before you ran the xbmcmythtv scripts. i'm sure xbmc has other bugs out there that can cause small memory corruptions that don't result in an immediate crash. sometimes something that you ran before can impact stuff that you run much later...

philled: i use the stock mplayer.dll so i can't help you out there. that was one of the reasons i got a pvr-250 card because it encodes to mpeg2 in hardware and xbmc has no problem playing the files back.

luigi: henk says your guide problem is fixed with my latest patches in the xbmcmythtv cvs repository. try the latest code.

as for your skin problem, make sure you don't have any skin files from an older version of xbmcmythtv on your xbox. there used to be a full copy of skin files for each xbmc skin a while back. i then changed the skin files to allow you to include files within skin files. however, the skin module looks in the skin specific directory before it looks in the shared skin directory... so if you have old skin files, it will pick those up instead and the behavior is undefined (i.e. i haven't tested that in a long time now).

just out of curiosity, which xbmc skin are you using? the reason i ask is that i haven't tested the pm and pm2 skins in a while. also, it looks like they are being phased out of xbmc as well...


- jpf - 2005-04-21

(madtw @ april 21 2005,04:01 Wrote:stilger/jpf: i used to get the unable to exit a screen problem occasionally with older versions of xbmc but with the latest builds things seem to be much more stable. if i could reproduce the problem on my side, i might be able to track it down... but i haven't had the problem in a while now. as for exceptions or error dialogs (e.g. the int[] error you mentioned), grab the relevant xbmc log file and post it so i can have a look. i need a good stack trace to debug stuff remotely... and even then it can be hard unless it is an obvious bug in the code. it could be weird race conditions with threaded events or a bug in the code that only happens in certain conditions.

if you are going to post a problem, it helps if you tell me which build of xbmc you are using (e.g. cvs checkout date), which version of xbmcmythtv, which myth tv backend version, and any steps you went through before hitting the problem. also, it is important to let me know if the problem occurs if you immediately run the xbmcmythtv scripts after a reboot or if you ran other stuff before you ran the xbmcmythtv scripts. i'm sure xbmc has other bugs out there that can cause small memory corruptions that don't result in an immediate crash. sometimes something that you ran before can impact stuff that you run much later...

philled: i use the stock mplayer.dll so i can't help you out there. that was one of the reasons i got a pvr-250 card because it encodes to mpeg2 in hardware and xbmc has no problem playing the files back.

luigi: henk says your guide problem is fixed with my latest patches in the xbmcmythtv cvs repository. try the latest code.

as for your skin problem, make sure you don't have any skin files from an older version of xbmcmythtv on your xbox. there used to be a full copy of skin files for each xbmc skin a while back. i then changed the skin files to allow you to include files within skin files. however, the skin module looks in the skin specific directory before it looks in the shared skin directory... so if you have old skin files, it will pick those up instead and the behavior is undefined (i.e. i haven't tested that in a long time now).

just out of curiosity, which xbmc skin are you using? the reason i ask is that i haven't tested the pm and pm2 skins in a while. also, it looks like they are being phased out of xbmc as well...
ok, just got another crash.

this is cvs xbmcmythtv (very recent) and xbmc-2005-03-26 cvs.

21-04-2005 12:58:05 notice start led control
21-04-2005 12:58:05 notice dim lcd on playback
21-04-2005 12:58:07 info activating window id: 10000
21-04-2005 12:58:10 info activating window id: 13013
21-04-2005 12:58:12 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:13 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:13 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:13 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:14 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:14 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:15 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:15 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:15 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:16 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:17 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:17 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:17 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:18 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:18 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:19 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:20 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:20 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:20 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:38 info traceback (most recent call last):
21-04-2005 12:58:38 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvlivetv.py", line 240, in oncontrol
21-04-2005 12:58:38 info self.playselected( control )
21-04-2005 12:58:38 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvlivetv.py", line 228, in playselected
21-04-2005 12:58:38 info self.player.play( self.programs[pos].chanstr() )
21-04-2005 12:58:38 info attributeerror: 'window' object has no attribute 'player'
21-04-2005 12:58:39 info traceback (most recent call last):
21-04-2005 12:58:39 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvlivetv.py", line 240, in oncontrol
21-04-2005 12:58:39 info self.playselected( control )
21-04-2005 12:58:39 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvlivetv.py", line 228, in playselected
21-04-2005 12:58:39 info self.player.play( self.programs[pos].chanstr() )
21-04-2005 12:58:39 info attributeerror: 'window' object has no attribute 'player'
21-04-2005 12:58:41 info traceback (most recent call last):
21-04-2005 12:58:41 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvlivetv.py", line 240, in oncontrol
21-04-2005 12:58:41 info self.playselected( control )
21-04-2005 12:58:41 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvlivetv.py", line 228, in playselected
21-04-2005 12:58:41 info self.player.play( self.programs[pos].chanstr() )
21-04-2005 12:58:41 info attributeerror: 'window' object has no attribute 'player'
21-04-2005 12:58:42 info traceback (most recent call last):
21-04-2005 12:58:42 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvlivetv.py", line 240, in oncontrol
21-04-2005 12:58:42 info self.playselected( control )
21-04-2005 12:58:42 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvlivetv.py", line 228, in playselected
21-04-2005 12:58:42 info self.player.play( self.programs[pos].chanstr() )
21-04-2005 12:58:42 info attributeerror: 'window' object has no attribute 'player'
21-04-2005 12:58:42 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:43 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:46 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:47 error unable to locate window with id -10000. check skin files


- jpf - 2005-04-21

(jpf @ april 21 2005,14:07 Wrote:
(madtw @ april 21 2005,04:01 Wrote:stilger/jpf: i used to get the unable to exit a screen problem occasionally with older versions of xbmc but with the latest builds things seem to be much more stable. if i could reproduce the problem on my side, i might be able to track it down... but i haven't had the problem in a while now. as for exceptions or error dialogs (e.g. the int[] error you mentioned), grab the relevant xbmc log file and post it so i can have a look. i need a good stack trace to debug stuff remotely... and even then it can be hard unless it is an obvious bug in the code. it could be weird race conditions with threaded events or a bug in the code that only happens in certain conditions.

if you are going to post a problem, it helps if you tell me which build of xbmc you are using (e.g. cvs checkout date), which version of xbmcmythtv, which myth tv backend version, and any steps you went through before hitting the problem. also, it is important to let me know if the problem occurs if you immediately run the xbmcmythtv scripts after a reboot or if you ran other stuff before you ran the xbmcmythtv scripts. i'm sure xbmc has other bugs out there that can cause small memory corruptions that don't result in an immediate crash. sometimes something that you ran before can impact stuff that you run much later...

philled: i use the stock mplayer.dll so i can't help you out there. that was one of the reasons i got a pvr-250 card because it encodes to mpeg2 in hardware and xbmc has no problem playing the files back.

luigi: henk says your guide problem is fixed with my latest patches in the xbmcmythtv cvs repository. try the latest code.

as for your skin problem, make sure you don't have any skin files from an older version of xbmcmythtv on your xbox. there used to be a full copy of skin files for each xbmc skin a while back. i then changed the skin files to allow you to include files within skin files. however, the skin module looks in the skin specific directory before it looks in the shared skin directory... so if you have old skin files, it will pick those up instead and the behavior is undefined (i.e. i haven't tested that in a long time now).

just out of curiosity, which xbmc skin are you using? the reason i ask is that i haven't tested the pm and pm2 skins in a while. also, it looks like they are being phased out of xbmc as well...
ok, just got another crash.

this is cvs xbmcmythtv (very recent) and xbmc-2005-03-26 cvs.

21-04-2005 12:58:05 notice start led control
21-04-2005 12:58:05 notice dim lcd on playback
21-04-2005 12:58:07 info activating window id: 10000
21-04-2005 12:58:10 info activating window id: 13013
21-04-2005 12:58:12 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:13 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:13 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:13 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:14 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:14 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:15 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:15 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:15 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:16 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:17 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:17 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:17 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:18 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:18 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:19 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:20 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:20 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:20 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:38 info traceback (most recent call last):
21-04-2005 12:58:38 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvlivetv.py", line 240, in oncontrol
21-04-2005 12:58:38 info self.playselected( control )
21-04-2005 12:58:38 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvlivetv.py", line 228, in playselected
21-04-2005 12:58:38 info self.player.play( self.programs[pos].chanstr() )
21-04-2005 12:58:38 info attributeerror: 'window' object has no attribute 'player'
21-04-2005 12:58:39 info traceback (most recent call last):
21-04-2005 12:58:39 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvlivetv.py", line 240, in oncontrol
21-04-2005 12:58:39 info self.playselected( control )
21-04-2005 12:58:39 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvlivetv.py", line 228, in playselected
21-04-2005 12:58:39 info self.player.play( self.programs[pos].chanstr() )
21-04-2005 12:58:39 info attributeerror: 'window' object has no attribute 'player'
21-04-2005 12:58:41 info traceback (most recent call last):
21-04-2005 12:58:41 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvlivetv.py", line 240, in oncontrol
21-04-2005 12:58:41 info self.playselected( control )
21-04-2005 12:58:41 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvlivetv.py", line 228, in playselected
21-04-2005 12:58:41 info self.player.play( self.programs[pos].chanstr() )
21-04-2005 12:58:41 info attributeerror: 'window' object has no attribute 'player'
21-04-2005 12:58:42 info traceback (most recent call last):
21-04-2005 12:58:42 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvlivetv.py", line 240, in oncontrol
21-04-2005 12:58:42 info self.playselected( control )
21-04-2005 12:58:42 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvlivetv.py", line 228, in playselected
21-04-2005 12:58:42 info self.player.play( self.programs[pos].chanstr() )
21-04-2005 12:58:42 info attributeerror: 'window' object has no attribute 'player'
21-04-2005 12:58:42 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:43 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:46 error unable to locate window with id -10000. check skin files
21-04-2005 12:58:47 error unable to locate window with id -10000. check skin files
here's another error.

21-04-2005 14:18:28 info activating window id: 10000
21-04-2005 14:18:28 info traceback (most recent call last):
21-04-2005 14:18:28 info file "e:\apps\xbmc\scripts\xbmcmythtv\mythtvmain.py", line 82, in ?
21-04-2005 14:18:28 info del win
21-04-2005 14:18:28 info nameerror: name 'win' is not defined


- madtw - 2005-04-21

first comment is that you probably should try a newer version of xbmc. there have been a bunch of changes (including bug fixes) to the xbmc python module in early april.

as for the error log you posted, the player errors probably happened after you tried to exit the live tv screen? when the live tv window is closed, the code first destroys the player object that was created for live tv playback... then the window should've closed. if it didn't then the player object would no longer exist and you would get a bunch of errors any time you tried to do anything that used the player object. i can change the way the code works so that it will recreate the player object if it doesn't exist or not delete the player object stored in the window (and let python clean it up when the window is destroyed) but if everything is working as it should, the player object should never be accessed after an attempted window close.

that last error is a bit puzzling... win had to exist for the domodal() call so why does it no longer exist. i remember seeing that error before (last year)... the fix at the time was to comment out the line.