Pergunta

I'm using Skype4Py with Python 3.2.3 on windows. There was an error while trying to import Skype4Py package and I did the following to figure out what it was:

import sys

try:
   import Skype4Py
except:
   print (sys.exc_info()[0])
   print (sys.exc_info()[1])

The output is as follows:

<class 'Import error'>

No module named skype

I installed Skype4Py with the windows installer. I can see the Skype4Py in Python32\Lib\site-packages. How do I get this to work?

Foi útil?

Solução

It is clearly stated in the Skype Dev Page that :

The Python wrapper is compatible and is tested with Python version 2.6.5 - Python versions 3.x are not supported at this time.

guess its bad luck then,

I reckon that skype dev's had given up the SkypeKit Python Wrapper Reference due to lack of ...

but

you can find a independently maintained version of skype4py at Github though it also only works in python 2.x versions, it's updated regularly and, It has a far bigger community than the skype maintained project which is nearly dead and also supports latest 2.x versions rather than only supporting 2.6.5. here you can find the Documentation for using the github maintained version of skype4py Skype4py usage

Outras dicas

Your issue ( I just found out the same thing ) is the the installer is written for Python 2 - so you didn't really install it, wasn't fully installed. So api will not work!!!

File "C:\Users\PETER_~1\AppData\Local\Temp\pip_buil

print 'zipping the documentation'

                               ^

SyntaxError: Missing parentheses in call to 'print'

print 'zipping the documentation'

No () around print is a Python 2 issue. You could rewrite the installer I guess but the basic problem is Skype API is built on PYTHON 2 - if you need Python 3 as I do, no luck!!

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top