2007-10-13, 17:30
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
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