Python Script failure
#1
First off only heard about xbmc about a week ago, and I have to say I am "gob smacked" that such a cool software has been hidden from me for so long - probably as I do not have an xbox - but I have been playing with Linux for a while. I first tried on my Ubuntu desktop and on OpenSuse and then bought a dedicated box Asrock ION 330 and I am really happy with the results. The reason for the post is that the NBC video plugin that works well on my desktop and OpenSuse install fails on my dedicated box.

The log is here:
http://pastebin.com/m48d940c1

I am not a python programer - so a bit lost, can any one put me in the right direction?

I have installed on Ubuntu Netbook remix and then the linux install and followed a thorough howto from this site. I am still going through all the functionality, streaming etc - just blown away Thanks to all and in advance to anyone who can put me on the right track with NBC
Reply
#2
@talesin
Do you have the latest version of the plugin?

If not sure, install and use the SVN Repo Installer (http://www.xbmc.org/forum/showthread.php?t=29911) or XBMZone Installer (http://www.xbmc.org/forum/showthread.php?t=46631) and get the latest version from there. Note: If you don't have the Programs button in your main menu, you will have to enable it in the Skin Settings > Home Window (http://www.xbmc.org/wiki/?title=Skin_Settings).

If you still get the same error and want to get your hands dirty, see line 763 in your log (btw, well done with the debug log, for a new user you've done your homework! Smile maybe go and change at line 192 in imports.py, from

Code:
raise ImportError('No module name %d' % modname)

to

Code:
raise ImportError('No module name %s' % modname)

at least that should print the module that says might be missing...
Reply
#3
I'm also experience the same problem. After 12 hours of trying, still no results.
My configuration: Ubuntu 9.04
I followed the steps to install xbmc http://wiki.xbmc.org/?title=HOW-TO_XBMC_for_Linux
(import key, add ppa..).
Video and audio are doing well.
Plugins don't work at all. I can't even add them via 'add location' because the option isn't in the list.
I also tried: http://forum.xbmc.org/showthread.php?tid=44178 with no success Sad
Because normaly a logfile can tell much, after checking it, XBMC doesn't even create logfiles in my xbmc folder.
I've xbmc running on an old xbox and on windows vista and 7, and they all work (logging, scripts, plugins). I've also tried to copy plugins from xbox and windows to Ubuntu directory, but XBMC just won't see it....
Can anyone help please ?
Intel NUC BOXD34010WYK2 / Intel mSata 525 30GB / Kingston 8 GB / Intel 7260hmw
Reply
#4
@speedway
Read this on how to manually install plugins-where - no need to add them a sources if you put them in the right place.
http://www.xbmc.org/wiki/?title=HOW-TO_i...ns_in_XBMC

Read below where xbmc.log file should be and how to submit a debug log:
http://www.xbmc.org/wiki/?title=HOW-TO_s...Bug_Report

I've used this to install XBMC on Ubuntu 9.04 and didn't have any problems.
http://ubuntumanual.org/posts/176/instal...ntu-jaunty
Reply
#5
Dan Dare Wrote:@speedway
Read this on how to manually install plugins-where - no need to add them a sources if you put them in the right place.
http://www.xbmc.org/wiki/?title=HOW-TO_i...ns_in_XBMC

Read below where xbmc.log file should be and how to submit a debug log:
http://www.xbmc.org/wiki/?title=HOW-TO_s...Bug_Report

I've used this to install XBMC on Ubuntu 9.04 and didn't have any problems.
http://ubuntumanual.org/posts/176/instal...ntu-jaunty

thank you very much, i'll try the links and give feedback.
Can you perhaps give the path of your SNV repo Installer in your favourites.xml... I think I've got the path wrong.
Path in my favourites.xml:
<favourite name="SVN Repo Installer" thumb="special://usr/share/xbmc/plugins/programs/SVN Repo Installer/default.tbn">ActivateWindow(10001,plugin://programs/SVN Repo Installer/)</favourite>
Thx.

EDIT:
I'm able to run scripts placed in the scripts-folder. When I add e.g. Apple Movie Trailers to favourites, it works. But when I try to look up my favourites.xml, I can't find it in system- nor user-folder. Strange. I tried search in Ubuntu (from / ) but it can only find Dialogfavourites.xml (locked).

EDIT2:
Found the path => home/%username%/.xbmc/...
It was a hidden folder....
Intel NUC BOXD34010WYK2 / Intel mSata 525 30GB / Kingston 8 GB / Intel 7260hmw
Reply
#6
@speedway
There's no need to manually add things to your favorites, simply "right-click" a script or plugin and choose "Add to favorites" or "Remove from favorites" menu entry...
Reply
#7
Dan Dare

Thanks for the response - I am sorry but I have been away. So I changed the switch from "d" to "s" as you advised and bingo NBC plugin works. Which is great but I would love to understand why? I sort of understood the change would help indicate where the error was not fix it!

Do you think it was a permission issue with the file?

hanks all the same Smile.
Reply
#8
@talesin
I don't know really, that piece of code if I understand correctly is to lazy-load modules (as opposed to import statement) and complain if it doesn't find them. %d is to format decimal parameters, while the modname is a string (%s) - see 6.6.2 here http://docs.python.org/library/stdtypes.html

Maybe that ImportError is supposed to be caught somewhere or maybe even ignored, where the TypeError is probably a standard exception that was crashing the entire plugin. You may still have some messages about unfulfilled imports, maybe check the log?!

That's my take and I'm feeling if it's not what happened, must be close enough :-)
Reply

Logout Mark Read Team Forum Stats Members Help
Python Script failure0