PDA

View Full Version : [LINUX] "Python Script Failed" on every plugin?


knk1990
2009-05-29, 18:37
Hi, im getting errors on every plugin i install.
"Python Script Failed". special://home/plugins/programs/Launcher/default.py

That was obviously with launcher. I've tried adding manually to the sources.xml, adding to plugins etc. All give the same results. I've tried VideoMonkey Launcher and XBMC Zone Installer, all with the same issues.

I've tried using xbmcs latest svn built, 8.10 atlantis and 9.04. All manually compiled on debian 5.

Ideas?

thanks

blittan
2009-05-29, 22:09
python installed?

other than that, please post a debuglog so we can see what is happening.

knk1990
2009-05-30, 05:19
yeah pythons installed, 2.5 & 2.4. Installed 2.4 for the sake of it just before as only 2.5 was installed. Can't find anything usefull in the log either :(...

http://pastebin.com/m1673b9d5.

maybe this is relevant?

08:36:48 T:3051382592 M: 18239488 INFO: initializing python engine.
08:36:48 T:3051382592 M: 18239488 DEBUG: Loading: /usr/local/share/xbmc/system/python/python24-i486-linux.so
08:36:48 T:3051382592 M: 18128896 DEBUG: msg: 'import site' failed; use -v for traceback

thanks

blittan
2009-05-30, 23:34
post the entire debuglog (on pastebin.ca or simular site) then link it here.

Dan Dare
2009-05-31, 02:10
You have quite a few "cant create dir" and "Unable to create thumbfile" messages, ImportErrors... looks like is not able to load Python?! Built on Apr 3 2009...

yabel
2009-05-31, 02:20
Im seeming to have same issue since moving to T3CH XBMC 2009-05-09 9.04-Babylon.
Where can I find Python?
Ive never had issues with plugins except when they became broke due to web site changes.
When I try to run SVN installer my xbox reboots.

knk1990
2009-05-31, 04:36
@blittan: look up, i think thats the entire debug log i linked to on pastebin?

If dan dare is having issues on his xbox....fault of xbmc?

http://pastebin.com/m1698ad79 <<newer log after some more use. Making the errors come up etc.

vdrfan
2009-05-31, 11:42
knk1990, please upgrade to a more recent version of XBMC and report back if the issue still exists.

knk1990
2009-05-31, 16:46
as i said vdrfan, i've tried with the current svn version. I'll reinstall it and post a log. I just like running stable

edit:
why am i getting this after i make uninstall. and then make install the svn version?
08:36:47 T:3051382592 M: 18743296 NOTICE: -----------------------------------------------------------------------
08:36:47 T:3051382592 M: 18743296 NOTICE: Starting XBMC, Platform: GNU/Linux. Built on Apr 3 2009 (SVN:exported)
08:36:47 T:3051382592 M: 18743296 NOTICE: Q is mapped to: /usr/local/share/xbmc
08:36:47 T:3051382592 M: 18632704 NOTICE: The executable running is: /usr/local/share/xbmc/xbmc.bin
08:36:47 T:3051382592 M: 18632704 NOTICE: Log File is located: /var/tmp/kyle-xbmc.log
08:36:47 T:3051382592 M: 18632704 NOTICE: --------------------------------------------------------------------

it was compiled today.....and yes my dates right....ill checkout the svn AGAIN overnight and see how it is after. 12am now, so ill post back tomorrow.
thanks

vdrfan
2009-05-31, 17:38
Log location states its an oldish build. Much changed since we moved the logs to the users home.

saffsd
2009-06-01, 08:09
I think this might be related to an issue I just discovered.

When trying to install a plugin I got the exact same error. I investigated the debug log output, this is the interesting line:

14:50:08 T:2877234064 M:863309824 DEBUG: Process - Setting the Python path to /home/xbmc/.xbmc/plugins/programs/Launcher:/usr/share/xbmc/system/python/python24.zip;/usr/share/xbmc/system/python/lib/python24.zip;/usr/share/xbmc/system/python/lib/python2.4/;/usr/share/xbmc/system/python/lib/python2.4/plat-linux2;/usr/share/xbmc/system/python/lib/python2.4/lib-tk;/usr/share/xbmc/system/python/lib/python2.4/lib-dynload

Look carefully, the first path separator is wrong! ':' vs ';'

I have tracked the bug to this file:

http://xbmc.org/trac/browser/trunk/XBMC/xbmc/lib/libPython/XBPyThread.cpp

But can't go any further since I'm not familiar with the codebase. Line 163 is where the message is from.

Looks like I'm on revision 19455, the file I point to has not changed since 19054, but the error may be elsewhere.

<pre>
14:24:09 T:3053184880 M:909758464 NOTICE: -----------------------------------------------------------------------
14:24:09 T:3053184880 M:909758464 NOTICE: Starting XBMC, Platform: GNU/Linux. Built on May 31 2009 (SVN:19455)
14:24:09 T:3053184880 M:909758464 NOTICE: special://xbmc/ is mapped to: /usr/share/xbmc
14:24:09 T:3053184880 M:909758464 NOTICE: special://masterprofile/ is mapped to: /home/xbmc/.xbmc/userdata
14:24:09 T:3053184880 M:909758464 NOTICE: special://home/ is mapped to: /home/xbmc/.xbmc
14:24:09 T:3053184880 M:909758464 NOTICE: special://temp/ is mapped to: /home/xbmc/.xbmc/temp
14:24:09 T:3053184880 M:909758464 NOTICE: The executable running is: /usr/share/xbmc/xbmc.bin
14:24:09 T:3053184880 M:909758464 NOTICE: Log File is located: /home/xbmc/.xbmc/temp/xbmc.log
14:24:09 T:3053184880 M:909758464 NOTICE: -----------------------------------------------------------------------
</pre>

Hope this helps.

knk1990
2009-06-01, 10:14
http://pastebin.com/m35be8361

im so stupid lol. sorry about that. I've found the right log now

GrinRoth
2009-06-03, 10:37
I'm experiencing the exact same errors with the latest svn builds (i compiled it yesterday, r20873), none of the plugins and scripts are working.
I think this happens since the external libraries option is added to svn?

Anyway, in my log i see the same error in path ( : instead of ; )

19:52:30 T:2846456720 M:1345851392 NOTICE: -->Python Interpreter Initialized<--
19:52:30 T:2846456720 M:1345851392 NOTICE:
19:52:30 T:2846456720 M:1345851392 DEBUG: Process - The source file to load is special://home/plugins/video/Apple Movie Trailers Lite/default.py
19:52:30 T:2846456720 M:1345851392 DEBUG: Process - Setting the Python path to /home/xbmc/.xbmc/plugins/video/Apple Movie Trailers Lite:/usr/share/xbmc/system/python/python24.zip;/usr/share/xbmc/system/python/lib/python24.zip;/usr/share/xbmc/system/python/lib/python2.4/;/usr/share/xbmc/system/python/lib/python2.4/plat-linux2;/usr/share/xbmc/system/python/lib/python2.4/lib-tk;/usr/share/xbmc/system/python/lib/python2.4/lib-dynload
19:52:30 T:2846456720 M:1345781760 DEBUG: Process - Entering source directory /home/xbmc/.xbmc/plugins/video/Apple Movie Trailers Lite
19:52:30 T:2846456720 M:1345781760 NOTICE: [PLUGIN] 'Apple Movie Trailers Lite: version 1.6.3' initialized!
19:52:30 T:2846456720 M:1345781760 NOTICE: Traceback (most recent call last):
19:52:30 T:2846456720 M:1345781760 NOTICE: File "/home/xbmc/.xbmc/plugins/video/Apple Movie Trailers Lite/default.py", line 23, in ?
19:52:30 T:2846456720 M:1345781760 NOTICE:
19:52:30 T:2846456720 M:1345781760 NOTICE: import resources.lib.xbmcplugin_trailers as plugin
19:52:30 T:2846456720 M:1345781760 NOTICE: ImportError
19:52:30 T:2846456720 M:1345781760 NOTICE: :
19:52:30 T:2846456720 M:1345781760 NOTICE: No module named resources.lib.xbmcplugin_trailers
19:52:30 T:2846456720 M:1345781760 NOTICE:
19:52:30 T:2846456720 M:1345781760 ERROR: Scriptresult: Error
19:52:30 T:2846456720 M:1345781760 INFO: Loading skin file: DialogOK.xml

tomolac
2009-06-04, 00:40
I'm have this exact same problem also, so far the iplayer and SVN Repo Installer plug-ins are the only ones that work!
22:37:40 T:2912353168 M:2012733440 NOTICE: File "/home/xbmc/.xbmc/plugins/video/Ninja Video/NVDecode.py", line 2, in ?
22:37:40 T:2912353168 M:2012733440 NOTICE:
22:37:40 T:2912353168 M:2012733440 NOTICE: from Crypto.Cipher import AES
22:37:40 T:2912353168 M:2012733440 NOTICE: ImportError
22:37:40 T:2912353168 M:2012733440 NOTICE: :
22:37:40 T:2912353168 M:2012733440 NOTICE: cannot import name AES
22:37:40 T:2912353168 M:2012733440 NOTICE:
22:37:40 T:2912353168 M:2012733440 ERROR: Scriptresult: Error

hebjor
2009-06-04, 01:01
I have same problem on SVN built on June 1st.

I see in my log I have same problem as described above with the separator for the path:

/home/xbmc/.xbmc/plugins/programs/Launcher:/usr/share/xbmc/system/python/python24.zip;/usr/share/xbmc/system/python/lib/python24.zip;/usr/share/xbmc/system/python/lib/python2.4/;/usr/share/xbmc/system/python/lib/python2.4/plat-linux2;/usr/share/xbmc/system/python/lib/python2.4/lib-tk;/usr/share/xbmc/system/python/lib/python2.4/lib-dynload

First path is separated by a ":" while the rest by ";". Maybe this could be the reason?

hitman
2009-06-04, 01:09
Also have the same problem. Relevant snippet from the log is at http://pastebin.ca/1446828

hitman
2009-06-04, 01:46
Just downgraded to a previous version and the plugin works fine http://pastebin.ca/1446877.

The "Setting the Python path" does seem to be different with the ; and : mismatch. Looks like the newer version puts in a : for the first separator in the path instead of a ;

hitman
2009-06-04, 01:56
I guess this (http://xbmc.org/trac/changeset/20882) means that this has been identified as a bug and fixed?

Just got to wait for the Package to be updated.

GrinRoth
2009-06-04, 12:03
Hope so!
I'll update my install with latest svn tonight and let know if the issue is fixed.

yabel
2009-06-04, 15:04
I had this issue and not sure if its same but it was due to notbeing able to reach internet due to the ethernet cord being loose in xbox. I figured it out by trying to use XBMC auto syc time and date option and it kept failing to reach server. I was able to reach it via ftp but it wasnt reaching internet. So i unplugged ethernet wire, rebooted my router and rebooted xbox. All was fine then.
Not sure if this will help but thought I would throw it out since I saw same error with may4 release.

C-Quel
2009-06-04, 15:16
no this is still a problem even with latest svn afaik

tomolac
2009-06-04, 18:07
I can confirm that I still have this problem with revision 20903 also!

drivesoslow
2009-06-04, 22:04
I guess this (http://xbmc.org/trac/changeset/20882) means that this has been identified as a bug and fixed?

Just got to wait for the Package to be updated.

That is the point that it broke, the red means removed and the green means added.

You should just be able to undo those three changes and be fine.

I have created a ticket for the bug

http://xbmc.org/trac/ticket/6706

tomolac
2009-06-05, 20:36
I've tried changing those values back and nothing has changed, there are still no plug-ins but iplayer that work.

GrinRoth
2009-06-06, 23:28
I do still have the same problems using SVN:20932, which i've built tonight.

In http://xbmc.org/trac/ticket/6706 someone replied that this should be fixed now, but apparently it isn't.
I really miss all cool plugins :(

knk1990
2009-06-07, 16:48
=[ changed delimiter. no fix

GrinRoth
2009-06-10, 14:45
Everything is working again over here!

Just do a make disclean, then svn up, the configure,compile,install and all plugins should be working again.

hitman
2009-06-10, 15:23
GrinRoth, which svn version is that? Just want to see if your working version matches up with the SVN PPA. That is at 20937 at the moment by the looks of things.

tomolac
2009-06-10, 21:10
just updated to rev.21001 and can confirm that it is still broken.

hitman
2009-06-11, 02:31
Just realised that 9.04.2+svn20937-hardy works fine for me for iPlayer and AMT plugins (Don't have any others)

tomolac
2009-06-13, 18:51
guess a feature that they advertise on the front page, not working, isn't very important then.

knk1990
2009-06-14, 06:25
checked it out AGAIN, and its not working

Salpula
2009-06-15, 21:07
Still broken?

ceros
2009-06-16, 07:21
I'll need to see a log using a current svn checkout of xbmc.

GrinRoth
2009-06-16, 10:04
On my install every scripts runs fine again after a make clean and make distclean before building the latest svn's.
I also tried this on the install of a friend of mine who had the same problems, also on his install every script works again.

So. please try that first.
commands on minimal ubuntu system:
make clean
make distclean
svn up
./configure --prefix=/usr --disable-pulse
make -j2
sudo make install

knk1990
2009-06-16, 14:47
i never used distclean. i'll give that a shot. although the harddrive in my htpc is failing =[...need that cf adapter to arrive :)

Aenima99x
2009-06-18, 04:56
Just compiled svn ver. 21130 with the full make clean/make distclean routine and I'm still having the plugins/python issues. :sad:

ceros
2009-06-18, 06:06
Just compiled svn ver. 21130 with the full make clean/make distclean routine and I'm still having the plugins/python issues. :sad:

Log please.

Aenima99x
2009-06-18, 18:43
Log please.

Here you go... (http://pastebin.com/m2fee2dc9)

Also just FYI, this is an Ubuntu Jaunty Minimal install, but I did get the dependencies from the Readme as well as from a build-dep from the PPA.

ceros
2009-06-18, 18:53
Here you go... (http://pastebin.com/m2fee2dc9)

Also just FYI, this is an Ubuntu Jaunty Minimal install, but I did get the dependencies from the Readme as well as from a build-dep from the PPA.

Check to see if /usr/local/share/xbmc/system/python/python24.zip exists and if so, check it's contents. It should contain a bunch of python modules (i.e. threading.py, os.py, etc).

Aenima99x
2009-06-18, 19:57
Check to see if /usr/local/share/xbmc/system/python/python24.zip exists and if so, check it's contents. It should contain a bunch of python modules (i.e. threading.py, os.py, etc).

Not sure why, but the python24.zip, python24.zlib and DLLs folder were ALL missing! Doh! Thanks for the help Ceros. :cool2:

stalka
2009-06-19, 04:17
I've been suffering from this same issue. It turned out the problem was that I didn't have the "zip" program installed, therefore the compiled python libraries couldn't be zipped up.

Compilation of libPython gives the following non-blocking error:
/bin/bash: line 1: zip: command not found

Compilation carries on so I thought everything was fine. Thankyou ceros for giving me the inspiration to check the compile log closer.

Coincidently "zip" is not listed as a dependency in README.linux (although unzip is), perhaps this should be added?

knk1990
2009-06-19, 18:10
i have all those files in there. Just unzipped python24....not the issue for me. im kinda limited on what i can test as the htpc harddrive is just about dead, im waiting on a zif>sata adapter so i can install an ssd into it. Server side storage ftw =].

LAGMonkey
2009-07-03, 21:34
all python scripts are not working for me.

i have "full fat" ubuntu jaunty 9.04
installed xbmc via apt-get (currently 9.04.1-jaunty1)

python24.zip is located in /usr/share/xbmc/system/python/ and there are the modules inside the zip folder.

i also tried a svn yesterday and it had the same problem.

dbldown768
2009-07-05, 03:09
i have the same exact problem as well. I thought it was only the Launcher plugin but now its others.

Gujs
2009-07-07, 17:51
I have the same problem, but for now I just tested Launcher plugin

jngrim
2009-07-10, 03:28
I am also having this problem. I download the xbmczone installer and extracted it. It told me to put it in the program fold and my 9.04 build for linux doesn't have that menu item. It doesnt exist right? So i put in the script fold and I get tat "special" python message..Is there another way to install the plugins or should i revert back to the stable 9.04 release instead of the svn. Any help would be awesome....

nicoli_k
2009-07-10, 03:57
I am also having this problem. I download the xbmczone installer and extracted it. It told me to put it in the program fold and my 9.04 build for linux doesn't have that menu item. It doesnt exist right? So i put in the script fold and I get tat "special" python message..Is there another way to install the plugins or should i revert back to the stable 9.04 release instead of the svn. Any help would be awesome....

enable the Program button underneath Settings and then Skin Settings. it won't run as a script because it isn't a script.

Slax
2009-07-11, 22:26
I got this Problem too. I installed an old 8.10 Xubuntu about a 6 months ago and it works fine. But it doesn work anymore when i try to install it on a new HTPC. I tried to compile XBMX and to install it via apt-get, with or without Grafical Enviroment, dont matter what i do it just wont work anymore. I got "script failed" no scripts are working. I cant update XBMC under Xubuntu already looking an my Windows CD :mad:

Gujs
2009-07-13, 14:38
Did anyone solve this problem?

Aucard The 3rd
2009-07-13, 21:36
actually i have this same issue with windows version of xbmc, Windows-9.04.1-repack2.exe aka Babylon - 9.04. i'm going to try a downgrade and see if that makes a change.

debug log for windows
http://pastebin.com/f75974aa2


i just did the downgrade and scripts and plugins work fine. now I'm using the Atlantis build official not a 3rd party compile.

Gujs
2009-07-15, 14:45
I had this problem with Launcher 1.03 and now I installed 1.02 version which doesn't have this problem. For now I am happy with it!

knk1990
2009-07-16, 14:30
working Gujs, i could hug u right now

bzkt
2009-07-19, 19:11
I'm having this problem as well, not with Linux but with Windows. Maybe there should be a new thread for Windows?

Debug log: http://pastebin.com/f13e870f6

knk1990
2009-07-25, 17:41
have u tried the older version of launcher to see what happens bzkt? worked for me.

bzkt
2009-07-26, 13:06
I'm not sure why that would help me. But I tried it and I got the exact same error "Python script failed" when trying to start Launcher.

knk1990
2009-07-26, 15:36
i have no idea either....but it worked for me, thats why i suggested you try it. However i got so frustrated with it not working im yet to add anything aside from raiden to my htpc.

andrewmin
2009-07-30, 02:47
I'm having the same problem/message... and I'm actually using scripts.

Log: http://pastebin.com/f14d3cd54

tslayer
2009-07-30, 05:05
Folks,

The problem is with the launcher plugin itself. The thumbs_path or whatever it is still point to the old Q:\ style paths.

I've posted this now 3 times. Before going into the plugin, bring up context menu, then goto Plugin Settings, then change Thumbnail Path.

arosequi
2009-07-30, 06:17
Same issue here.

Log file: http://pastebin.com/m21fea1ed (line 405 is when I attempted to start the script)

Currently using version 9.04.2+svn21891-jaunty1 from the SVN PPA.

knk1990
2009-07-30, 11:02
@tslayer: i was having this problem with every plugin prior to my harddrive failure. Not just launcher. Now it seems to be only with launcher, although i've only got 2 installed, Launcher and MythBox

tslayer
2009-07-30, 17:22
Same issue here.

Log file: http://pastebin.com/m21fea1ed (line 405 is when I attempted to start the script)

Currently using version 9.04.2+svn21891-jaunty1 from the SVN PPA.

I believe you've installed a plugin as a script. Install it as a plugin and not a script.