Reply
AllenSmith
Posts: 1,352
Topics: 73
Kudos: 193
Blog Posts: 40
Solutions: 77
Registered: ‎08-12-2010

Re: python: SkypeKit instance has no attribute 'socket'

Hi,

Yes thats exactly what it should look like
Thanks

Allen Smith
SDP Community Manager
If you found my post useful then please give Kudos. If it helped to fix your issue then mark it as a solution and help other developers
Please use plain text.
Frequent Visitor
tansaku
Posts: 7
Registered: ‎27-06-2011

Re: python: SkypeKit instance has no attribute 'socket'

I seem to be running into the same problem: 

 

unknownc8bcc8da38b2:tutorial samueljoseph$ python login.py hpuchatbot ?????????
****************************************************************************
SkypeKit Python Wrapper Tutorial: Account Login
****************************************************************************
Exception AttributeError: "SkypeKit instance has no attribute 'socket'" in <bound method SkypeKit.__del__ of <skypekit.SkypeKit instance at 0x10055e0e0>> ignored
Unable to create Skype instance

 

I have the pem file in the same directory as the tutorial code:

 

unknownc8bcc8da38b2:tutorial samueljoseph$ ls
README call.py chat.pyc contactsearch.py conversations.pyc keypair.py login.pyc
autoanswer.py call.pyc contacts.py contactsearch.pyc downloaded-pair.der keypair.pyc token.py
autoanswer.pyc chat.py contacts.pyc conversations.py downloaded-pair.pem login.py
unknownc8bcc8da38b2:tutorial samueljoseph$ pwd
/Users/samueljoseph/Code/skypekit-sdk_sdk-4.0.2.138_480749/examples/python/tutorial

 

unknownc8bcc8da38b2:tutorial samueljoseph$ more keypair.py
# You will need to replace keyFileName with a valid keypair filename
keyFileName = 'download_pair.pem';
distroRoot = '../../../';

 

Here's the command I am using to run the skype kit

 

unknownc8bcc8da38b2:mac-x86 samueljoseph$ ./mac-x86-skypekit-novideo
SkypeRuntime Copyright (C) 2003-2011 Skype Technologies S.A.
SkypeRuntime Version: 4.0/mac-x86-skypekit-novideo_4.0.2.1612_1128249
Proprietary and confidential, do not share this application.

 

occasionally I get this error from skypekit after the failed login attempts:

 

ERR: can not create server 0x0 id(0) 

 

and then skype kit crashes.  I'm using python 2.6.1 on OSX 10.6.8  

 

Any help greatly appreciated.

Please use plain text.
Frequent Visitor
tansaku
Posts: 7
Registered: ‎27-06-2011

Re: python: SkypeKit instance has no attribute 'socket'

so I just upgraded skype kit to 4.1.2 and I think I might have things working now, although I get these errors from the runtime:

 

unknownc8bcc8da38b2:Code samueljoseph$ ./mac-x86-skypekit-novideo_4.0.2.1612_1128249/bin/mac-x86/mac-x86-skypekit-novideo
SkypeRuntime Copyright (C) 2003-2011 Skype Technologies S.A.
SkypeRuntime Version: 4.0/mac-x86-skypekit-novideo_4.0.2.1612_1128249
Proprietary and confidential, do not share this application.
WirelessAttach: IOServiceOpen error: e00002c7
WirelessAttach: IOServiceOpen error: e00002c7
WirelessAttach: IOServiceOpen error: e00002c7

 

and I get no error from the login script, but it doesn't appear to do anything ...

 

unknownc8bcc8da38b2:tutorial samueljoseph$ python login.py hpuchatbot ?????????
****************************************************************************
SkypeKit Python Wrapper Tutorial: Account Login
****************************************************************************

 

I've tried contacts.py and chat.py and they are all just like the above - they don't throw an error, but don't do anything apart from print the comment thing.

 

Many thanks in advance for any help

Please use plain text.
Frequent Visitor
tansaku
Posts: 7
Registered: ‎27-06-2011

Re: python: SkypeKit instance has no attribute 'socket'

aha, fixed it - I should have been using the 4.1.2 runtime!!!

 

 

Please use plain text.