I've been struggling to try to get this to work in Windows. It seems like I'm almost there, but I am a complete Python newbie.
It seems that all the instructions I see are for a Linux version of XBMC. For example, instructions about compiling XBMC to use an external python installation appears to use Linux-style compilation parameter of --enable-external-python.
If this is the case, are there instructions on how to get the Skype addon working for Windows XBMC?
I've got the default.py including what I think are the right paths and the xbmc.log seems to show everything is loading except the very last line which I'm hoping someone can help me with.
This is what my default.py changes look like:
Code:
PYTHON_PATH = "C:\Python32"
sys.path.append (BASE_RESOURCE_PATH)
sys.path.append (BASE_RESOURCE_PATH + "/Skype4Py/")
sys.path.append (PYTHON_PATH + "/DLLs/")
sys.path.append (PYTHON_PATH + "/lib/")
sys.path.append (PYTHON_PATH + "/libs/")
Here's my log of attempting to run the Skype addon in XBMC:
Code:
20:14:04 T:5164 M:1997508608 NOTICE: -->Python Interpreter Initialized<--
20:14:04 T:5164 M:1996419072 ERROR: Win32DllLoader::Load: Unable to load C:\Program Files (x86)\XBMC\system\python\DLLs\_ctypes.pyd (193)
20:14:04 T:5164 M:1996419072 ERROR: LoadLibrary('_ctypes.pyd') failed
20:14:04 T:5164 M:1996414976 ERROR: Error Type: exceptions.ImportError
20:14:04 T:5164 M:1996414976 ERROR: Error Contents: DLL load failed with error code 193
20:14:04 T:5164 M:1996111872 ERROR: Traceback (most recent call last):
File "C:\Users\tthibodeau\AppData\Roaming\XBMC\addons\script.skype\default.py", line 31, in ?
import gui
File "C:\Users\tthibodeau\AppData\Roaming\XBMC\addons\script.skype\resources\lib\gui.py", line 5, in ?
import Skype4Py
File "C:\Users\tthibodeau\AppData\Roaming\XBMC\addons\script.skype\resources\lib\Skype4Py\__init__.py", line 100, in ?
from skype import Skype
File "C:\Users\tthibodeau\AppData\Roaming\XBMC\addons\script.skype\resources\lib\Skype4Py\skype.py", line 10, in ?
from api import *
File "C:\Users\tthibodeau\AppData\Roaming\XBMC\addons\script.skype\resources\lib\Skype4Py\api\__init__.py", line 223, in ?
from windows import SkypeAPI
File "C:\Users\tthibodeau\AppData\Roaming\XBMC\addons\script.skype\resources\lib\Skype4Py\api\windows.py", line 16, in ?
from ctypes import *
File "C:\Program Files (x86)\XBMC\system\python\Lib\ctypes\__init__.py", line 7, in ?
from _ctypes import Union, Structure, Array
[b][size=small] ImportError: DLL load failed with error code 193[/size][/b]
I'm running Windows 7 Ultimate x64 with 64 bit Python 3.2 installation. If I try using 32 bit Python installation a different error shows up in the log:
Code:
21:49:01 T:4700 M:1852641280 NOTICE: -->Python Interpreter Initialized<--
21:49:01 T:4700 M:1852481536 ERROR: Error Type: exceptions.ImportError
21:49:01 T:4700 M:1852481536 ERROR: Error Contents: Module use of python32.dll conflicts with this version of Python.
21:49:01 T:4700 M:1852481536 ERROR: Traceback (most recent call last):
File "C:\Users\tthibodeau\AppData\Roaming\XBMC\addons\script.skype\default.py", line 31, in ?
import gui
File "C:\Users\tthibodeau\AppData\Roaming\XBMC\addons\script.skype\resources\lib\gui.py", line 5, in ?
import Skype4Py
File "C:\Users\tthibodeau\AppData\Roaming\XBMC\addons\script.skype\resources\lib\Skype4Py\__init__.py", line 100, in ?
from skype import Skype
File "C:\Users\tthibodeau\AppData\Roaming\XBMC\addons\script.skype\resources\lib\Skype4Py\skype.py", line 10, in ?
from api import *
File "C:\Users\tthibodeau\AppData\Roaming\XBMC\addons\script.skype\resources\lib\Skype4Py\api\__init__.py", line 223, in ?
from windows import SkypeAPI
File "C:\Users\tthibodeau\AppData\Roaming\XBMC\addons\script.skype\resources\lib\Skype4Py\api\windows.py", line 16, in ?
from ctypes import *
File "C:\Python32/lib/ctypes\__init__.py", line 7, in ?
from _ctypes import Union, Structure, Array
[b][size=small] ImportError: Module use of python32.dll conflicts with this version of Python.[/size][/b]
I'd love to get Skype working in XBMC! Your help is so appreciated!