[LINUX] "Python Script Failed" on every plugin?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
saffsd Offline
Junior Member
Posts: 2
Joined: Jun 2009
Reputation: 0
Post: #11
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://trac.xbmc.org/browser/trunk/XBMC/...Thread.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.
find quote
knk1990 Offline
Junior Member
Posts: 18
Joined: May 2009
Reputation: 0
Post: #12
http://pastebin.com/m35be8361

im so stupid lol. sorry about that. I've found the right log now
(This post was last modified: 2009-06-01 09:21 by knk1990.)
find quote
GrinRoth Offline
Member
Posts: 68
Joined: May 2009
Reputation: 0
Location: Netherlands
Post: #13
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 ; )

Code:
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
(This post was last modified: 2009-06-03 09:41 by GrinRoth.)
find quote
tomolac Offline
Member
Posts: 71
Joined: May 2009
Reputation: 0
Post: #14
I'm have this exact same problem also, so far the iplayer and SVN Repo Installer plug-ins are the only ones that work!
Quote: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
find quote
hebjor Offline
Junior Member
Posts: 11
Joined: Jan 2009
Reputation: 0
Post: #15
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?
find quote
hitman Offline
Donor
Posts: 58
Joined: Jan 2008
Reputation: 4
Location: London
Post: #16
Also have the same problem. Relevant snippet from the log is at http://pastebin.ca/1446828
find quote
hitman Offline
Donor
Posts: 58
Joined: Jan 2008
Reputation: 4
Location: London
Post: #17
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 ;
find quote
hitman Offline
Donor
Posts: 58
Joined: Jan 2008
Reputation: 4
Location: London
Post: #18
I guess this means that this has been identified as a bug and fixed?

Just got to wait for the Package to be updated.
find quote
GrinRoth Offline
Member
Posts: 68
Joined: May 2009
Reputation: 0
Location: Netherlands
Post: #19
Hope so!
I'll update my install with latest svn tonight and let know if the issue is fixed.
find quote
yabel Offline
Member
Posts: 69
Joined: Sep 2007
Reputation: 0
Post: #20
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.
find quote
Post Reply