Unable to import Skype4Py in Python

I am using Skype4Py with Python 3.2.3 on windows. An error occurred while trying to import the Skype4Py package, and I found out that 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 see Skype4Py in Python32\Lib\site-packages . How can I make this work?

+4
source share
2 answers

The Skype Dev Page clearly states that:

The Python Shell is compatible and tested with Python 2.6.5 - Python 3.x versions are not currently supported.

guess his failure

I believe that skype dev refused the SkypeKit WAP script reference due to lack of ...

but

you can find a standalone version of skype4py on Github , although it also only works in python 2.x versions, it is regularly updated and has a lot more community than a project supported by skype, which is almost dead, and also supports the latest versions 2.x , but does not support only 2.6.5. here you can find Documentation for using github supported skype4py version Using Skype4py

+3
source

Your problem (I just found out the same thing) is that the installer is written for Python 2 - so you did not install it, it was not fully installed. So the 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 can rewrite the installer, I think, but the main problem is that the Skype API is built on PYTHON 2 - if you need Python 3 like me, no luck !!

+1
source

Source: https://habr.com/ru/post/1432544/


All Articles