Python and MythTV (a MythTV Front-End)

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
tharvey Offline
Member
Posts: 58
Joined: Apr 2004
Reputation: 0
Post: #41
i'm having trouble with the 5/3 cvs build of xbmc using the 0.6 version of the mythtv scripts. i can run the settings script fine but when i access 'my tv' xbmp just hangs.

any suggestions?

is there any logging that can/is done anywhere? i didn't see anything in the xbmc standard log.

looking forward to seeing this work!

tim
find quote
madtw Offline
Senior Member
Posts: 174
Joined: Mar 2004
Reputation: 0
Post: #42
i had problems as well when i tried the 5/3 build. even this script caused xbmc to hang:

Quote:import traceback, xbmcgui

dlg = xbmcgui.dialog()
dlg.ok( "info", "hello world" )
del dlg

so i reverted back to the 4/27 build and everything seemed to work fine after i deleted the tdata directory for xbmc. i didn't try deleting the dir when i tried the 5/3 build so maybe that's why it was hanging. i've been meaning to try a newer build but haven't gotten around to it...
find quote
darkie Offline
Team-XBMC Developer
Posts: 529
Joined: Sep 2003
Reputation: 0
Post: #43
from bugs.txt
- 07-05-2004 fixed: creating dialogs with python crashes xbmc

and that is exactly the problem you're seeing Smile .

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.


[Image: badge.gif]
find quote
tbdombrosky Offline
Junior Member
Posts: 9
Joined: May 2004
Reputation: 0
Post: #44
don't know what's wrong with my setup. i deleted the tdata directory. i tried 5/08 and 5/09 cvs builds but when i click on the setup script, it says running and then it goes away and nothing happens. i don't have the my tv icon either. i had an old february cvs version on it before that i deleted. any ideas? thanks.

tom

edit: found i have to install python.
find quote
jswu Offline
Junior Member
Posts: 20
Joined: Mar 2004
Reputation: 0
Post: #45
hey! great job. i just tried xbmc_mythtv 0.7 on a 2004-05-09 build of xbmc.

i have tried viewing the recorded shows, playing shows, saving and deleting shows. all works great!

i did find a possible bug. if i select a show from my remote control and select it again before the show details screen comes up, i get an "invalid literal for init(): ok" error. after that happens, i get errors for anything that i select.
find quote
tharvey Offline
Member
Posts: 58
Joined: Apr 2004
Reputation: 0
Post: #46
i'm still not able to run the mytv.py script... it just hangs xbmc. however i still 'can' run mytvsettings.py just fine. i've upgraded to xbmc cvs 5/9, and am still using v0.6 of the scripts.

any idea what could be wrong?

what is this 'tdata' directory thing? i've never heard of that... where is it?

thanks,

tim
find quote
mean Offline
Junior Member
Posts: 5
Joined: May 2004
Reputation: 0
Post: #47
howdy
0.7 works really nice for me except a little thing.
it seems it badly displays non ascii strings
like éàè that are translated to 2 symbols (bad utf8 handling ?)
find quote
madtw Offline
Senior Member
Posts: 174
Joined: Mar 2004
Reputation: 0
Post: #48
(jswu @ may 13 2004,18:26 Wrote:i did find a possible bug. if i select a show from my remote control and select it again before the show details screen comes up, i get an "invalid literal for init(): ok" error. after that happens, i get errors for anything that i select.
yep, i have fixed it in cvs but haven't made a new release yet. the problem stems from the fact that onaction() and oncontrol() callbacks are threaded and if you store anything on the stack, it can become outdated very quickly. i'll try to put together a new release shortly...
Quote:what is this 'tdata' directory thing? i've never heard of that... where is it?
the e:\tdata\0face008 directory stores xbmc settings. sometimes if you don't delete this directory when upgrading, it causes xbmc to hang or behave erratically. the last known build to work with the xbmc mythtv scripts is 4/27. i haven't had time to test a newer upgrade so if someone else has, please post about it.
Quote:it seems it badly displays non ascii strings
like éàè that are translated to 2 symbols (bad utf8 handling ?)
hmmm... as far as i can tell, the font displays those characters as a big square. even '*' doesn't render nicely. i think all that is needed is a replacement font... but i could be mistaken. darkie, is there something i can do in the script to fix this?
find quote
madtw Offline
Senior Member
Posts: 174
Joined: Mar 2004
Reputation: 0
Post: #49
fyi... i have just put up xbmc_mythtv-0.8.tar.bz2.
find quote
darkie Offline
Team-XBMC Developer
Posts: 529
Joined: Sep 2003
Reputation: 0
Post: #50
Quote:hmmm... as far as i can tell, the font displays those characters as a big square. even '*' doesn't render nicely. i think all that is needed is a replacement font... but i could be mistaken. darkie, is there something i can do in the script to fix this?
all xbmc labels (buttons / lists/ etc) in python support both normal strings and unicode strings. so the best way is to convert from utf-8 to unicode and use that unicode string

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.


[Image: badge.gif]
find quote
Post Reply