Posts: 12
Joined: Feb 2009
Reputation:
0
rvank
Junior Member
Posts: 12
Hi all,
I have been looking around for the location of the module XBMC for Python
when i use 'import xbmc' or 'import XBMC' in my script i get the message ImportError: No module named XBMC
Where can i find the windows versionof the xbmc module, or where can i download it...
Kind regards,
Rob.
Posts: 402
Joined: Apr 2008
Reputation:
1
Temhil
Skilled Python Coder
Posts: 402
I guess you try to run you script directly in a python interpreter on windows and not in XBMC?
Why don't you test and tun your script directly in XBMC on windows?
For the xbmc lib, a emulator lib has been done a while ago, far before the port on windows but it was very basic (and very useful), unfortunately I don't think it is maintained anymore, means the last XBMC API won't be in it.
I hope it helps.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Hi there, and welcome to the forums.
import xbmc will primarily be of use if you're actually running under XBMC.
I'm not sure whether there's an emulation environment available or not - there used to be many years ago, but I'm not sure if it's maintained.
I'm sure one of the scripters will be along to correct me!
Cheers,
Jonathan
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
the xbmc python module is exported directly from our code, i.e. directly hooked into the interpreter. it's not a "normal" python module. there is simply no site package
Posts: 478
Joined: Jun 2008
Reputation:
0
i suppose this might be why i have trouble getting xbmc python to execute popen()?
Dam0