Posts: 529
Joined: Sep 2003
Reputation:
0
darkie
Team-Kodi Member
Posts: 529
very nice script, i like it :-)
oh and another idea. user selects a music categorie, then selects a station which is shown in the list. then download the pls file, parse it and display all stations in that pls file.
after the user selected a station replace http:// in the url with shout:// and use xbmc.mediaplay("shout://selectedstation") to start playing.
systemerror: null result without error in pyobject_call
means there as been an error, but the function didn't tell python what the error was excatly. most likely that this script is sending wrong values to urllib2.
since i don't get this error, could you paste all all errors you get?
oh, and the webserver doesn't have anything to do with python (unless you are using python server pages, which aren't used anywhere yet)
Posts: 3,555
Joined: Oct 2003
Reputation:
12
tslayer
Team-XBMC Developer
Posts: 3,555
i heard somebody else had the same webserver issue and fixed it by making sure the time/date was properly set on the xbox itself (timeserver maybe).
ts
42.7% of all statistics are made up on the spot
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Posts: 11
Joined: Jan 2004
Reputation:
0
acid70
Junior Member
Posts: 11
the full message output:
--> python initalized <--
traceback (most recent call last):
file "q:\scripts\shoutcast_update.py, line 29 in ?
import urllib2, os, sys, traceback
systemerror: null result without error in pyobject_call
Posts: 6
Joined: Jan 2004
Reputation:
0
thanx...but still no go.
i have this dir setup:
xbmc root
mplayer
etc.
python ---- extracted rar files
scripts
Posts: 3,555
Joined: Oct 2003
Reputation:
12
tslayer
Team-XBMC Developer
Posts: 3,555
your python folder should have lib, spyce, temp dirs with contents in just lib and spyce.. is that the case?
ts
42.7% of all statistics are made up on the spot
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Posts: 11
Joined: Jan 2004
Reputation:
0
acid70
Junior Member
Posts: 11
yes, thats exactly teh case (for me). i´ve looked into the lib folder. there is an urllib2.py, an os.py and a traceback.py but no sys.py. i interprete the line "import urllib2, os, sys, traceback" in that way, that python should import these libraries. could the missing sys.py be the problem?
Posts: 3,555
Joined: Oct 2003
Reputation:
12
tslayer
Team-XBMC Developer
Posts: 3,555
dunno.. i made no changes and it worked fine...
let's try to compare our installs here:
e:/apps/xbmc
the python dir is lowercase
e:/apps/xbmc/python
the lib directory is as follows:
e:/apps/xbmc/python/lib
scripts are in:
e:/apps/xbmc/scripts
not sure what else the problem can be.
ts
42.7% of all statistics are made up on the spot
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Posts: 529
Joined: Sep 2003
Reputation:
0
darkie
Team-Kodi Member
Posts: 529
sys is hard coded into the python core, you won't find it in the lib dir.
try seperating the import stuff and see where it goes wrong
import urllib2
import os
import sys
import traceback
Posts: 11
Joined: Jan 2004
Reputation:
0
acid70
Junior Member
Posts: 11
you´ve been right, its the urllib2.py. but why? whats the difference to other installs?
Posts: 529
Joined: Sep 2003
Reputation:
0
darkie
Team-Kodi Member
Posts: 529
try copying that lib dir again, maybe something got broken?
and make sure you are using the lib for python 2.3, not some other version
Posts: 3,555
Joined: Oct 2003
Reputation:
12
tslayer
Team-XBMC Developer
Posts: 3,555
and failing what darkie suggested, i suggest a reinstall.
i had the same error originally when i forgot to uncompress the python.rar. i mean, you have uncompressed it, but all this seem to show that it can't find the file obviously.
i really do suggest carefully going over your directory structure again and check case-sensitivity. otherwise, i have no idea why it would not work.
ts
42.7% of all statistics are made up on the spot
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Posts: 113
Joined: Nov 2003
Reputation:
0
omg, forgot to look in here. nice to hear if you like the script.
and yes i have this idea with an online shoutcast browsing, but absolutly no time to implement it. described it somewhere in the forum.
but i think there needs to be more stuff for that:
-button support
-interface to get xbmc's resolution for layouting the ui
thats all i can think about for now...