Why do my scripts not run?
#1
The problem in short:
My problem is that when I try to run a script the text (Running) is shown for a short while next to the script name but then it disappears and it looks just like it did before I tried to start the script.

What can be wrong? I have looked through several forums and got a lot of (mostly vague) answers, I have tried everything suggested in those forums, but it did not helpme.

Some background:
I had an XBMC buid from march 2006 (don't know the exact build). Everything worked fine, except for a few scripts, but that was not a big problem.
Then I updated to a new XBMC build in aug 2007 and set this as my dashboard. Still only some scripts were running (not the same scripts as in the old version), I didn't care since the scripts I really wanted to use worked. However, I had a big problem with this build, seems like there was a problem with audio codecs for movies, I got a constant squeeking noise in the background plus a clipping sound every now and then.
I did not find any good solution to this so I thought I should revert to the old XBMC again, since it was working ok for me. I still had it untouched on my Xbox HD, so I just changed back to use this as my dashboard instead of the new.
Audio in movies is now good again, but now I cannot run any of my scripts.

What I have tried:
I have checked that I still have the python library in the correct place (...\xbmc\python\) it includes the python23.zlib, the lib folder, the spyce folder and the temp folder. I have PIL in the lib folder (as some scripts requires this). As I wrote above I have not touched this since I used the old XBMC version, when it worked ok. It all looked good.

I have also tried to erase everything in the ...\xbmc\scripts\ folder and then downloaded the latest version for the XBMCScripts script from http://www.xbmcscripts.com and put the extracted folder in the ...\xbmc\scripts\ folder. Then trying to execute the file ...\xbmc\scripts\XBMCScripts\default.py as this is a script I trust that it should be working. However, it just gives me the (Running) for a second or so, then nothing.

Script output:
I have of course checked the script output after the unsuccessful attempts.

When for example trying to start the XBMCScripts script I get the following output:
File "Q:\scripts\XBMCScripts\default.py", line 28 in ?
if xbmc.getCondVisibility('system.internetstate):
AttributeError: 'module' object has no attribute 'getCondVisibility'

When I try to start the SverigesTelevision script I get:
File "Q:\scripts\SverigesTelevision\default.py", line 32 in ?
from xbmcutils.net import DownloadAbort, DownloadError
ImportError: cannot import name DownloadAbort

(I have checked that there is a class defined called DownloadAbort in net.py in the sub-folder xbmcutils. I am not a scripting expert, but I get a feeling that the source code is ok)

When I try to start the ooba script I get:
File "Q:\scripts\ooba\default.py", line 27 in ?
import cachedhttp
File "Q:\scripts\ooba\utils\cachedhttp.py", line 13 in ?
import urllib2, re, time, string, random
File "Q:\python\python23.zlib\urllib2.py", line 115 in ?
ImportError: cannot import name unwrap
Reply
#2
Quote:python23.zlib

We're up to python version 2.4, python24.zlib.

You need to update XBMC for newer scripts and plugins to work
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#3
Python24 was the python version used in the newer xbmc I installed.

So this is the explanation of why the new version of XBMCScripts script did not work...
Thanks

But: What about the old scripts that I actually did use without any problems in the old xbmc version (e.g. ooba) I have not updated those scripts and I still get the error messages.
Reply
#4
Alright I'm confused, have you updated to the most recent XBMC revision.

If not don't expect much help. I don't know why older scripts don't work on older builds and I'm sure not going to try and figure it out.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#5
As I wrote in my first message I did update to the newest XMBC in august this year, which worked good with the scripts but had crappu audio quality when running movies.
(This is the reason I wanted to go back to the old "stable" version I was running before)

However, during today I tested the newest XBMC version, but unfortunately it still seems like the audio quality is really bad.

The problem occurs with the old XBMC version - so according to you I should not expect much help. However, I still don't understand why the old version cannot run the same scripts as it was able to run before august this year. I have not changed any settings in the old version.
Reply

Logout Mark Read Team Forum Stats Members Help
Why do my scripts not run?0