View Full Version : [LINUX] "Python Script Failed" on every plugin?
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
python installed?
other than that, please post a debuglog so we can see what is happening.
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
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...
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.
@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.
knk1990, please upgrade to a more recent version of XBMC and report back if the issue still exists.
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
Log location states its an oldish build. Much changed since we moved the logs to the users home.
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.
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
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
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?
Also have the same problem. Relevant snippet from the log is at http://pastebin.ca/1446828
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 ;
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.
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.
no this is still a problem even with latest svn afaik
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
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 :(
=[ 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.
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.
just updated to rev.21001 and can confirm that it is still broken.
Just realised that 9.04.2+svn20937-hardy works fine for me for iPlayer and AMT plugins (Don't have any others)
guess a feature that they advertise on the front page, not working, isn't very important then.
checked it out AGAIN, and its not working
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
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:
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.
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:
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?
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.
I have the same problem, but for now I just tested Launcher plugin
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.
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:
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.
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!
working Gujs, i could hug u right now
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
have u tried the older version of launcher to see what happens bzkt? worked for me.
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.
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
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.
@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
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.