[RELEASE] Skype (VoIP Program) Addon

  Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
airtonix Offline
Junior Member
Posts: 3
Joined: Nov 2010
Reputation: 0
Post: #21
instead of :

Code:
BASE_RESOURCE_PATH = xbmc.translatePath( os.path.join( os.getcwd(), 'resources', 'lib' ) )

Use :

Code:
BASE_RESOURCE_PATH = xbmc.translatePath( os.path.join( os.path.dirname(__file__), 'resources', 'lib' ) )
find quote
spiff Offline
Grumpy Bastard Developer
Posts: 12,187
Joined: Nov 2003
Reputation: 82
Post: #22
or, even better, use xbmc.translatePath(os.path.join(addon.getAddonInfo('path'),'resources','lib'))

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.
find quote
tthibodeau Offline
Junior Member
Posts: 2
Joined: Apr 2007
Reputation: 0
Post: #23
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.p​y", line 5, in ?
                                                import Skype4Py
                                              File "C:\Users\tthibodeau\AppData\Roaming\XBMC\addons\script.skype\resources\lib\Skype​4Py\__init__.py", line 100, in ?
                                                from skype import Skype
                                              File "C:\Users\tthibodeau\AppData\Roaming\XBMC\addons\script.skype\resources\lib\Skype​4Py\skype.py", line 10, in ?
                                                from api import *
                                              File "C:\Users\tthibodeau\AppData\Roaming\XBMC\addons\script.skype\resources\lib\Skype​4Py\api\__init__.py", line 223, in ?
                                                from windows import SkypeAPI
                                              File "C:\Users\tthibodeau\AppData\Roaming\XBMC\addons\script.skype\resources\lib\Skype​4Py\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.p​y", line 5, in ?
                                                import Skype4Py
                                              File "C:\Users\tthibodeau\AppData\Roaming\XBMC\addons\script.skype\resources\lib\Skype​4Py\__init__.py", line 100, in ?
                                                from skype import Skype
                                              File "C:\Users\tthibodeau\AppData\Roaming\XBMC\addons\script.skype\resources\lib\Skype​4Py\skype.py", line 10, in ?
                                                from api import *
                                              File "C:\Users\tthibodeau\AppData\Roaming\XBMC\addons\script.skype\resources\lib\Skype​4Py\api\__init__.py", line 223, in ?
                                                from windows import SkypeAPI
                                              File "C:\Users\tthibodeau\AppData\Roaming\XBMC\addons\script.skype\resources\lib\Skype​4Py\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!
find quote
de.backer.nick Offline
Junior Member
Posts: 1
Joined: Mar 2011
Reputation: 0
Post: #24
tthibodeau Wrote: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.p​y", line 5, in ?
                                                import Skype4Py
                                              File "C:\Users\tthibodeau\AppData\Roaming\XBMC\addons\script.skype\resources\lib\Skype​4Py\__init__.py", line 100, in ?
                                                from skype import Skype
                                              File "C:\Users\tthibodeau\AppData\Roaming\XBMC\addons\script.skype\resources\lib\Skype​4Py\skype.py", line 10, in ?
                                                from api import *
                                              File "C:\Users\tthibodeau\AppData\Roaming\XBMC\addons\script.skype\resources\lib\Skype​4Py\api\__init__.py", line 223, in ?
                                                from windows import SkypeAPI
                                              File "C:\Users\tthibodeau\AppData\Roaming\XBMC\addons\script.skype\resources\lib\Skype​4Py\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.p​y", line 5, in ?
                                                import Skype4Py
                                              File "C:\Users\tthibodeau\AppData\Roaming\XBMC\addons\script.skype\resources\lib\Skype​4Py\__init__.py", line 100, in ?
                                                from skype import Skype
                                              File "C:\Users\tthibodeau\AppData\Roaming\XBMC\addons\script.skype\resources\lib\Skype​4Py\skype.py", line 10, in ?
                                                from api import *
                                              File "C:\Users\tthibodeau\AppData\Roaming\XBMC\addons\script.skype\resources\lib\Skype​4Py\api\__init__.py", line 223, in ?
                                                from windows import SkypeAPI
                                              File "C:\Users\tthibodeau\AppData\Roaming\XBMC\addons\script.skype\resources\lib\Skype​4Py\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!
Did you succeed in porting this to windows?
find quote
hainamluke Offline
Junior Member
Posts: 3
Joined: May 2010
Reputation: 0
Post: #25
Hi there,
Is anyone working on this now?
Love to see it work on Windows
find quote
savage007 Offline
Junior Member
Posts: 3
Joined: Jun 2009
Reputation: 0
Sad  You're not working on this anymore? Post: #26
You even removed the code on https://code.google.com/p/xbmc-skype-addon/ ?

I'd like to download it but i couldn't find it.

Someone else got it available for download?
find quote
mrfatboy Offline
Senior Member
Posts: 178
Joined: Jun 2011
Reputation: 0
Post: #27
Status? I would kill to have this on windows. Smile
find quote
Trozza Offline
Junior Member
Posts: 8
Joined: May 2010
Reputation: 0
Post: #28
mrfatboy Wrote:Status? I would kill to have this on windows. Smile

+1 been waiting ages for Skype integration and this appears to be the closest yet for windows.

[Image: widget]
find quote
italoc Offline
Junior Member
Posts: 14
Joined: Jul 2011
Reputation: 0
Post: #29
but this project work only on linux?

i'have tried to install this but don't work... (ubuntu 10.04)

Skype4Py is currently mantained or don't is supported?

i'm need to integrate skype video call with XBMC..

can you help me??
find quote
DjBeNI Offline
Junior Member
Posts: 13
Joined: Nov 2010
Reputation: 0
Post: #30
Is there any way to use skype in XBMC??
find quote